summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2011-05-16 10:20:54 +0200
committerQt Continuous Integration System <qt-info@nokia.com>2011-05-25 17:57:34 +0200
commitffc19505914e774e067217f5d7149af032312bb7 (patch)
tree127088a719789275350574d452cce22d7b8189fe /lib
parent1909e038823f8dff9d18882b64e637b15234f837 (diff)
Workaround a bug in Core Text to select Light fonts
Currently in Core Text there is not proper way to select fonts with Light weight, for example: QFont font("Helvetica"); font.setWeight(QFont::Light); will give you Helvetica-Light, as with: QFont font("Helvetica"); font.setWeight(QFont::Normal); because of a bug in Core Text, applying 0 symbolic traits with CTFontCreateCopyWithSymbolicTraits will always return the Light variant of that font family. Thus, we should only do this unless symbolicTraits is not 0 or font.weight is not Normal (Light is not a symbolic trait, but CT doesn't support selecting Light weight numerically). Reviewed-by: Eskil (cherry picked from commit 4d5b8f66d82e9087d9d58a4e76e6b46ce7bb53cc) Change-Id: I37a970aba5019a13b9f3bc43b7fb594b74a1aa37 Reviewed-on: http://codereview.qt.nokia.com/124 Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions