qt5base-lts/tests/auto/gui/text/qfontmetrics
Eskil Abrahamsen Blomfeldt 73176d2922 Add API to disable text shaping on fonts
In the past, we had an undocumented text flag that worked with
one of the QPainter::drawText() overloads. This was never intended
as public API and served a specific cause in Qt WebKit at one point.

But there is a general need for such API, as disabling shaping features
easily gives 25% performance improvement on text rendering even for
fairly short strings.

This patch adds a new style strategy flag to disable shaping and
will just uses the CMAP and HDMX tables to get glyph indices and advances
for the characters. In Qt 6, the TextBypassShaping flag can be removed
completely and be replaced by the style strategy.

[ChangeLog][QtGui][Text] Added QFont::PreferNoShaping style strategy to support
improvements to performance at the expense of some cosmetic font features.

Task-number: QTBUG-56728
Change-Id: I48e025dcc06afe02824bf5b5011702a7e0036f6d
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2017-07-26 10:51:00 +00:00
..
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
qfontmetrics.pro Tests: Remove CONFIG += parallel_test. 2015-09-05 07:16:50 +00:00
testfont.qrc Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
tst_qfontmetrics.cpp Add API to disable text shaping on fonts 2017-07-26 10:51:00 +00:00
ucs4font.ttf Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00