Support fallback fonts in DirectWrite font engine
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Mon, 9 Jul 2012 13:52:13 +0000 (15:52 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 10 Jul 2012 01:24:53 +0000 (03:24 +0200)
commit69fb70f6b3c88d4d2bb5ca97dbb7f77f42c828c5
tree2c8bbc3fe4d470fd102a722af19c841a02db9031
parentfafc1c3dc3eed3c331f5213f5238480335a346ee
Support fallback fonts in DirectWrite font engine

When selecting fallback fonts for a DirectWrite font, we would
cast the font engine to QWindowsFontEngine and get unpredictable
results and crashes. This change factors out getting the LOGFONT
data from the QFontDef struct and will use this to create a new
DirectWrite engine.

Task-number: QTBUG-22658

Change-Id: I743944d9a44d8742b47b1aa3354532493362cc4a
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/plugins/platforms/windows/qwindowsfontdatabase.cpp
src/plugins/platforms/windows/qwindowsfontdatabase.h
src/plugins/platforms/windows/qwindowsfontengine.cpp
src/plugins/platforms/windows/qwindowsfontenginedirectwrite.h