mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-11 18:24:02 +00:00
Process glyphs in right-to-left clusters in reverse order. Bug 387653, r=vlad
This commit is contained in:
parent
d40a9a5bb7
commit
e90ebf5ff3
@ -1034,7 +1034,8 @@ SetGlyphsForCharacterGroup(const PangoGlyphInfo *aGlyphs, PRUint32 aGlyphCount,
|
||||
PRUint32 i;
|
||||
for (i = 0; i < aGlyphCount; ++i) {
|
||||
gfxTextRun::DetailedGlyph *details = &detailedGlyphs[i];
|
||||
const PangoGlyphInfo &glyph = aGlyphs[i];
|
||||
PRUint32 j = (aTextRun->IsRightToLeft()) ? aGlyphCount - 1 - i : i;
|
||||
const PangoGlyphInfo &glyph = aGlyphs[j];
|
||||
details->mIsLastGlyph = i == aGlyphCount - 1;
|
||||
details->mGlyphID = glyph.glyph;
|
||||
NS_ASSERTION(details->mGlyphID == glyph.glyph,
|
||||
|
Loading…
x
Reference in New Issue
Block a user