Files
Behdad Esfahbod 5a1c0c4660 [aat] Keep deleted glyphs in the buffer glyph set (#6433)
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>
2026-10-21 19:42:13 -06:00
..