qt6-bb10/tests/auto/gui/text
Eskil Abrahamsen Blomfeldt 360f1547f7 Fix QFontDatabase::hasFamily() for ambiguous families
If a font family has several instances from different foundries,
we disambiguate this by adding the foundry name in brackets behind
the family. But QFontDatabase::hasFamily() would only check for
families().contains(familyName). So if the database contains e.g.
Foo [Bar] and Foo [Baz] then a check for hasFamily("Foo") would
fail.

So we need to actually check for the family name instead. In
doing this, we also skip the extra step of building the list
and then searching it, but just go directly to the source.

This removes the BLACKLISTing of Ubuntu and also introduces a
QSKIP on Unix-based platforms without fontconfig, since there
is no way to know which default fonts are acceptable on those
platforms.

Pick-to: 6.4
Fixes: QTBUG-86967
Change-Id: Id8ad80a1671daf1c14fbad8bb8f4c51ee1c59709
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-08-15 18:23:43 +02:00
..
qabstracttextdocumentlayout Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qcssparser Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qfont Fix QFontDatabase::hasFamily() for ambiguous families 2022-08-15 18:23:43 +02:00
qfontcache Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qfontdatabase Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qfontmetrics Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qglyphrun Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qinputcontrol Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qrawfont Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qstatictext Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qsyntaxhighlighter Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextblock Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextcursor Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextdocument Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextdocumentfragment Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextdocumentlayout Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextformat Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextimagehandler Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
qtextlayout Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextlist Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextmarkdownimporter Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextmarkdownwriter Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextobject Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextodfwriter Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextpiecetable Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtextscriptengine Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qtexttable Add license headers to cmake files 2022-08-03 17:14:55 +02:00
qzip Add license headers to cmake files 2022-08-03 17:14:55 +02:00
CMakeLists.txt Add license headers to cmake files 2022-08-03 17:14:55 +02:00