diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2009-12-15 12:15:34 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2009-12-15 12:28:30 (GMT) |
commit | da918327fdaaf45774c074d911882141cf77ea7e (patch) | |
tree | 5281d2d03e7aa5f2656ea9d0a6a60b353245d384 /src/gui/painting/qpathclipper_p.h | |
parent | 39ca4450e0c2ca16ba253f1a3ac3ea5bdd23f290 (diff) | |
download | Qt-da918327fdaaf45774c074d911882141cf77ea7e.zip Qt-da918327fdaaf45774c074d911882141cf77ea7e.tar.gz Qt-da918327fdaaf45774c074d911882141cf77ea7e.tar.bz2 |
Fix vertical text centering on Mac OS X
Change 04d18b38 fixed the windows and ft font engines so that the height
reported in QFontMetrics is now correct, but this make vertical text
centering one off as the platform defaults is to round down rather than
up when the vertical position of the text is in the middle of a pixel.
When this was fixed in change 1de8a5b, the vertical centering broke on
Mac, since it still reported a too great font height. This patch applies
the same hack to the mac font engines to report the correct font
height.
Task-number: QTBUG-6770
Reviewed-by: joerg
Diffstat (limited to 'src/gui/painting/qpathclipper_p.h')
0 files changed, 0 insertions, 0 deletions