Fix weight parsing in QBasicUnixFontDatabase
authorJiang Jiang <jiang.jiang@nokia.com>
Fri, 5 Aug 2011 08:59:34 +0000 (10:59 +0200)
committerJiang Jiang <jiang.jiang@nokia.com>
Wed, 24 Aug 2011 07:45:35 +0000 (09:45 +0200)
commit9a19c73754f62c4e7c475ce6e34f752c7e5b2e42
tree8b9128df62c46c6f3f6b6ca4a4dfc41af9b40563
parent889190cfc3c8ec601419236f6419275033770238
Fix weight parsing in QBasicUnixFontDatabase

First check the usWeightClass in OS/2 font table, then check
the weight byte in panose structure because Nokia Pure Text
fonts only have that set correctly.

Change-Id: Idce2626c8df17ce74ba78b317846cb42c3f1fe84
Reviewed-by: Jørgen Lind
Reviewed-on: http://codereview.qt.nokia.com/2682
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
Reviewed-on: http://codereview.qt.nokia.com/3460
src/platformsupport/fontdatabases/basicunix/qbasicunixfontdatabase.cpp