FreeCAD/FreeCAD
Auf GitHub ansehenVery ugly UI font under Chinese Windows and how to fix
Open
#20.471 geöffnet am 26. März 2025
Good first issueMod: CoreTopic: User InterfaceTranslationType: Feature
Repository-Metriken
- Stars
- (30.913 Stars)
- PR-Merge-Metriken
- (Durchschn. Merge 24T 7h) (217 gemergte PRs in 30 T)
Beschreibung
Is there an existing issue for this?
- I have searched the existing issues
Problem description
The default font after installation is ugly, because it's defaulted to use Chinese font for English rendering, which is ugly.
Screenshot
After searching on internet, I found the solution to be create a InitGui.py file in %APPDATA%\FreeCAD\Mod\UI-font folder. Need to create Mod\UI-font subfolder.
from PySide import QtGui
myFont = QtGui.QFont("Segoe UI",10)
QtGui.QApplication.setFont(myFont)`
After the patch, the UI is now normal.
TODO: Add an option to choose the UI font.
Full version info
OS: Windows 11 build 26100
Architecture: x86_64
Version: 1.0.0.39109 (Git) Conda
Build type: Release
Branch: (HEAD detached at 1.0.0)
Hash: 2fcc5317fe3aee96ca73475986a577719fc78e20
Python 3.11.10, Qt 5.15.15, Coin 4.0.3, Vtk 9.3.0, OCC 7.8.1
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: FreeCAD Dark.qss/FreeCAD Dark/Fusion
Installed mods:
* UI-font
Subproject(s) affected?
Core
Anything else?
Original solution reference: https://forum.freecad.org/viewtopic.php?t=73058
Code of Conduct
- I agree to follow this project's Code of Conduct