summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qfontengine_p.h
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-05-06 09:58:56 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-05-06 13:04:43 (GMT)
commit2043637a4e17252062fcb483e2e63ce0cb0920dd (patch)
tree6b6d8c90298f10bbfbf20dda6f81a1aba9819e9c /src/gui/text/qfontengine_p.h
parent3cec5ff3f0aa8d3eca0dfb325e83a8a3a18cb305 (diff)
downloadQt-2043637a4e17252062fcb483e2e63ce0cb0920dd.zip
Qt-2043637a4e17252062fcb483e2e63ce0cb0920dd.tar.gz
Qt-2043637a4e17252062fcb483e2e63ce0cb0920dd.tar.bz2
Re-enabled antialiasing for large font sizes in OpenGL paint engine.
In 4.4 alphaMapForGlyph() would return valid images for any font size, but this was changed in 4.5, forcing us to use the path fallback instead. This lead to non-antialiased fonts when not using a multisample-enabled GL format. This patch re-introduces the alphaMapForGlyph() fallback in QFontEngine from 4.4 which uses the raster paint engine to draw the glyph. Task-number: 247083 Reviewed-by: Trond
Diffstat (limited to 'src/gui/text/qfontengine_p.h')
-rw-r--r--src/gui/text/qfontengine_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontengine_p.h b/src/gui/text/qfontengine_p.h
index 176c728..dc18991 100644
--- a/src/gui/text/qfontengine_p.h
+++ b/src/gui/text/qfontengine_p.h
@@ -178,7 +178,7 @@ public:
* Create a qimage with the alpha values for the glyph.
* Returns an image indexed_8 with index values ranging from 0=fully transparant to 255=opaque
*/
- virtual QImage alphaMapForGlyph(glyph_t) = 0;
+ virtual QImage alphaMapForGlyph(glyph_t);
virtual QImage alphaMapForGlyph(glyph_t, const QTransform &t);
virtual QImage alphaRGBMapForGlyph(glyph_t, int margin, const QTransform &t);