mirror of
https://github.com/lexmount/moli.git
synced 2026-11-15 00:08:03 +00:00
FontFaceSet queries compared family names with ASCII-only case folding, while native web-font layout used Unicode lowercasing. The same face could be missed by check/load or selected differently during layout. Share a CSS family matching key between both consumers using Unicode simple folding of UTF-16 code units, matching [Blink's font-family cache hash](https://chromium.googlesource.com/chromium/src/+/a03603fe9af6230a12f1b2fb2c18a7d003a0d937/third_party/blink/renderer/platform/wtf/text/case_folding_hash.h#50). Keep original descriptor spelling and platform/local full-name lookup intact. Register each web font only under its private source family, so Fontique cannot bypass CSS matching through a second public alias. Keep Blob identity and incremental-registration assertions by resolving the CSS alias through the document registry in those tests. Validation: cargo fmt --all; strict all-feature workspace Clippy; cargo nextest run --no-fail-fast (20633 tests run: 20633 passed (9 slow), 19 skipped).
16 lines
271 B
TOML
16 lines
271 B
TOML
[package]
|
|
license.workspace = true
|
|
name = "moli-css-parse"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[dependencies]
|
|
unicode-case-mapping = "1.0"
|
|
cssparser = "0.38"
|
|
stylo = "0.22"
|
|
style_traits = { package = "stylo_traits", version = "0.22" }
|
|
url = "2"
|
|
|
|
[lints]
|
|
workspace = true
|