mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 05:51:05 +01:00
Ligature substitutions replace consumed components with DELETED_GLYPH. The deletion helper did not add that sentinel to the cached buffer glyph set, so a later state machine triggered by the deleted-glyph class could be skipped when the buffer started with at least four glyphs. Record DELETED_GLYPH in the active set, as the other replacement helpers do. Add a synthetic morx font that ligates glyphs 1,2 into 3, then uses a deleted-glyph transition to enable substitution 4 -> 5. Cover both the three-glyph scan and the four-glyph cached-set paths. Found while reviewing harfbuzz/harfrust#542. Validation: all 292 Meson test groups pass, including the shaping suite. Assisted-by: OpenAI Codex <noreply@openai.com>