diff options
author | Alessandro Portale <alessandro.portale@nokia.com> | 2010-02-01 20:29:47 (GMT) |
---|---|---|
committer | Alessandro Portale <alessandro.portale@nokia.com> | 2010-02-01 20:33:38 (GMT) |
commit | 5a64033f89e07505bb77d3c172597b8df3cbd762 (patch) | |
tree | 88eeeaf93d6d1c4071d21953470010699f86e38e /src/gui/gui.pro | |
parent | cecc68ee98e4258b63c3c798cdbf230f09dc0e77 (diff) | |
download | Qt-5a64033f89e07505bb77d3c172597b8df3cbd762.zip Qt-5a64033f89e07505bb77d3c172597b8df3cbd762.tar.gz Qt-5a64033f89e07505bb77d3c172597b8df3cbd762.tar.bz2 |
Fixed text rendering via scaled QPainter on rasterPaintEngine / Symbian
Text rendering in Qt for Symbian looks very bad on a scaled QPainter.
Instead of simply using a Symbian font with the right size it followed
the code path that is usually used for "tricky transformation":
Use the glyph outlines and rasterize them in Qt as QPainterPath.
That's slow and especially ugly on Symbian since we do not (yet)
get the glyph outlines from Symbian.
This patch adds QFontEngineS60::setFontScale() so that QFontEngineS60
has one additional native font handle with the scaled size. The raster
paint engine will call that function in case that the painter is scaled.
Since we already have QFontEngineS60 specific code in the raster paint
engine, this patch did not have to add #ifdefs.
http://bugreports.qt.nokia.com/browse/QTBUG-7614
Task-number: QTBUG-7614
Reviewed-by: Jason Barron
modified: gui/painting/qpaintengine_raster.cpp
modified: gui/text/qfontengine_s60.cpp
modified: gui/text/qfontengine_s60_p.h
Diffstat (limited to 'src/gui/gui.pro')
0 files changed, 0 insertions, 0 deletions