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 <pierre.rossi@gmail.com>
bb10
Andy Shaw 2014-06-20 11:35:27 +02:00
parent c750d8408e
commit afd6313755
1 changed files with 4 additions and 1 deletions

View File

@ -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));