mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 14:01:10 +01:00
Instancing a CFF2 font with only empty outlines leaves the head bounds accumulator at its inverted initialization sentinels. These are then serialized as xMin=yMin=32767 and xMax=yMax=-32767. Reset an empty accumulator to zero after collecting CFF2 extents. This also provides a valid FontBBox if the instance is downgraded to CFF1. Add a reproducible synthetic font and an API regression that fails before the fix. The regression also checks preservation of the empty glyph's advance and bearing. The complete Meson suite passes: 272 tests passed, one skipped. Assisted-by: Codex <noreply@openai.com>
676 B
676 B