qt5base-lts/tests/auto/gui/text/qfontdatabase
Eskil Abrahamsen Blomfeldt a890df0283 coretext: Support variable application fonts
Named instances of variable application fonts are exposed
automatically through CTFontManagerCreateFontDescriptorsFromData()
(and also for the URL equivalent).

The main change here is just to call this instead of the overload
which only returns the first font.

Note that this also updates the test: This is because the conversion
from CoreText normalized weight values to TTF values is not 100%.
In the CoreText code, we map Heavy (0.56) to ExtraBold, but ExtraBold
gets converted to 0.6, which is closer to the CoreText value for Black
(0.62).

To avoid hitting this inconsistency, the QtExtraBold has been changed
to Black weight instead, which resolves to the same on all platforms.

Task-number: QTBUG-108624
Change-Id: Ied6d42e9e3e1ba8b7102936c5be3d285b3d9e07f
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2023-10-03 19:25:46 +02:00
..
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
BLACKLIST CI: Blacklist systemFixedFont for QNX 2022-03-02 15:27:36 +02:00
CMakeLists.txt Support loading variable fonts as application fonts in Freetype 2023-09-20 21:37:50 +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
tst_qfontdatabase.cpp coretext: Support variable application fonts 2023-10-03 19:25:46 +02:00