changeset 37 | 758a864f9613 |
parent 18 | 2f34d5167611 |
--- a/src/gui/text/qfontengine_qws.cpp Fri Sep 17 08:34:18 2010 +0300 +++ b/src/gui/text/qfontengine_qws.cpp Mon Oct 04 01:19:32 2010 +0300 @@ -557,7 +557,7 @@ QFixed w = 0; for (int i = 0; i < glyphs.numGlyphs; ++i) w += glyphs.effectiveAdvance(i); - return glyph_metrics_t(0, -ascent(), w, ascent()+descent()+1, w, 0); + return glyph_metrics_t(0, -ascent(), w - lastRightBearing(glyphs), ascent()+descent()+1, w, 0); } glyph_metrics_t QFontEngineQPF1::boundingBox(glyph_t glyph)