[aat] Mark DELETED_GLYPH as IGNORABLE

Fixes https://github.com/harfbuzz/harfbuzz/issues/4598
This commit is contained in:
Behdad Esfahbod 2024-02-24 15:12:42 +01:00
parent 5d1ff191c0
commit 225a7a8a5e

View file

@ -552,6 +552,7 @@ struct LigatureSubtable
{
DEBUG_MSG (APPLY, nullptr, "Skipping ligature component");
if (unlikely (!buffer->move_to (match_positions[--match_length % ARRAY_LENGTH (match_positions)]))) return;
buffer->cur().unicode_props() |= UPROPS_MASK_IGNORABLE;
if (unlikely (!buffer->replace_glyph (DELETED_GLYPH))) return;
}