bug 833297 - ensure graphite shaper does not overwrite cluster information. r=jdaggett

This commit is contained in:
Jonathan Kew 2013-01-23 16:41:32 +00:00
parent 68d48d61d5
commit 4b78b3e922

View File

@ -343,6 +343,7 @@ gfxGraphiteShaper::SetGlyphsFromSegment(gfxContext *aContext,
if (c.nGlyphs == 1 &&
gfxShapedText::CompressedGlyph::IsSimpleGlyphID(gids[c.baseGlyph]) &&
gfxShapedText::CompressedGlyph::IsSimpleAdvance(appAdvance) &&
charGlyphs[offs].IsClusterStart() &&
yLocs[c.baseGlyph] == 0)
{
charGlyphs[offs].SetSimpleGlyph(appAdvance, gids[c.baseGlyph]);