-
-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zettlr should follow the system interface font #5125
Comments
Thanks so much for opening up your first issue here on the repository! 🎉
EnhancementsAn enhancement takes a feature and improves or alters its behaviour. Please Feature requestsFeature requests introduce whole new features into the app. This requires a You can of course always ask someone to implement this feature, because a PR Bug reportsPlease note that one of the main reasons for why bug reports cannot be The ideal bug report for us has two qualities:
Please note that if you encounter behaviour that does not align with your But now, have a great day and thank you again! |
You decided against Zettlr/source/common/less/fonts.less Line 22 in 452c7be
The advice in the blogpost is obsolete. The problem with pixelated system fonts was only ever a problem on Windows. And not current versions of Windows, but XP, and Vista and 7 in "Classic Mode". I don't know if current versions of Zettlr even run on Windows 7 and XP. Whoever is running these outdated versions of Windows has bigger issues then pixelated fonts. From https://infinnie.github.io/blog/2017/systemui.html:
This is exactly the expected and wanted behaviour! We want Zettlr to display the UI in the system font! Even if it doesn't have a "semibold", because the rest of the UI also doesn't have. |
Huh, interesting -- that's how old that line is. Definitely worth reconsidering, yes. |
Just tried |
Description
Before I clutter this report: #4856 (comment)
Zettlr aims to follow the system UI as close as possible, so the app looks native on Mac, Windows, or Linux. The solution is easy on Mac and Windows, as users can't change the system font any more. The current font stack in Zettlr looks like this:
Zettlr/source/common/vue/window/assets/generic.less
Line 16 in 53a18fe
And like this:
Zettlr/source/common/vue/window/WindowChrome.vue
Line 264 in 53a18fe
This approach falls apart on the Linux platform. I have Segoe UI installed, so the above font stack gives me "Segoe UI" in some parts of the interface, like Menus or parts of the settings window. "Liberation Sans" (a metric compatible replacement for Helvetica and Arial) in other parts of the interface, like sidenotes, or parts of the settings window. Even, after uninstalling "Segoe UI", I get my interface in a mix of "Roboto" and "Liberation Sans" instead of "Noto Sans", the default interface font on KDE.
I propose to switch to the CSS property
font-family: system-ui
, if the text is meant to represent a user interface andfont-family: sans-serif
if the text is meant to represent a body of text.font-family: system-ui
is implemented in chromium since a few years, and because of that, also in Electron:https://chromestatus.com/feature/5640395337760768
It should give the user "SF Pro Text" (UI) and "Helvetica" (body text) on Mac, "Segoe UI" (UI) and "Arial" (body text) on Windows and whatever the distributor or user has set on Linux. Usually "Ubuntu", "Noto Sans" and "Cantarell" for the UI and "Liberation Sans" or "Nimbus Sans" for body text. "Oxygen", as specified in the current font stack, for example hasn't been used by KDE since over 10 years.
If users see some pixelated, blurry or otherwise unreadable font, it's their own fault for setting something strange. It's not in the scope of Zettlr to fix the user's settings.
Reproducing
Zettlr Version
Stable (most recent version)
Specify version
3.0.5
Installation Method
From the Website or GitHub
Your Platform
Architecture
Operating System Version
Operating System: openSUSE Tumbleweed 20240427 KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.1.0 Qt Version: 6.7.0 Kernel Version: 6.8.6-1-default (64-bit) Graphics Platform: X11 Processors: 8 × AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx Memory: 13.5 GiB of RAM Graphics Processor: AMD Radeon Vega 8
Additional Information
No response
The text was updated successfully, but these errors were encountered: