Better fallback font sets

.. more likely to find Clear Sans and PT Sans on Linux
   and Mac respectively. Should avoid the dreaded Arial.
This commit is contained in:
Mark Liversedge
2023-05-28 17:17:42 +01:00
parent 93f8599070
commit 228e2f24f9

View File

@@ -716,29 +716,31 @@ GSettings::upgradeAthlete(QString athlete) {
static QString fontfamilyfallback[] = {
#ifdef Q_OS_LINUX
// try pretty fonts first (you never know)
"Noto Sans Display",
"DejaVu Sans",
"Liberation Sans",
"Noto Sans Display", // google free font
"Clear Sans", // intel free font
"DejaVu Sans", // gnome free font
"Liberation Sans", // red hat free font
// then distro specific ones
"Ubuntu",
"Red Hat Display",
"Trebuchet MS",
#endif
#ifdef Q_OS_WIN
"Segoe UI",
"Calibri",
"Microsoft Sans Serif",
"Trebuchet MS",
#endif
#ifdef Q_OS_MAC
"SF Pro Display",
"PT Sans",
"Helvetica Neue",
"Helvetica",
"Trebuchet MS",
#endif
// common fonts
"Trebuchet MS",
"Helvetica",
// on all OS these two should exist at a minimum
"Verdana",
"Arial",