qt5base-lts/tests/auto/gui/text
Tor Arne Vestbø 7f0faddf9f CoreText: Modernize style hint fallback lookup
The DefaultFontFallbacks.plist system file that we used for looking up
style fallbacks does not exists in macOS 10.15, nor did it ever exists
on iOS. Instead of relying on this file, we hard-code a set of default
families, that we then look up the fallbacks for.

The result of QFont::defaultFamily() on macOS is now:

  QFont::Helvetica --> "Helvetica"
  QFont::Times --> "Times New Roman"
  QFont::Courier --> "American Typewriter"
  QFont::OldEnglish --> ""
  QFont::System --> "Lucida Grande"
  QFont::AnyStyle --> "Lucida Grande"
  QFont::Cursive --> "Apple Chancery"
  QFont::Monospace --> "Menlo"
  QFont::Fantasy --> "Zapfino"

And on iOS:

  QFont::Helvetica --> "Helvetica"
  QFont::Times --> "Times New Roman"
  QFont::Courier --> "American Typewriter"
  QFont::OldEnglish --> ""
  QFont::System --> "Helvetica"
  QFont::AnyStyle --> "Helvetica"
  QFont::Cursive --> ""
  QFont::Monospace --> "Menlo"
  QFont::Fantasy --> "Zapfino"

Fixes: QTBUG-78240
Change-Id: Ie9bc13c9c1031d89f024199e4736a046c568a48d
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-09-16 11:26:07 +02:00
..
qabstracttextdocumentlayout Make imageAt and formatAt more robus against different font metrics 2016-08-12 03:59:23 +00:00
qcssparser Support missing white-space:pre-line CSS 2019-08-12 17:24:05 +01:00
qfont CoreText: Modernize style hint fallback lookup 2019-09-16 11:26:07 +02:00
qfontcache Port from QAtomic::load() to loadRelaxed() 2019-06-20 20:48:59 +02:00
qfontdatabase Merge remote-tracking branch 'origin/5.13' into dev 2019-05-27 15:34:10 +02:00
qfontmetrics Fix text shifting vertically when elided 2018-12-21 10:27:12 +00:00
qglyphrun unblacklist passing tests 2019-07-08 11:01:42 +00:00
qinputcontrol Accept all formatting characters as valid input 2017-01-26 10:59:49 +00:00
qrawfont [Windows] Fixed regression when creating fallback fonts 2019-02-14 08:01:05 +00:00
qstatictext Prefix QTextStream operators with Qt:: in tests 2019-05-03 09:36:36 +00:00
qsyntaxhighlighter tst_qsyntaxhighlighter: fix no-op QTRY_VERIFY check 2019-01-16 14:23:42 +00:00
qtextblock Updated license headers 2016-01-21 18:55:18 +00:00
qtextcursor Fix crash when detaching dangling QTextCursor 2018-09-27 06:51:37 +00:00
qtextdocument QTextDocument: add css-styling of table cell borders to HTML import/export 2019-08-19 20:59:12 +02:00
qtextdocumentfragment QTextDocument: add css-styling of table cell borders to HTML import/export 2019-08-19 20:59:12 +02:00
qtextdocumentlayout unblacklist passing tests 2019-07-08 11:01:42 +00:00
qtextformat Update font when text format's letter spacing type is changed 2017-12-22 05:37:55 +00:00
qtextlayout Merge remote-tracking branch 'origin/5.13' into 5.14 2019-09-09 07:51:49 +00:00
qtextlist Tests: Fix some warnings about deprecated functions not under test 2019-05-27 15:29:16 +02:00
qtextmarkdownimporter Markdown: blockquotes, code blocks, and generalized nesting 2019-05-08 20:28:53 +00:00
qtextmarkdownwriter unblacklist passing tests 2019-07-08 11:01:42 +00:00
qtextobject Updated license headers 2016-01-21 18:55:18 +00:00
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 QTextDocument: add css-styling of table cell borders to HTML import/export 2019-08-19 20:59:12 +02:00
qzip update testdata 2016-08-31 10:00:29 +00:00
text.pro Markdown: fix several issues with lists and continuations 2019-05-08 20:28:28 +00:00