mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
The vertical-origin cache stores scaled y-origin values, but it was validated against serial_coords. Changing only the font scale leaves serial_coords unchanged, so hb_font_set_scale() could keep serving stale vertical origins. Validate scale-dependent OT font caches against the full font serial and check that serial before using the batched vertical-origin callback. Add an API regression that changes y_scale on one font and verifies the vertical origin is recomputed. Testing: meson compile -C build test/api/test-ot-face meson test -C build test-ot-face --print-errorlogs meson test -C build --suite api --print-errorlogs Fixes: https://github.com/harfbuzz/harfbuzz/issues/6066 Assisted-by: OpenAI Codex