qt5base-lts/tests/baseline
Eskil Abrahamsen Blomfeldt 58907dfa81 Try to match variant-selector font to preceding character
Variant-selectors are special unicode symbols which are used to
modify glyph selection for the preceding character. For instance,
a regular symbol could be turned into a color emoji using VS16,
the emoji variation selector. In order for this to work, however,
the font that handles the selector has to handle the full pair of
characters, so that it can apply the correct substitution rules.

One specific example of this was on macOS, where an airplane
symbol + VS16 would match the symbol to the default UI font but
the VS16 to the emoji font. Since there string provided for the
emoji font did not have any preceding character for VS16, we just
ignored it.

To improve on this, we now detect variation selectors that have
been matched to different font engines than the preceding
character. When such a case occurs, we check if the selector font
also supports the preceding character, and if it does, we keep
the pair together and use the same font for both.

[ChangeLog][QtGui][Text] Fix some cases where a variation-selector
character would be ignored in font selection and the correct
variant of a character would thus not be selected.

Task-number: QTBUG-108799
Change-Id: I9f427e0520e652ee2f24a4f7dc3c1957251e06bd
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
2022-12-12 19:25:45 +01:00
..
painting Try to match variant-selector font to preceding character 2022-12-12 19:25:45 +01:00
shared Port from container::count() and length() to size() - V5 2022-11-03 14:59:24 +01:00
stylesheet StyleSheet: use item background rule when filling row backround 2022-10-25 05:16:15 +02:00
text Deprecate QApplication::setActiveWindow() and mark as internal 2022-08-27 20:22:29 +02:00
widgets Baseline test: add coverage for treeview with alternate rows 2022-10-24 14:20:28 +02:00
CMakeLists.txt tests: fix configuring with -no-feature-gui 2022-10-29 01:04:09 +02:00