Fix missing Windows native fonts in QML applications
Windows native fonts were not getting rendered because the font engine was cloned incorrectly for QRawFont, resulting in multi-engine instead of the specific cloned engine. Task-number: QTBUG-25410 Change-Id: I08f543e541739ac1b51f96f381ae1bb20b59399a Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
This commit is contained in:
parent
e7da3a104c
commit
4c6d12e6d2
@ -1133,6 +1133,9 @@ QFontEngine *QWindowsFontEngine::cloneWithSize(qreal pixelSize) const
|
||||
if (!uniqueFamilyName.isEmpty())
|
||||
request.family = uniqueFamilyName;
|
||||
request.pixelSize = pixelSize;
|
||||
// Disable font merging, as otherwise createEngine will return a multi-engine
|
||||
// instance instead of the specific engine we wish to clone.
|
||||
request.styleStrategy |= QFont::NoFontMerging;
|
||||
|
||||
QFontEngine *fontEngine =
|
||||
QWindowsFontDatabase::createEngine(QUnicodeTables::Common, request, 0,
|
||||
|
Loading…
x
Reference in New Issue
Block a user