From 3d436d325edccc0f3dd820e06e3d529cc8f3eca4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 28 Oct 2013 21:00:37 +0100 Subject: [PATCH] [otlayout] Reset ccc when marking glyph as letter --- src/hb-ot-layout-gsubgpos-private.hh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hb-ot-layout-gsubgpos-private.hh b/src/hb-ot-layout-gsubgpos-private.hh index 16c96fafb..bfe8ffa3f 100644 --- a/src/hb-ot-layout-gsubgpos-private.hh +++ b/src/hb-ot-layout-gsubgpos-private.hh @@ -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);