From: Behdad Esfahbod Date: Wed, 27 Oct 2010 20:19:13 +0000 (-0400) Subject: Set component=0 for ligature glyph X-Git-Tag: submit/2.0alpha-wayland/20121130.004132~9^2~468 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bf07d5a29c61baf6fd683289c7764f487ad7e413;p=profile%2Fivi%2Forg.tizen.video-player.git Set component=0 for ligature glyph --- diff --git a/src/hb-ot-layout-gsub-private.hh b/src/hb-ot-layout-gsub-private.hh index c51dd8f..66d42a9 100644 --- a/src/hb-ot-layout-gsub-private.hh +++ b/src/hb-ot-layout-gsub-private.hh @@ -403,7 +403,7 @@ struct Ligature else { unsigned int lig_id = c->buffer->allocate_lig_id (); - c->buffer->add_output_glyph (ligGlyph, 0xFFFF, lig_id); + c->buffer->add_output_glyph (ligGlyph, 0, lig_id); /* Now we must do a second loop to copy the skipped glyphs to `out' and assign component values to it. We start with the @@ -417,7 +417,8 @@ struct Ligature while (_hb_ot_layout_skip_mark (c->layout->face, &c->buffer->info[c->buffer->i], c->lookup_flag, NULL)) c->buffer->add_output_glyph (c->buffer->info[c->buffer->i].codepoint, i, lig_id); - (c->buffer->i)++; + /* Skip the base glyph */ + c->buffer->i++; } }