Bug 1122020 - Account for position offset when collecting glyph bounding boxes. r=roc

This commit is contained in:
Jonathan Kew 2015-01-16 09:42:42 +00:00
parent 1ab0ff809c
commit e7cc95bb47

View File

@ -2269,7 +2269,7 @@ gfxFont::Measure(gfxTextRun *aTextRun,
if (isRTL) {
glyphRect -= gfxPoint(advance, 0);
}
glyphRect += gfxPoint(x, 0);
glyphRect += glyphPt;
metrics.mBoundingBox = metrics.mBoundingBox.Union(glyphRect);
x += direction*advance;
}