mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
Bug 1122020 - Account for position offset when collecting glyph bounding boxes. r=roc
This commit is contained in:
parent
1ab0ff809c
commit
e7cc95bb47
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user