diff --git a/textlayouter.d b/textlayouter.d index b921927..77f7275 100644 --- a/textlayouter.d +++ b/textlayouter.d @@ -1503,6 +1503,10 @@ class TextLayouter { auto bb = boundingBoxOfGlyph(segmentIndex, selection.focus); + // the y is added elsewhere already. i think. + bb.left += segment.upperLeft.x; + bb.right += segment.upperLeft.x; + bb.top += castFnumToCnum(glyphStyle.font.ascent); bb.bottom -= castFnumToCnum(glyphStyle.font.descent);