From f75da7104256be482e16aa5b13e2a2d9611d262d Mon Sep 17 00:00:00 2001 From: julian1 Date: Mon, 2 Jun 2025 19:27:57 +1000 Subject: [PATCH] fix #10514 Update src/Gui/PreferencePages/DlgSettingsEditor.cpp Co-authored-by: Chris Hennes Update src/Gui/PreferencePages/DlgSettingsEditor.cpp Co-authored-by: Chris Hennes --- src/Gui/PreferencePages/DlgSettingsEditor.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Gui/PreferencePages/DlgSettingsEditor.cpp b/src/Gui/PreferencePages/DlgSettingsEditor.cpp index 8e189c88a8..e5330a0ff7 100644 --- a/src/Gui/PreferencePages/DlgSettingsEditor.cpp +++ b/src/Gui/PreferencePages/DlgSettingsEditor.cpp @@ -273,7 +273,11 @@ void DlgSettingsEditor::loadSettings() QStringList fixedFamilyNames; for (const auto& name : familyNames) { if (QFontDatabase().isFixedPitch(name)) { - if (name.compare(QLatin1String("8514oem"), Qt::CaseInsensitive) != 0) { + // cursor.pcf was removed to cope with a problem with the Qt Font Manager + // See https://github.com/FreeCAD/FreeCAD/issues/10514 for details + if (name.compare(QLatin1String("8514oem"), Qt::CaseInsensitive) != 0 + && name.compare(QLatin1String("cursor.pcf"), Qt::CaseInsensitive) != 0) + { fixedFamilyNames.append(name); } } @@ -283,7 +287,11 @@ void DlgSettingsEditor::loadSettings() QStringList fixedFamilyNames; for (const auto& name : familyNames) { if (QFontDatabase::isFixedPitch(name)) { - if (name.compare(QLatin1String("8514oem"), Qt::CaseInsensitive) != 0) { + // cursor.pcf was removed to cope with a problem with the Qt Font Manager + // See https://github.com/FreeCAD/FreeCAD/issues/10514 for details + if (name.compare(QLatin1String("8514oem"), Qt::CaseInsensitive) != 0 + && name.compare(QLatin1String("cursor.pcf"), Qt::CaseInsensitive) != 0) + { fixedFamilyNames.append(name); } }