bug 772640 - fix for incorrect glyph positioning in multi-glyph RTL clusters generated by Graphite shaping. r=jdaggett

This commit is contained in:
Jonathan Kew 2012-10-22 08:47:03 +01:00
parent aa64548679
commit dcaf7cf48c

View File

@ -340,7 +340,9 @@ gfxGraphiteShaper::SetGlyphsFromSegment(gfxShapedWord *aShapedWord,
d->mAdvance = appAdvance;
clusterLoc = xLocs[j];
} else {
d->mXOffset = (xLocs[j] - clusterLoc - adv) * dev2appUnits;
d->mXOffset = dev2appUnits *
(rtl ? (xLocs[j] - clusterLoc) :
(xLocs[j] - clusterLoc - adv));
d->mAdvance = 0;
}
}