qt5base-lts/tests/auto/gui/text
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
..
qabstracttextdocumentlayout
qcssparser Remove references to obsolete platforms 2017-11-05 06:33:53 +00:00
qfont qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
qfontcache
qfontdatabase macOS: Fix stretch of condensed fonts with NoFontMerging 2018-05-04 04:46:48 +00:00
qfontmetrics Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
qglyphrun Accept error margin in QGlyphRun/QStaticText test for decorations 2017-02-02 15:10:41 +00:00
qinputcontrol Accept all formatting characters as valid input 2017-01-26 10:59:49 +00:00
qrawfont Merge remote-tracking branch 'origin/5.9' into 5.11 2018-02-14 12:51:24 +01:00
qstatictext Fix explicitly set width not being respected 2018-01-20 11:22:53 +00:00
qsyntaxhighlighter
qtextblock
qtextcursor
qtextdocument Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
qtextdocumentfragment
qtextdocumentlayout
qtextformat Update font when text format's letter spacing type is changed 2017-12-22 05:37:55 +00:00
qtextlayout Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
qtextlist
qtextobject
qtextodfwriter Add more formatting to QTextDocumentWriter when writing ODF files 2018-04-11 18:44:31 +00:00
qtextpiecetable Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qtextscriptengine qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
qtexttable
qzip
text.pro Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00