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 b97c0b373e
commit 937c106494

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;
}