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.
This commit is contained in:
Behdad Esfahbod 2012-06-08 21:47:23 -04:00
parent e085fcf7ca
commit ec57e0c565

View File

@ -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 klass = c->property & HB_OT_LAYOUT_GLYPH_CLASS_LIGATURE ? HB_OT_LAYOUT_GLYPH_CLASS_BASE_GLYPH : 0;
unsigned int count = substitute.len; 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->output_glyph (substitute.array[i], klass);
}
c->buffer->skip_glyph (); c->buffer->skip_glyph ();
return TRACE_RETURN (true); return TRACE_RETURN (true);