qt5base-lts/tests/auto/gui/text/qrawfont
Eskil Abrahamsen Blomfeldt 793cfa20a3 [Windows] Fixed regression when creating fallback fonts
In 3ccdeb4b58, we removed the
specialized multi font engine on Windows, causing us to go
through the same code path when loading fallbacks as on
other platforms.

When combined with 97f73e9577,
this caused an error, because the code in
QFontEngineMulti::loadEngine() only overrode the families
list, but not the singular family in the request. In the
QRawFont test, this would cause the requested fallback font
to correctly have "MS Shell Dlg2" as the only font in the
families list, but the request.family would still be
"QtBidiTestFont", the name of the main font. The singular family
in the request was preferred by the windows font database when
creating the LOGFONT. We would therefore load the latter for
the fallback as well and since it still does not support the
characters in question, we would continue searching.

Fixes: QTBUG-72836
Change-Id: I1787b57febcf6030d5c5b09bc2ef2c9558f05beb
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
2019-02-14 08:01:05 +00:00
..
qrawfont.pro Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
testdata.qrc Added capHeight() to QRawFont and QFontMetrics(F) 2016-08-15 18:27:06 +00:00
testfont_bold_italic.ttf Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
testfont_os2_v1.ttf Added capHeight() to QRawFont and QFontMetrics(F) 2016-08-15 18:27:06 +00:00
tst_qrawfont.cpp Android: QEXPECT_FAIL in tst_QRawFont::fallbackFontsOrder 2018-06-30 19:32:56 +00:00