mirror of
https://github.com/freetype/freetype.git
synced 2026-10-23 11:08:54 +03:00
Spec: https://github.com/harfbuzz/boring-expansion-spec/pull/175 Offset-base erratum: https://github.com/harfbuzz/boring-expansion-spec/issues/177 * src/truetype/ttvarc.c (tt_varc_evaluate_region, tt_varc_get_item_deltas): Read the sparse-region count as uint32, resolve each sparse axis through a region-relative Offset32, and follow the Offset32 to the delta-set INDEX. Bound the new offset fields and count arrays before dereferencing them. * tests/varc/main.c (test_variation_store): New function to check translated outlines at default, midpoint, and peak coordinates. (main): Updated. * tests/data/varc-null-condition.ttf, tests/data/varc-value-conditions.ttf: Updated to migrate the existing affected fixture without changing its logical contents or non-VARC tables. * tests/data/varc-variation-store.ttf: New test file. Tests: full Meson regression suite (3 passed). Assisted-by: OpenAI Codex