Skip to content
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

Default fonts are being overridden upon installation #29

Open
Munzu opened this issue Aug 26, 2020 · 4 comments
Open

Default fonts are being overridden upon installation #29

Munzu opened this issue Aug 26, 2020 · 4 comments

Comments

@Munzu
Copy link

Munzu commented Aug 26, 2020

My system: Arch Linux 5.8.3-arch-1-1
Package manager: yay (pacman)

I think through a chain of dependencies, this was installed on my system.
(I installed font-manager, which installed vala, which installed graphviz, which installed gsfonts, which lists this repo as the upstream URL)

When I installed font-manager, my default system fonts (such as the monospace font used in my terminal and dmenu) were overridden from Noto to Nimbus. I checked that using

  • fc-match monospace
  • fc-match sans-serif
  • fc-match serif

which all returned a Nimbus variant.

I found out that gsfonts was the package that installed Nimbus on my system.
(After I uninstalled gsfonts, my fonts thankfully went back to normal; checking with fc-match returns Noto variants again.)

Is this expected behavior? If it is, I find it quite intrusive. It took me a while to track down the problem on my system.

Could this be related to #13 ?

@fabiangreffrath
Copy link
Contributor

This may well be related to #13, but as the bug log shows, it is not the fonts themselves that hijack the preferred places for the "monospace" etc. aliases. It is a fontconfig issue, and the way fontconfig is configured is all up to your distribution.

If you are on Arch, could you please post the output of the pacman -Fl gsfonts command?

While packaging the fonts for Debian, I found that sorting the fontconfig rules with a priority higher than 61, i.e. with a smaller numerical prefix, lead to similar issues that you describe. Also, I found the urw-urw-fallback-specifics.conf rule to be offensive and removed it from the package.

@fabiangreffrath
Copy link
Contributor

@Munzu
Copy link
Author

Munzu commented Aug 27, 2020

Thanks for the quick reply.

I reinstalled the dependency chain which installs gsfonts.
pacman -Fl gsfonts (or yay -Fl gsfonts for that matter) then returns the following for me:

gsfonts etc/
gsfonts etc/fonts/
gsfonts etc/fonts/conf.avail/
gsfonts etc/fonts/conf.avail/69-urw-bookman.conf
gsfonts etc/fonts/conf.avail/69-urw-c059.conf
gsfonts etc/fonts/conf.avail/69-urw-d050000l.conf
gsfonts etc/fonts/conf.avail/69-urw-fallback-backwards.conf
gsfonts etc/fonts/conf.avail/69-urw-fallback-generics.conf
gsfonts etc/fonts/conf.avail/69-urw-fallback-specifics.conf
gsfonts etc/fonts/conf.avail/69-urw-gothic.conf
gsfonts etc/fonts/conf.avail/69-urw-nimbus-mono-ps.conf
gsfonts etc/fonts/conf.avail/69-urw-nimbus-roman.conf
gsfonts etc/fonts/conf.avail/69-urw-nimbus-sans.conf
gsfonts etc/fonts/conf.avail/69-urw-p052.conf
gsfonts etc/fonts/conf.avail/69-urw-standard-symbols-ps.conf
gsfonts etc/fonts/conf.avail/69-urw-z003.conf
gsfonts etc/fonts/conf.d/
gsfonts etc/fonts/conf.d/69-urw-bookman.conf
gsfonts etc/fonts/conf.d/69-urw-c059.conf
gsfonts etc/fonts/conf.d/69-urw-d050000l.conf
gsfonts etc/fonts/conf.d/69-urw-fallback-backwards.conf
gsfonts etc/fonts/conf.d/69-urw-fallback-generics.conf
gsfonts etc/fonts/conf.d/69-urw-fallback-specifics.conf
gsfonts etc/fonts/conf.d/69-urw-gothic.conf
gsfonts etc/fonts/conf.d/69-urw-nimbus-mono-ps.conf
gsfonts etc/fonts/conf.d/69-urw-nimbus-roman.conf
gsfonts etc/fonts/conf.d/69-urw-nimbus-sans.conf
gsfonts etc/fonts/conf.d/69-urw-p052.conf
gsfonts etc/fonts/conf.d/69-urw-standard-symbols-ps.conf
gsfonts etc/fonts/conf.d/69-urw-z003.conf
gsfonts usr/
gsfonts usr/share/
gsfonts usr/share/fonts/
gsfonts usr/share/fonts/gsfonts/
gsfonts usr/share/fonts/gsfonts/C059-BdIta.otf
gsfonts usr/share/fonts/gsfonts/C059-Bold.otf
gsfonts usr/share/fonts/gsfonts/C059-Italic.otf
gsfonts usr/share/fonts/gsfonts/C059-Roman.otf
gsfonts usr/share/fonts/gsfonts/D050000L.otf
gsfonts usr/share/fonts/gsfonts/NimbusMonoPS-Bold.otf
gsfonts usr/share/fonts/gsfonts/NimbusMonoPS-BoldItalic.otf
gsfonts usr/share/fonts/gsfonts/NimbusMonoPS-Italic.otf
gsfonts usr/share/fonts/gsfonts/NimbusMonoPS-Regular.otf
gsfonts usr/share/fonts/gsfonts/NimbusRoman-Bold.otf
gsfonts usr/share/fonts/gsfonts/NimbusRoman-BoldItalic.otf
gsfonts usr/share/fonts/gsfonts/NimbusRoman-Italic.otf
gsfonts usr/share/fonts/gsfonts/NimbusRoman-Regular.otf
gsfonts usr/share/fonts/gsfonts/NimbusSans-Bold.otf
gsfonts usr/share/fonts/gsfonts/NimbusSans-BoldItalic.otf
gsfonts usr/share/fonts/gsfonts/NimbusSans-Italic.otf
gsfonts usr/share/fonts/gsfonts/NimbusSans-Regular.otf
gsfonts usr/share/fonts/gsfonts/NimbusSansNarrow-Bold.otf
gsfonts usr/share/fonts/gsfonts/NimbusSansNarrow-BoldOblique.otf
gsfonts usr/share/fonts/gsfonts/NimbusSansNarrow-Oblique.otf
gsfonts usr/share/fonts/gsfonts/NimbusSansNarrow-Regular.otf
gsfonts usr/share/fonts/gsfonts/P052-Bold.otf
gsfonts usr/share/fonts/gsfonts/P052-BoldItalic.otf
gsfonts usr/share/fonts/gsfonts/P052-Italic.otf
gsfonts usr/share/fonts/gsfonts/P052-Roman.otf
gsfonts usr/share/fonts/gsfonts/StandardSymbolsPS.otf
gsfonts usr/share/fonts/gsfonts/URWBookman-Demi.otf
gsfonts usr/share/fonts/gsfonts/URWBookman-DemiItalic.otf
gsfonts usr/share/fonts/gsfonts/URWBookman-Light.otf
gsfonts usr/share/fonts/gsfonts/URWBookman-LightItalic.otf
gsfonts usr/share/fonts/gsfonts/URWGothic-Book.otf
gsfonts usr/share/fonts/gsfonts/URWGothic-BookOblique.otf
gsfonts usr/share/fonts/gsfonts/URWGothic-Demi.otf
gsfonts usr/share/fonts/gsfonts/URWGothic-DemiOblique.otf
gsfonts usr/share/fonts/gsfonts/Z003-MediumItalic.otf
gsfonts usr/share/metainfo/
gsfonts usr/share/metainfo/de.urwpp.C059.metainfo.xml
gsfonts usr/share/metainfo/de.urwpp.D050000L.metainfo.xml
gsfonts usr/share/metainfo/de.urwpp.NimbusMonoPS.metainfo.xml
gsfonts usr/share/metainfo/de.urwpp.NimbusRoman.metainfo.xml
gsfonts usr/share/metainfo/de.urwpp.NimbusSans.metainfo.xml
gsfonts usr/share/metainfo/de.urwpp.P052.metainfo.xml
gsfonts usr/share/metainfo/de.urwpp.StandardSymbolsPS.metainfo.xml
gsfonts usr/share/metainfo/de.urwpp.URWBookman.metainfo.xml
gsfonts usr/share/metainfo/de.urwpp.URWCoreFontSetLevel2.metainfo.xml
gsfonts usr/share/metainfo/de.urwpp.URWGothic.metainfo.xml
gsfonts usr/share/metainfo/de.urwpp.Z003.metainfo.xml

@fabiangreffrath
Copy link
Contributor

Hm, doesn't look too wrong to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants