diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2018-11-09 17:56:08 +0100 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2018-11-30 16:15:03 +0000 |
commit | 17ced070fd1e55948659bc37c421f98074910599 (patch) | |
tree | 2cc19157f873a7732ad4f470f8d6a872f5c42b5a /tests/auto/gui/text/qfontdatabase/testdata.qrc | |
parent | d23d146175d6fab2ede50818777afe248ca0be23 (diff) |
Read font selection flags and use them when querying for metrics
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 <marten.nordheim@qt.io>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'tests/auto/gui/text/qfontdatabase/testdata.qrc')
-rw-r--r-- | tests/auto/gui/text/qfontdatabase/testdata.qrc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/gui/text/qfontdatabase/testdata.qrc b/tests/auto/gui/text/qfontdatabase/testdata.qrc index 81a0b5b0bf..224e845601 100644 --- a/tests/auto/gui/text/qfontdatabase/testdata.qrc +++ b/tests/auto/gui/text/qfontdatabase/testdata.qrc @@ -3,5 +3,6 @@ <file>LED_REAL.TTF</file> <file alias="testfont.ttf">../../../shared/resources/testfont.ttf</file> <file alias="testfont_condensed.ttf">../../../shared/resources/testfont_condensed.ttf</file> + <file alias="testfont_italic.ttf">../../../shared/resources/testfont_italic.ttf</file> </qresource> </RCC> |