[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 <noreply@anthropic.com>

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Behdad EsfahbodandClaude Opus 4.8 authored and GitHub committed 2026-07-03 19:52:38 -06:00
1 parent f1de1d8cf1
commit fe9501b08d
1 file changed
+2 -2
+2 -2
View File
@@ -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.*"