qt6-bb10/tests/auto/shared/resources
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
..
test.ttf Don't hide object replacement char except in rich text 2022-12-14 19:19:01 +01:00
testfont.ttf
testfont_condensed.ttf Make self-contained test of condensed font matching and width 2016-10-16 00:11:13 +00:00
testfont_italic.ttf Read font selection flags and use them when querying for metrics 2018-11-30 16:15:03 +00:00
testfont_open.otf QWindowsFontDatabase: Check preferred family names for all fonts 2019-11-29 09:31:21 +01:00
testfont_variable.ttf coretext: Support variable application fonts 2023-10-03 19:25:46 +02:00