From 17ced070fd1e55948659bc37c421f98074910599 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Nordheim?= Date: Fri, 9 Nov 2018 17:56:08 +0100 Subject: Read font selection flags and use them when querying for metrics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Certain fonts with multiple styles have the same family name. When loading these as application fonts we were not specific enough when querying for the text metrics. This meant that e.g. the bold version in a font family would get the metrics of the regular one. Fixes: QTBUG-67273 Change-Id: Ic988d62cddde0a1f77ddcaf2891cadc21c9b31e6 Reviewed-by: MÃ¥rten Nordheim Reviewed-by: Eskil Abrahamsen Blomfeldt --- tests/auto/shared/resources/testfont_italic.ttf | Bin 0 -> 64136 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 tests/auto/shared/resources/testfont_italic.ttf (limited to 'tests/auto/shared/resources') diff --git a/tests/auto/shared/resources/testfont_italic.ttf b/tests/auto/shared/resources/testfont_italic.ttf new file mode 100644 index 0000000000..0a01f883f4 Binary files /dev/null and b/tests/auto/shared/resources/testfont_italic.ttf differ -- cgit v1.2.3