diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-03-17 13:40:24 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-03-17 13:58:20 (GMT) |
commit | 1ebeb971d3382aec0fff927ce2d6ea7b0452584f (patch) | |
tree | 0400dae576726845e85f2ca407def59b0ca261b4 /src/qt3support/tools/q3gdict.cpp | |
parent | c950a2594f7c3102930541800edac5384827846d (diff) | |
download | Qt-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