mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
Replace the blanket VARC instancing rejection with validation of the axes referenced by retained components, variation regions, and nested conditions. Remap those indices when unrelated axes are removed, while keeping passthrough VARC incompatible with instancing. Preserve component-internal variation data during avar2 instancing by avoiding culling based on font-level reachable ranges. Add drawing comparisons and rejection tests with reproducible fixtures, including hidden component axes and non-default unrelated-axis pins. Serialize sparse-region axis references using the revised VARC format. Regenerate the fixtures without changing their logical VARC contents or other table bytes, apart from the head checksum adjustment. Validation: meson test -C build (283 passed); subset suite (130 passed); C++11 compile checks with HB_NO_VAR and HB_NO_VAR_COMPOSITES. Assisted-by: Codex