qt5base-lts/tests/auto/gui/text/qfontdatabase
Eskil Abrahamsen Blomfeldt 34fa01be82 Fix tst_QFontDatabase::aliases failure with ambiguous font
If the first font in the families list happens to have been
disambiguated because of duplicates, two things went wrong:

1. hasFamily() would return false for the font family, because
it does not disambiguate when checking for the family name and
only checks if the families list contains the exact string.

2. Adding aliases to the full disambiguated string is not supported,
only the family name.

The first issue has been reported separately as QTBUG-89068.

The test failure is fixed by just avoiding the fonts that
are ambiguous in the test, as it really doesn't matter which
font we pick.

Fixes: QTBUG-89008
Pick-to: 5.15 6.0
Change-Id: I829778c2e7bb6090475c34dcf9cdce58862729d6
Reviewed-by: Liang Qi <liang.qi@qt.io>
2020-12-02 16:22:27 +00:00
..
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
BLACKLIST Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
CMakeLists.txt CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
LED_REAL_readme.txt Fix application font removal when using FontConfig 2014-03-27 14:41:53 +01:00
LED_REAL.TTF Fix application font removal when using FontConfig 2014-03-27 14:41:53 +01:00
qfontdatabase.pro Make self-contained test of condensed font matching and width 2016-10-16 00:11:13 +00:00
testdata.qrc QWindowsFontDatabase: Check preferred family names for all fonts 2019-11-29 09:31:21 +01:00
tst_qfontdatabase.cpp Fix tst_QFontDatabase::aliases failure with ambiguous font 2020-12-02 16:22:27 +00:00