summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qtriangulatingstroker_p.h
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-05-31 06:36:52 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-05-31 06:40:38 (GMT)
commit21f5bf3a3030a393ba17ce7726b70fe853b5b608 (patch)
tree7fe11ccccbd024b5fec105312fd513717b433d2a /src/opengl/gl2paintengineex/qtriangulatingstroker_p.h
parent035129c96d714ba6183057ff2b77658d993394db (diff)
downloadQt-21f5bf3a3030a393ba17ce7726b70fe853b5b608.zip
Qt-21f5bf3a3030a393ba17ce7726b70fe853b5b608.tar.gz
Qt-21f5bf3a3030a393ba17ce7726b70fe853b5b608.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
Diffstat (limited to 'src/opengl/gl2paintengineex/qtriangulatingstroker_p.h')
0 files changed, 0 insertions, 0 deletions