bench/text-autospace/check.sh draws three "2026년" lines (unstyled, normal, no-autospace) and finds where each line's ink ends. The unstyled line must end where no-autospace's does, and normal's 5-7 px further right. The raea before this ends them at 202/202/196 and fails, the raea with it at 196/202/196 and passes; Chrome 148 ends them at 184/190/184 (a different sans-serif, the same 6 px). WPT css-text --only text-autospace: 13 of 26 pass before and after, the same tests. fps, the same 120-frame text-autospace page back to back, three runs each: 4.3, 3.3, 3.9 ms a frame before, 3.7, 3.5, 4.3 after (about 260 fps both). Upstream candidate: stylo's text-autospace is Gecko-only upstream; enabling it for Servo would need this initial value.
Parley provides an API for implementing rich text layout. It is backed by HarfRust for text shaping.
Minimum supported Rust Version (MSRV)
This version of Parley has been verified to compile with Rust 1.88 and later.
Future versions of Parley 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.
Click here if compiling fails.
As time has passed, some of Parley's dependencies could have released versions with a higher Rust requirement. If you encounter a compilation issue due to a dependency and don't want to upgrade your Rust toolchain, then you could downgrade the dependency.
# Use the problematic dependency's name and version
cargo update -p package_name --precise 0.1.1
Community
Discussion of Parley 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.