[morx] Use deleted-glyph, instead of actual deletion, in Ligation

Closer to what CoreText does.

Fixes https://github.com/harfbuzz/harfbuzz/issues/1302
This commit is contained in:
Behdad Esfahbod 2018-10-25 17:41:26 -07:00
parent 5c272e3613
commit ba5ca6a762
1 changed files with 1 additions and 2 deletions

View File

@ -447,8 +447,7 @@ struct LigatureSubtable
{
DEBUG_MSG (APPLY, nullptr, "Skipping ligature component");
buffer->move_to (match_positions[--match_length]);
buffer->skip_glyph ();
end--;
buffer->replace_glyph (DELETED_GLYPH);
}
buffer->move_to (end + 1);