From fe9501b08d1bf40bf5c6285d336157aa82b29e40 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 3 Jul 2026 19:52:38 -0600 Subject: [PATCH] [rust] Update harfrust to 0.12.0, read-fonts to 0.41.* (#6049) harfrust 0.12.0 fixes sub-font-unit GPOS advance/placement and AAT trak tracking differences against the "ot" shaper on variable fonts (harfbuzz/harfrust#402, #403, #404), by keeping variation-index and trak deltas fractional instead of pre-rounding them to whole font units before scaling. read-fonts is bumped to 0.41.* to match harfrust's requirement; the currently released skrifa (0.44.0) already depends on read-fonts ^0.41.0, so the dependency graph resolves to a single read-fonts version. Verified against the published crates.io packages (harfrust 0.12.0, read-fonts 0.41.0, skrifa 0.44.0): `meson test -C build` shape and api suites pass, and `hb-shape --shaper ot` / `--shaper harfrust` now agree exactly on SFNSItalic.ttf across variation instances, where they previously differed by sub-font-unit amounts. Assisted-by: Claude Co-authored-by: Claude Opus 4.8 (1M context) --- src/rust/Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rust/Cargo.toml b/src/rust/Cargo.toml index 37bda356d..31842c10c 100644 --- a/src/rust/Cargo.toml +++ b/src/rust/Cargo.toml @@ -4,9 +4,9 @@ edition = "2021" rust-version = "1.87.0" [dependencies] -harfrust = { version = "0.11.0", features = ["experimental_font_api"], optional = true } +harfrust = { version = "0.12.0", features = ["experimental_font_api"], optional = true } # harfrust = { git = "https://github.com/harfbuzz/harfrust", optional = true } -read-fonts = "0.40.*" +read-fonts = "0.41.*" skrifa = { version = "0.*", optional = true } smallvec = "1.*"