mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-12-01 18:44:09 +01:00
* [VARC] Apply constant deltas in static fonts Static VARC fonts have no fvar coordinates, but sparse regions without active axes still contribute constant deltas. Empty coordinate guards were skipping those deltas in conditions, transforms, and axis values. Supply an implicit zero coordinate for VARC variation-store evaluation and remove its coordinate-presence guards. Keep inherited component coordinates and the shared variation-store evaluators unchanged. Add a generated static font and drawing/extents regression covering all three consumers, with both constant and default-inactive regions. Tests: meson test -C build (281 passed, 1 skipped); C++11 syntax checks with default, HB_NO_VAR, and HB_OPTIMIZE_SIZE configurations. Assisted-by: OpenAI Codex <codex@openai.com> * [VARC] Allow empty coordinates in the multi-item instancer The region evaluators already treat missing coordinates as zero. MultiItemVarStoreInstancer is used only by VARC, so remove its coordinate-presence checks instead of supplying a dummy coordinate from the VARC caller. Document why empty coordinates must allow constant VARC deltas, and the ordinary instancer's existing empty-coordinate shortcut. Leave ordinary instancer behavior unchanged. Tests: meson test -C build (281 passed, 1 skipped); C++11 syntax checks with default, HB_NO_VAR, and HB_OPTIMIZE_SIZE configurations. Assisted-by: OpenAI Codex <codex@openai.com>