Windows: Remove fontengine autodetection logic
Always default to native font engine as native fonts now work in QML applications, too. Change-Id: Iafa5f6d25a9a3b22f49763f287e4e358216cfc2d Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
9b7739899e
commit
a941e0c0a6
@ -59,8 +59,8 @@ QT_BEGIN_NAMESPACE
|
||||
of QGuiApplication:
|
||||
|
||||
\list
|
||||
\li \c fontengine=native Indicates that the freetype font
|
||||
engine should not be used.
|
||||
\li \c fontengine=native Indicates that native font engine should be used (default)
|
||||
\li \c fontengine=freetype Indicates that freetype font engine should be used
|
||||
\li \c gl=gdi Indicates that ARB Open GL functionality should not be used
|
||||
\endlist
|
||||
|
||||
|
@ -285,7 +285,6 @@ QPlatformOpenGLContext
|
||||
* QML2 applications. */
|
||||
|
||||
enum FontDatabaseOption {
|
||||
FontDatabaseAuto,
|
||||
FontDatabaseFreeType,
|
||||
FontDatabaseNative
|
||||
};
|
||||
@ -300,7 +299,7 @@ static inline FontDatabaseOption fontDatabaseOption(const QObject &nativeInterfa
|
||||
if (argument == QLatin1String("native"))
|
||||
return FontDatabaseNative;
|
||||
}
|
||||
return FontDatabaseAuto;
|
||||
return FontDatabaseNative;
|
||||
}
|
||||
|
||||
QPlatformFontDatabase *QWindowsIntegration::fontDatabase() const
|
||||
@ -310,10 +309,6 @@ QPlatformFontDatabase *QWindowsIntegration::fontDatabase() const
|
||||
d->m_fontDatabase = new QWindowsFontDatabase();
|
||||
#else
|
||||
FontDatabaseOption option = fontDatabaseOption(d->m_nativeInterface);
|
||||
if (option == FontDatabaseAuto) {
|
||||
option = QCoreApplication::applicationName() == QStringLiteral("QtQmlViewer") ?
|
||||
FontDatabaseFreeType : FontDatabaseNative;
|
||||
}
|
||||
if (option == FontDatabaseFreeType) {
|
||||
d->m_fontDatabase = new QWindowsFontDatabaseFT;
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user