mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 22:11:04 +01:00
AnchorFormat3 returned each scaled variation delta as an integer before subtracting the mark and base anchors. Rounding the two deltas separately can shift the final attachment by an output unit even with an exact quarter scalar. Add float-preserving device queries for anchor resolution. Keep hinting adjustments and ValueRecord queries on the existing integer path, and retain the final anchor-difference rounding. Add ten cases with exact scalars, signed deltas, negative and independent axis scales. Six fail against the original implementation. The full meson test suite passes (272 passed, one skipped), as does a reduced HB_NO_VAR/HB_NO_HINTING compile. Fixes: #6420 Co-authored-by: OpenAI Codex <noreply@openai.com>