mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
CmapSubtableLongSegmented::collect_unicodes() and collect_mapping() clamp the end of a group so that its glyph ids stay below num_glyphs. That only makes sense for format 12, where the glyph id increases across the group. In format 13 every code point of a group maps to the same glyph, so the clamp cut each group down to a couple of code points (Adobe Blank 2: 38 code points collected instead of 1,111,998). Only clamp when the glyph id increases, and fix the clamp itself: it kept one code point too many, mapping it to glyph num_glyphs. Fixes https://github.com/harfbuzz/harfbuzz/issues/6591 Assisted-by: Claude