Calculate correct bounding rect for glyph runs in QTextLayout
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Mon, 2 Apr 2012 13:07:55 +0000 (15:07 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 2 Apr 2012 14:56:48 +0000 (16:56 +0200)
commitd354f7d51444fffd1c3314d2df3622fd1f77113d
tree9c6ef7aed34f7dc4e8fef21c067fabda4bbfd6a4
parent967e9d6e285fbdffe52d026f1c81da071f50d68c
Calculate correct bounding rect for glyph runs in QTextLayout

The positions returned by getGlyphPositions() in QFontEngine are
for the base line of the glyphs. We offset this by -ascent to get
the top of the actual bounding rect.

Task-number: QTBUG-22919
Change-Id: Id82c66ecfbdf58064f5ad26f4193fa55ac26bc7c
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/gui/text/qtextlayout.cpp