From 2e2b2480c01c788ea702d78ca830c2bb659654a8 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 27 Oct 2010 16:25:28 -0400 Subject: [PATCH] Always allocate new ligature id No practical point in reusing ligature ids. --- src/hb-ot-layout-gsub-private.hh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hb-ot-layout-gsub-private.hh b/src/hb-ot-layout-gsub-private.hh index 66d42a9..89d2fb4 100644 --- a/src/hb-ot-layout-gsub-private.hh +++ b/src/hb-ot-layout-gsub-private.hh @@ -393,13 +393,10 @@ struct Ligature : HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE); if (j == c->buffer->i + i) /* No input glyphs skipped */ - /* We don't use a new ligature ID if there are no skipped - glyphs and the ligature already has an ID. */ c->buffer->add_output_glyphs_be16 (i, 1, (const uint16_t *) &ligGlyph, 0, - c->buffer->info[c->buffer->i].lig_id() && !c->buffer->info[c->buffer->i].component() ? - 0xFFFF : c->buffer->allocate_lig_id ()); + c->buffer->allocate_lig_id ()); else { unsigned int lig_id = c->buffer->allocate_lig_id (); -- 2.7.4