qt6-bb10/tests/auto/gui/text
Eskil Abrahamsen Blomfeldt e6880e7cd1 Fix text shifting vertically when elided
When eliding text we would check for the existence of the ellipsis
character and fall back to using the dot if it was not available.
However, when font merging was in use, we would also use ellipsis
from a fallback font if available. This could cause the metrics
of the text to increase if the fallback font had larger metrics,
and the result was that text could shift when elided.

It is better to prefer the dot from the current font than to use
the ellipsis from a fallback, so we only use the ellipsis if
it is in the main font.

[ChangeLog][QtGui][Text] Fixed a bug where eliding text could
change the height of its bounding rectangle for certain fonts.

Fixes: QTBUG-72553
Change-Id: Ib27fc65302465ddce661801bcc5ae32e55f1aeb9
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2018-12-21 10:27:12 +00:00
..
qabstracttextdocumentlayout
qcssparser QCss: properly parse functions which contains additional spaces 2018-10-12 22:01:14 +00:00
qfont Android: tst_QFont: QEXPECT_FAIL a couple failing checks 2018-06-30 19:32:53 +00:00
qfontcache
qfontdatabase Read font selection flags and use them when querying for metrics 2018-11-30 16:15:03 +00:00
qfontmetrics Fix text shifting vertically when elided 2018-12-21 10:27:12 +00:00
qglyphrun winrt: Fix/blacklist failing text related auto tests 2018-06-22 05:02:42 +00:00
qinputcontrol
qrawfont Android: QEXPECT_FAIL in tst_QRawFont::fallbackFontsOrder 2018-06-30 19:32:56 +00:00
qstatictext Merge remote-tracking branch 'origin/5.11' into dev 2018-07-17 10:19:22 +02:00
qsyntaxhighlighter QSyntaxHighlighter: Delay all highlights until first rehighlight 2018-11-08 16:38:27 +00:00
qtextblock
qtextcursor Fix crash when detaching dangling QTextCursor 2018-09-27 06:51:37 +00:00
qtextdocument Android: QEXPECT_FAIL tst_QTextDocument::task240325 2018-07-04 14:32:23 +00:00
qtextdocumentfragment winrt: Fix/blacklist failing text related auto tests 2018-06-22 05:02:42 +00:00
qtextdocumentlayout winrt: Fix/blacklist failing text related auto tests 2018-06-22 05:02:42 +00:00
qtextformat Update font when text format's letter spacing type is changed 2017-12-22 05:37:55 +00:00
qtextlayout Fix potential crash when showing line/paragraph separators 2018-08-09 12:46:22 +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