1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
// Copyright 2025 the Parley Authors
// SPDX-License-Identifier: Apache-2.0 OR MIT
// After you edit the crate's doc comment, run this command, then check README.md for any missing links
// cargo rdme --workspace-project=parlance
//! Fundamental text property types.
//!
//! This crate is intended as a lightweight, `no_std`-friendly vocabulary layer that can be shared
//! across style systems, text layout engines, and font tooling. It focuses on small, typed
//! representations of common “leaf” concepts (weights, widths, OpenType tags, language tags, etc).
//!
//! # Features
//!
//! The following crate [feature flags](https://doc.rust-lang.org/cargo/reference/features.html#dependency-features) are available:
//!
//! - `std` (enabled by default): This is currently unused and is provided for forward compatibility.
//! - `bytemuck`: Implement traits from `bytemuck` on [`GenericFamily`][], [`BidiLevel`][] and
//! [`NormalizedCoord`][].
//!
//! Note that Parlance requires that an allocator is available (i.e. it uses [`alloc`][]).
//!
//! # Example
//!
//! ```
//! use parlance::{Language, Tag};
//!
//! let tag = Tag::parse("wght").unwrap();
//! assert_eq!(tag.to_bytes(), *b"wght");
//!
//! let lang = Language::parse("zh-Hans-CN").unwrap();
//! assert_eq!(lang.as_str(), "zh-Hans-CN");
//! assert_eq!(lang.language(), "zh");
//! assert_eq!(lang.script(), Some("Hans"));
//! assert_eq!(lang.region(), Some("CN"));
//! ```
// LINEBENDER LINT SET - lib.rs - v5
// See https://linebender.org/wiki/canonical-lints/
// These lints shouldn't apply to examples.
// Targeting e.g. 32-bit means structs containing usize can give false positives for 64-bit.
// END LINEBENDER LINT SET
extern crate alloc;
// Ensure that we don't compile if you're using the std feature on a platform without `std`
extern crate std as _;
pub use ;
pub use ;
pub use ;
pub use GenericFamily;
pub use ;
pub use NormalizedCoord;
pub use ;
pub use Synthesis;
pub use ;
pub use ;