mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 16:01:07 +01:00
Partial instancing rounds the default and surviving deltas of format-2 layout conditions independently, moving their Boolean boundary and changing GSUB or GPOS lookup selection. Rescale variable conditions into private variation-store rows before integer encoding, leaving shared positioning values unchanged. Prefer exact integers; otherwise use the available signed 32-bit precision. Carry defaults outside int16 in a neutral variation region. Keep source values separate from output mappings so serialization retries start with the original condition, and make private-row order independent of source addresses. Propagate store-instancing failures to the serializer. Add legacy and additive feature-variation fixtures covering nested conditions, fractional coefficients, large defaults, shared positioning rows, and a second instancing pass. Tested: full Meson suite with and without experimental API (279 passed; 261 passed and 1 skipped respectively), C++11 reduced-feature syntax checks, and C++11 sanitizer builds with failing allocation checks. Assisted-by: OpenAI Codex <codex@openai.com>