mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 05:51:05 +01:00
serialize_rangeoffset_glyid() treated every zero idDelta as "this range needs a glyphIdArray", which is what to_ranges() emits for non-run ranges. A real run with delta 0 (glyph id == codepoint) got the same treatment and cost two bytes per codepoint. Only zero deltas are ambiguous. Check those against the mapping and keep the ones that are genuinely identity as delta ranges. Adds a subset test with a small hand-built glyf font whose cmap maps U+0001..U+0007 to gids 1..7. Tested with: meson test -C build Assisted-by: opencode