diff options
author | Friedemann Kleint <Friedemann.Kleint@nokia.com> | 2012-05-14 16:57:15 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-15 14:34:04 +0200 |
commit | 8b4bf5f81634aa113029ac72721ebd9143c9ed80 (patch) | |
tree | 8eedef4172b08af5b6be651298aae1629188d167 /src/plugins/platforms/windows/qwindowsfontdatabase.cpp | |
parent | c241d8921ea6384c30a1731a036aec8edc7609ab (diff) |
Fix font printing on Windows using the native engine.
- Add HFONT, LOGFONT, trueType as properties of the
Windows font engine, make it a real Q_OBJECT.
- Query properties in the Windows print engine and use the HFONT,
LOGFONT there.
Change-Id: I5c35275b32ef6580d7fa15ed83c6e79e33dc3334
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsfontdatabase.cpp')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsfontdatabase.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsfontdatabase.cpp b/src/plugins/platforms/windows/qwindowsfontdatabase.cpp index 7e8c70ee44..814a6a930b 100644 --- a/src/plugins/platforms/windows/qwindowsfontdatabase.cpp +++ b/src/plugins/platforms/windows/qwindowsfontdatabase.cpp @@ -1115,6 +1115,12 @@ void QWindowsFontDatabase::populate(const QString &family) QWindowsFontDatabase::QWindowsFontDatabase() : m_fontEngineData(new QWindowsFontEngineData) { + // Properties accessed by QWin32PrintEngine (QtPrintSupport) + static const int hfontMetaTypeId = qRegisterMetaType<HFONT>(); + static const int logFontMetaTypeId = qRegisterMetaType<LOGFONT>(); + Q_UNUSED(hfontMetaTypeId) + Q_UNUSED(logFontMetaTypeId) + if (QWindowsContext::verboseFonts) qDebug() << __FUNCTION__ << "Clear type: " << m_fontEngineData->clearTypeEnabled << "gamma: " |