Parlance
Fundamental text property types
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
std(enabled by default): This is currently unused and is provided for forward compatibility.bytemuck: Implement traits frombytemuckon [GenericFamily].
Example
use ;
let tag = parse.unwrap;
assert_eq!;
let lang = parse.unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
Minimum supported Rust Version (MSRV)
This version of Parlance has been verified to compile with Rust 1.88 and later.
Future versions of Parlance might increase the Rust version requirement. It will not be treated as a breaking change and as such can even happen with small patch releases.
Community
Discussion of Parlance development happens in the Linebender Zulip, specifically the #parley channel. All public content can be read without logging in.
Contributions are welcome by pull request. The Rust code of conduct applies.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache 2.0 license, shall be licensed as noted in the License section, without any additional terms or conditions.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.