summaryrefslogtreecommitdiffstats
path: root/src/opengl/qgraphicssystem_gl_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-05-31 06:36:52 (GMT)
committerSamuli Piippo <samuli.piippo@digia.com>2011-06-09 10:06:02 (GMT)
commit252dab06707b60e4cfdeee6025180a0080f70c63 (patch)
tree22b6daee0adb7b0e6af006cf8d36fb6fe22445c2 /src/opengl/qgraphicssystem_gl_p.h
parent569123b25689d3007b53e3031dac79758d05f12f (diff)
downloadQt-252dab06707b60e4cfdeee6025180a0080f70c63.zip
Qt-252dab06707b60e4cfdeee6025180a0080f70c63.tar.gz
Qt-252dab06707b60e4cfdeee6025180a0080f70c63.tar.bz2
Fix antialiasing with transformed text in OpenGL2 paint engine
Since the paint engine now transforms the prerendered glyphs instead of rendering transformed glyphs as paths, we need to turn on texture filtering to avoid antialiasing artifacts. In order to do this, we also need to pad the glyphs in the glyph cache, otherwise you will get artifacts when sampling the area around the glyph's bounding rect (where there might be other glyphs.) This done by adding a glyphPadding() function to the cache which returns the number of pixels to pad between each glyph. Updated: This also fixes a general issue where some combinations of font sizes and transformations will cause the engine to sample neighbouring glyphs, so this has been backported to Qt 4.6.x. Task-number: QTBUG-9706, QTBUG-11028 Reviewed-by: Tom Conflicts: src/gui/painting/qtextureglyphcache.cpp src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp (cherry picked from commit 21f5bf3a3030a393ba17ce7726b70fe853b5b608)
Diffstat (limited to 'src/opengl/qgraphicssystem_gl_p.h')
0 files changed, 0 insertions, 0 deletions