From ec57e0c5655ced5109c4638bf802772d336448fd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 8 Jun 2012 21:47:23 -0400 Subject: [PATCH] Set lig_comp for MultipleSubst components To be used for correct mark attachment to first component of a MultipleSubst output. That's what Uniscribe does. --- src/hb-ot-layout-gsub-table.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index 47c000d49..ced6f32eb 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -214,8 +214,10 @@ struct Sequence unsigned int klass = c->property & HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE ? HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH : 0; unsigned int count = substitute.len; - for (unsigned int i = 0; i < count; i++) + for (unsigned int i = 0; i < count; i++) { + set_lig_props (c->buffer->cur(), 0, i); c->output_glyph (substitute.array[i], klass); + } c->buffer->skip_glyph (); return TRACE_RETURN (true);