qt5base-lts/tests/auto/gui
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
..
image tst_QMovie: extend the test coverage for property bindings 2023-09-03 18:20:48 +02:00
itemmodels QStandardItemModel: extend the test coverage for property bindings 2023-09-03 18:20:54 +02:00
kernel Simplify tst_QShortcut 2023-10-02 22:53:11 +02:00
math3d Mark all of Qt as free of Q_FOREACH, except where it isn't 2023-08-19 05:19:42 +00:00
painting tests/auto/*: port Q_FOREACH to ranged-for, make container const 2023-08-19 16:29:30 +03:00
platform CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qopengl CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qopenglconfig CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
qvulkan CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
rhi CMake: Make gui tests standalone projects 2023-07-05 15:09:32 +02:00
text coretext: Support variable application fonts 2023-10-03 19:25:46 +02:00
util Fix digit grouping: m_grouping_top doesn't mean what I thought it did 2023-08-08 19:44:56 +02:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00