Properly fix QFontDatabase test on Freetype
Amends 4dd5020fbdfdd34f1e4ec54521217e472942a4b4. I messed up the fix for the XFAIL condition, since the font engine type we get from a normal QFont will be QFontEngine::Multi regardless of whether the actual font engines are Freetype or not. Use NoFontMerging to avoid this. Pick-to: 6.2 Task-number: QTBUG-97995 Change-Id: I2298c997e6826e667dbb8e3d004821f296625ef7 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
This commit is contained in:
parent
7490937609
commit
cde562cf6d
@ -431,7 +431,9 @@ void tst_QFontDatabase::condensedFontMatching()
|
||||
tfcByStyleName.setStyleName("Condensed");
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
QFontPrivate *font_d = QFontPrivate::get(tfcByStretch);
|
||||
QFont f;
|
||||
f.setStyleStrategy(QFont::NoFontMerging);
|
||||
QFontPrivate *font_d = QFontPrivate::get(f);
|
||||
if (font_d->engineForScript(QChar::Script_Common)->type() != QFontEngine::Freetype)
|
||||
QEXPECT_FAIL("","No matching of sub-family by stretch on Windows", Continue);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user