Go to file
Jiang Jiang ffc1950591 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>
2011-05-25 17:57:34 +02:00
bin Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
config.profiles Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
config.tests Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
demos Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
dist Changelog: Qt Designer 4.8 2011-05-05 16:17:50 +02:00
doc/src Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
examples Fixed line endings. 2011-05-24 17:08:20 +02:00
lib Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mkspecs Do not continue if syncqt fails. 2011-05-25 15:59:21 +10:00
qmake Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
src Workaround a bug in Core Text to select Light fonts 2011-05-25 17:57:34 +02:00
tests Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging 2011-05-25 01:11:52 +10:00
tools Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
util Merge branch 'master' of git://scm.dev.nokia.troll.no/qt/qtbase-staging 2011-05-25 01:11:52 +10:00
.gitattributes Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
.gitignore Add QT_xxx_VERSION macros for each library in qtbase 2011-05-10 15:15:15 +02:00
.tag Added .tag file with Git revision. 2011-05-03 16:23:49 +02:00
configure Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
configure.exe New configure.exe binary 2011-05-23 09:24:19 -05:00
header.BSD Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
header.FDL Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
header.LGPL Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
header.LGPL-ONLY Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
INSTALL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LGPL_EXCEPTION.txt Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.FDL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.LGPL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
LICENSE.PREVIEW.COMMERCIAL Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qtbase.pro Fix -nomake tests. 2011-05-25 12:40:25 +10:00
sync.profile Add QT_xxx_VERSION macros for each library in qtbase 2011-05-10 15:15:15 +02:00