qt5base-lts/tests/auto/gui
Eskil Abrahamsen Blomfeldt e28ae083d2 macOS: Fix stretch of condensed fonts with NoFontMerging
When showing a condensed font with AnyStretch, we should
not apply any stretch to the font (and if a stretch is
requested, we should calculate the actual stretch based
on how much the font is already stretched or condensed).

This usually works as expected, however, when using
QFont::NoFontMerging as the style strategy, we would
scale the glyph advances by the stretch of the font
since the calculated stretch of the font engine would
be overwritten by the actual stretch. In the case where
we use font merging, this would be done for the multi
engine, so we would not get the same issue, since the
text engine gets the stretch from the actual font engine
and this still has the original, calculated stretch
set.

Note on the test: We can't use testString() for this,
since it contains a space, and the test font does not
have a glyph for this, so we will end up merging a
different font for the space, giving us a slightly
different advance.

[ChangeLog][QtGui][macOS] Fixed display of condensed fonts
when NoFontMerging is in use.

Task-number: QTBUG-63800
Change-Id: I5b05e0dbfc8ae4b5d10c621ecb0975f53fda9483
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2018-05-04 04:46:48 +00:00
..
image tst_qimagereader: Make sure to include all image resources in test 2018-04-20 15:05:01 +00:00
itemmodels QStandardItem: add more sanity checks on insertRow(s)/Column(s) 2018-03-07 18:36:15 +00:00
kernel Merge remote-tracking branch 'origin/5.11' into dev 2018-05-03 14:50:22 +02:00
math3d Use qRadiansToDegrees() and qDegreesToRadians() more widely 2017-07-05 10:15:34 +00:00
painting Fix division by zero in radial gradiants with NEON 2018-04-24 18:16:54 +00:00
qopengl Merge remote-tracking branch 'origin/5.10' into dev 2017-10-24 13:40:55 +02:00
qopenglconfig Fix tst_QOpenGlConfig for platforms with builtin test data 2017-06-19 07:05:59 +00:00
qvulkan Merge remote-tracking branch 'origin/5.10' into dev 2017-10-17 10:34:24 +02:00
text macOS: Fix stretch of condensed fonts with NoFontMerging 2018-05-04 04:46:48 +00:00
util QDoubleValidator: Allow intermediate values as close as possible to one considered invalid 2018-04-17 15:36:34 +00:00
gui.pro Basic Vulkan enablers 2017-03-17 16:12:03 +00:00