Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.8.5, 5.5.1, 5.6.0 Beta
-
raster, qimage
-
d79a9b1a4f694a227ce62ccab9b44685a9755916 (qt/qtbase/dev)
Description
It seems to be something related to caching of glyphs.
If a glyph is cached, you don't get floating point precision.
This seems strange since the position where the glyph is going to be
painted, should have nothing to do with the caching of it.
See also this "thread":
http://www.qtcentre.org/threads/57280-QPainter-drawText-and-floating-point-precision
Most interesting part from that thread might be this:
"
If I comment out line 3195 (or thereabout) in qpaintengine_raster.cpp, which looks like this:
"if (!drawCachedGlyphs(glyphs.size(), glyphs.constData(), positions.constData(), fontEngine))"
drawText works properly.
"
QPainter::drawGlyphRun has the same problem.
Attachments
For Gerrit Dashboard: QTBUG-35682 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
330169,9 | Implement vertical subpixel positioning where available | dev | qt/qtbase | Status: MERGED | +2 | 0 |