From afd6313755399b24fb97e56f730f9898a0fa8f5a Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Fri, 20 Jun 2014 11:35:27 +0200 Subject: [PATCH] Set fallback for QFont::System to be MS Sans Serif and not Arial The system font for Windows should be MS Sans Serif which is what Qt 4 was using and not Arial. Change-Id: If3ed55bce87f6376b2897f1fc487bbc0627d1799 Reviewed-by: Pierre Rossi --- src/plugins/platforms/windows/qwindowsfontdatabase.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/platforms/windows/qwindowsfontdatabase.cpp b/src/plugins/platforms/windows/qwindowsfontdatabase.cpp index e4d60d6ec8..7058406b4a 100644 --- a/src/plugins/platforms/windows/qwindowsfontdatabase.cpp +++ b/src/plugins/platforms/windows/qwindowsfontdatabase.cpp @@ -1639,9 +1639,12 @@ QStringList QWindowsFontDatabase::fallbacksForFamily(const QString &family, QFon result << QString::fromLatin1("Old English"); break; case QFont::Helvetica: + result << QString::fromLatin1("Arial"); + break; case QFont::System: default: - result << QString::fromLatin1("Arial"); + result << QString::fromLatin1("MS Sans Serif"); + break; } result.append(QWindowsFontDatabase::extraTryFontsForFamily(family));