summaryrefslogtreecommitdiffstats
path: root/src/qt3support/tools/q3gdict.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-03-17 13:40:24 (GMT)
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>2010-03-17 13:58:20 (GMT)
commit1ebeb971d3382aec0fff927ce2d6ea7b0452584f (patch)
tree0400dae576726845e85f2ca407def59b0ca261b4 /src/qt3support/tools/q3gdict.cpp
parentc950a2594f7c3102930541800edac5384827846d (diff)
downloadQt-1ebeb971d3382aec0fff927ce2d6ea7b0452584f.zip
Qt-1ebeb971d3382aec0fff927ce2d6ea7b0452584f.tar.gz
Qt-1ebeb971d3382aec0fff927ce2d6ea7b0452584f.tar.bz2
Optimize getting bearings of a glyph on Windows for true type fonts
Usually, the bearing of a glyph is calculated based on the bounding box of the glyph. However, retrieving these bounds is a costly operation on Windows. For true type fonts, we can retrieve the bearings directly by getting the ABC widths, so as an optimization we implement a new virtual function in QFontEngine which retrieves the bearings of the glyph. The default implementation uses boundingBox, but on Windows we try to take the shortcut. Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/qt3support/tools/q3gdict.cpp')
0 files changed, 0 insertions, 0 deletions