Files
shinyobjectz 85beee43c6 text-autospace's initial value is no-autospace, as Chrome's and Gecko's are (closes #44). raea's stylo enabled text-autospace for Servo (for parley's layout/autospace.rs) with an initial value of normal, so every page without the property got Chrome's ideograph-alpha/ideograph-numeric spacing anyway: "2026년" at 48px sans-serif drew 6 px wider unstyled than with text-autospace: no-autospace. Chrome 148 draws the unstyled line as no-autospace and only text-autospace: normal wider. The initial value is now NO_AUTOSPACE (vendor/stylo longhands.toml); parley's comments said Chrome's initial was normal and now say what it is.
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.
2026-11-08 02:07:51 -08:00
..
2026-10-31 13:15:29 -07:00
2026-10-31 13:15:29 -07:00
2026-10-31 13:15:29 -07:00
2026-10-31 13:15:29 -07:00
2026-10-31 13:15:29 -07:00

Parley

Rich text layout

Latest published parley version. Documentation build status. Dependency staleness status. Linebender Zulip chat. Apache 2.0 or MIT license.

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

at your option.