qt5base-lts/tests/auto/gui/text/qfont
Andy Shaw 97f73e9577 Handle fonts that have commas/quotes in the family name
Since the comma character was originally used as a separator, we
need to extend QFont to have setFamilies() so that we can avoid
joining the family strings together. This enables us to see the
family name as a single string and for multiple family names,
we have families().

Subsequently, this has added functions to QTextCharFormat to
account for multiple font families too. So it is now possible to
set a single one directly with setFontFamily() and multiple ones
with setFontFamilies().

This also bumps up the datastream version to 19 as QFont now
streams the families list as well.

[ChangeLog][QtGui][QFont] Add setFamilies()/families() to aid using of font families with commas and quotes in their name.
[ChangeLog][Important Behavior Changes] QDataStream version bumped up to 19 to account for changes in the serialization of QFont.

Fixes: QTBUG-46322
Change-Id: Iee9f715e47544a7a705c7f36401aba216a7d42b0
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
2018-11-08 16:08:25 +00:00
..
.gitignore Moved gui autotests into new directory structure 2011-09-01 10:59:49 +02:00
BLACKLIST qtbase: cleanup BLACKLIST files 2018-02-13 15:20:33 +00:00
qfont.pro Handle fonts that have commas/quotes in the family name 2018-11-08 16:08:25 +00:00
testfont.qrc Handle fonts that have commas/quotes in the family name 2018-11-08 16:08:25 +00:00
tst_qfont.cpp Handle fonts that have commas/quotes in the family name 2018-11-08 16:08:25 +00:00
weirdfont.otf Handle fonts that have commas/quotes in the family name 2018-11-08 16:08:25 +00:00