mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-22 07:21:06 +01:00
Font serial changes include scale changes, which need not discard the read-fonts instance's variation and metrics caches. Compare normalized coordinates using the builder's padding, truncation, and default-location rules, and rebuild only when the effective coordinates change. Test scale changes, zero coordinates, omitted axes, extra axes, and resets against fresh Fontations instances. Preserve existing rounding behavior. Tests: full Meson suite (281 passed, 1 skipped); 144 font/scale/location snapshots matched the previous implementation. Clippy used opt-level=0 for the nightly compiler workaround. Assisted-by: OpenAI Codex