[otlayout] Reset ccc when marking glyph as letter

This commit is contained in:
Behdad Esfahbod 2013-10-28 21:00:37 +01:00
parent b9d0077ac1
commit 3d436d325e

View File

@ -894,7 +894,10 @@ static inline void ligate_input (hb_apply_context_t *c,
{
_hb_glyph_info_set_lig_props_for_ligature (&buffer->cur(), lig_id, total_component_count);
if (_hb_glyph_info_get_general_category (&buffer->cur()) == HB_UNICODE_GENERAL_CATEGORY_NON_SPACING_MARK)
{
_hb_glyph_info_set_general_category (&buffer->cur(), HB_UNICODE_GENERAL_CATEGORY_OTHER_LETTER);
_hb_glyph_info_set_modified_combining_class (&buffer->cur(), 0);
}
}
c->replace_glyph_with_ligature (lig_glyph, klass);