mirror of https://github.com/procxx/kepka.git
Insert Segoe UI and San Francisco font substitutions.
Fixes #1791, fixes #3354, fixes #4454.
This commit is contained in:
parent
6f1529d730
commit
906122a334
|
@ -91,7 +91,16 @@ void Start() {
|
||||||
LOG(("Fonts Info: Using Segoe UI Semibold instead of Open Sans Semibold."));
|
LOG(("Fonts Info: Using Segoe UI Semibold instead of Open Sans Semibold."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // Q_OS_WIN
|
QFont::insertSubstitution(qsl("Open Sans"), qsl("Segoe UI"));
|
||||||
|
QFont::insertSubstitution(qsl("Open Sans Semibold"), qsl("Segoe UI Semibold"));
|
||||||
|
#elif defined Q_OS_MAC // Q_OS_WIN
|
||||||
|
auto list = QStringList();
|
||||||
|
list.append(qsl(".SF NS Text"));
|
||||||
|
list.append(qsl("Helvetica Neue"));
|
||||||
|
list.append(qsl("Lucida Grande"));
|
||||||
|
QFont::insertSubstitutions(qsl("Open Sans"), list);
|
||||||
|
QFont::insertSubstitutions(qsl("Open Sans Semibold"), list);
|
||||||
|
#endif // Q_OS_WIN || Q_OS_MAC
|
||||||
}
|
}
|
||||||
|
|
||||||
QString GetOverride(const QString &familyName) {
|
QString GetOverride(const QString &familyName) {
|
||||||
|
|
Loading…
Reference in New Issue