Arch Linux stuff closed this issue as “not a bug” and redirected me to Sublime HQ support instead. Kinda fair, because it is probably not a distro’s problem. But I still don’t know much about font-config to judge.
https://bugs.archlinux.org/task/73069
Copying the rest of the port from the link above (just in case):
Description:
Merely installing gsfonts package messes up with Sublime Text/Merge so bad, it almost becomes an eye-bleeding experience.
I don’t know much about fontconfig, but I know that on my system without gsfonts:
- KDE’s Fonts KCM (system settings) are set to “Noto Sans”, and
- fc-match prints:
$ fc-match system
NotoSans-Regular.ttf: "Noto Sans" "Regular"
But after installing gsfonts:
$ fc-match system
NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
Nimbus and Noto Sans screenshots of Sublime Merge:
- Nimbus:
- Noto Sans:
The worst thing is, a user don’t even need to know about this font or this package. I just installed Rizin/Cutter, suspecting absolutely nothing; and after reboot I was surprised by such sudden inconvenience. Since I’m living on the edge of KDE, I wasn’t even suspecting Cutter/gsfonts for a week, hoping that it will sort itself out – just like many temporary bugs on master branch.
I believe it is unacceptable that simply instally a pack of fonts may mess up with user’s system in such way. Again, I’m not an expert in font packaging, but the current approach clearly creates very strange and hard-to-debug problems for users.
Additional info:
- package version(s):
- gsfonts: 20200910-2
- config and/or log files etc.:
- No user config on my system. The problem is reproducible in a clean environment, with a freshly created user account.
- link to upstream bug report, if any: None
Steps to reproduce:
- Run
$ fc-match system
to ensure that default fonts are still the ones you like. - Install gsfonts or anything that eventualy hard-depends on it, e.g. rz-cutter in my case.
- Run
$ fc-match system
again to ensure you defaults are already messed up. - Restart Sublime Merge to see the horrible font taking over: all labels are 1-2px higher than they should be, which often makes them look mis-aligned w.r.t. to their icons or background highlight rectangle.