From 225a7a8a5eb6192218ab223426e64eb263bced4a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 24 Feb 2024 15:12:42 +0100 Subject: [PATCH] [aat] Mark DELETED_GLYPH as IGNORABLE Fixes https://github.com/harfbuzz/harfbuzz/issues/4598 --- src/hb-aat-layout-morx-table.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index 06c9334b3..843655132 100644 --- a/src/hb-aat-layout-morx-table.hh +++ b/src/hb-aat-layout-morx-table.hh @@ -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; }