qt5base-lts/tests/auto
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
..
bic/data Add BiC data for the new way to do BiC testing 2022-05-12 13:33:41 +03:00
cmake CMake: Support big resources in qt_add_resources 2022-08-09 15:21:52 +02:00
concurrent Add license headers to cmake files 2022-08-03 17:14:55 +02:00
corelib QMetaType: don't use global relocations to the lambdas and structures 2022-08-12 11:32:29 -07:00
dbus Add license headers to cmake files 2022-08-03 17:14:55 +02:00
gui Fix QFontDatabase::hasFamily() for ambiguous families 2022-08-15 18:23:43 +02:00
guiapplauncher
network qputenv: port to QByteArrayView 2022-08-06 14:21:46 +00:00
opengl Remove the qmake project files 2021-01-07 15:32:28 +01:00
other qputenv: port to QByteArrayView 2022-08-06 14:21:46 +00:00
printsupport qputenv: port to QByteArrayView 2022-08-06 14:21:46 +00:00
shared Use SPDX license identifiers 2022-05-16 16:37:38 +02:00
sql Add license headers to cmake files 2022-08-03 17:14:55 +02:00
testlib Fix DeferredFlag implementation for QTestEventLoop 2022-08-12 20:32:30 +02:00
tools moc: handle attributes in class declarations 2022-08-03 20:14:42 +02:00
wasm Add license headers to cmake files 2022-08-03 17:14:55 +02:00
widgets Wait for window focus instead of expose event 2022-08-11 19:09:09 +02:00
xml QDomDocument: Add a way to enable spacing-only text nodes 2022-08-04 22:17:05 +02:00
CMakeLists.txt Add license headers to cmake files 2022-08-03 17:14:55 +02:00
network-settings.h Use SPDX license identifiers 2022-05-16 16:37:38 +02:00