mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1122020 - Account for position offset when collecting glyph bounding boxes. r=roc
This commit is contained in:
parent
b97c0b373e
commit
937c106494
@ -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