Merge pull request #10555 from Syres916/Font_8514oem_exclude

[Preferences] Exclude 8514oem from Monospace fonts
This commit is contained in:
Yorik van Havre
2023-09-25 10:57:26 +02:00
committed by GitHub

View File

@@ -301,7 +301,9 @@ void DlgSettingsEditor::loadSettings()
QStringList fixedFamilyNames;
for (const auto &name : familyNames) {
if (QFontDatabase().isFixedPitch(name)) {
fixedFamilyNames.append(name);
if (name.compare(QLatin1String("8514oem"), Qt::CaseInsensitive) != 0) {
fixedFamilyNames.append(name);
}
}
}
#else
@@ -309,7 +311,9 @@ void DlgSettingsEditor::loadSettings()
QStringList fixedFamilyNames;
for (const auto &name : familyNames) {
if (QFontDatabase::isFixedPitch(name)) {
fixedFamilyNames.append(name);
if (name.compare(QLatin1String("8514oem"), Qt::CaseInsensitive) != 0) {
fixedFamilyNames.append(name);
}
}
}
#endif