You are not logged in.

#1 2024-03-19 06:45:48

xtlc
Member
Registered: 2024-03-19
Posts: 12

[again] ugly fonts

started using archlinux and I so far everything is going well, except I am not able to manage to get nice fonts served (firefox).

What I already tried:
* installing tex-gyre-fonts from AUR
* fc-cache -fv

Output of: ls -1  /etc/fonts/conf.d/

:
10-hinting-slight.conf
10-scale-bitmap-fonts.conf
10-sub-pixel-rgb.conf
10-yes-antialias.conf
11-lcdfilter-default.conf
20-unhint-small-vera.conf
30-metric-aliases.conf
40-nonlatin.conf
45-generic.conf
45-latin.conf
48-spacing.conf
49-sansserif.conf
50-user.conf
51-local.conf
60-generic.conf
60-latin.conf
65-fonts-persian.conf
65-nonlatin.conf
69-unifont.conf
69-urw-bookman.conf
69-urw-c059.conf
69-urw-d050000l.conf
69-urw-fallback-backwards.conf
69-urw-fallback-generics.conf
69-urw-fallback-specifics.conf
69-urw-gothic.conf
69-urw-nimbus-mono-ps.conf
69-urw-nimbus-roman.conf
69-urw-nimbus-sans.conf
69-urw-p052.conf
69-urw-standard-symbols-ps.conf
69-urw-z003.conf
80-delicious.conf
90-synthetic.conf
README

I also tried from a german archlinux wiki suggestion to install some fonts: pacman -Rns xorg-fonts-75dpi xorg-fonts-100dpi

error: target not found: xorg-fonts-75dpi
error: target not found: xorg-fonts-100dpi

When clicking on a word in FireFox that has "ugly" fonts and inspect it, almost no matter where (Github, Gmail, this forum ...) I see that the only font used is Nimbus Roman.

I read and tried some of the other suggestions, but kind of felt lost in this wiki entry: font configuration. What would my first step be?
I am on Linux version 6.7.9-arch1-1 using gnome 45.5.

Last edited by xtlc (2024-03-19 07:29:02)

Offline

#2 2024-03-19 07:20:46

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,009

Re: [again] ugly fonts

Please use [code][/code] tags, not "quote" tags. Edit your post in this regard.
Remove the "again" unless you have and reference a previous thread.
Don't copy and paste out of pagers.

On topic: quantify the problem, provide a link to an example page and to a screenshot illustrating the status quo on your webpage (you can upload it to imgur or 0x0.st)
Please don't embd huge images.

Also post the output of

fc-match "Nimbus Roman"

The actual nimbus fonts are from the gsfonts package, likely as dependency of https://archlinux.org/packages/extra/x86_64/evince/ and I have a hard time that any webpage actually selects those.
It's a serif-font but not particularly "ugly" (which is why you need to quantify the problem)

Welcome to archlinux.

Offline

#3 2024-03-19 07:35:53

xtlc
Member
Registered: 2024-03-19
Posts: 12

Re: [again] ugly fonts

Thanks for your input. I edited the post.

here is a screenshot from github:
image.png
and from gmail:
image.png

and here the output of fc-match "Nimbus Roman":

NimbusRoman-Regular.otf: "Nimbus Roman" "Regular"

Offline

#4 2024-03-19 07:44:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,009

Re: [again] ugly fonts

Yes, you're getting Nimbus and "ugly" means "serif".
I guess that's fair since sans-serif is historically referred to as "grotesk" tongue

Did you configure it as your sans font in your browser?

fc-match -s sans
fc-match -s sans-serif

FF uses it's own (less tolerant) fontconfig parser, do you get the same in eg. Falkon (qt/webkit)?

fc-conflist

and does

fc-cache

indicate any ill-formed config lines?

Last edited by seth (2024-03-19 07:45:41)

Offline

#5 2024-03-19 08:00:23

xtlc
Member
Registered: 2024-03-19
Posts: 12

Re: [again] ugly fonts

fc-match -s sans:

NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
FreeSans.otf: "FreeSans" "Regular"
FreeSansBold.otf: "FreeSans" "Bold"
FreeMono.otf: "FreeMono" "Regular"
FreeSerif.otf: "FreeSerif" "Regular"
texgyreadventor-regular.otf: "TeX Gyre Adventor" "Regular"
SourceCodePro-Regular.otf: "Source Code Pro" "Regular"
texgyreschola-regular.otf: "TeX Gyre Schola" "Regular"
D050000L.otf: "D050000L" "Regular"
Cantarell-VF.otf: "Cantarell" "Regular"
texgyrechorus-mediumitalic.otf: "TeX Gyre Chorus" "Regular"
NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"

fc-match -s sans-serif

NimbusSans-Regular.otf: "Nimbus Sans" "Regular"
FreeSans.otf: "FreeSans" "Regular"
FreeSansBold.otf: "FreeSans" "Bold"
FreeMono.otf: "FreeMono" "Regular"
FreeSerif.otf: "FreeSerif" "Regular"
texgyreadventor-regular.otf: "TeX Gyre Adventor" "Regular"
SourceCodePro-Regular.otf: "Source Code Pro" "Regular"
texgyreschola-regular.otf: "TeX Gyre Schola" "Regular"
D050000L.otf: "D050000L" "Regular"
Cantarell-VF.otf: "Cantarell" "Regular"
texgyrechorus-mediumitalic.otf: "TeX Gyre Chorus" "Regular"
NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"

fc-conflist:

+ /etc/fonts/conf.d/10-hinting-slight.conf: Set hintslight to hintstyle
+ /etc/fonts/conf.d/10-scale-bitmap-fonts.conf: Bitmap scaling
+ /etc/fonts/conf.d/10-sub-pixel-rgb.conf: Enable sub-pixel rendering with the RGB stripes layout
+ /etc/fonts/conf.d/10-yes-antialias.conf: Enable antialiasing
+ /etc/fonts/conf.d/11-lcdfilter-default.conf: Use lcddefault as default for LCD filter
+ /etc/fonts/conf.d/20-unhint-small-vera.conf: Disable hinting for Bitstream Vera fonts when the size is less than 8ppem
+ /etc/fonts/conf.d/30-metric-aliases.conf: Set substitutions for similar/metric-compatible families
+ /etc/fonts/conf.d/40-nonlatin.conf: Set substitutions for non-Latin fonts
+ /etc/fonts/conf.d/45-generic.conf: Set substitutions for emoji/math fonts
+ /etc/fonts/conf.d/45-latin.conf: Set substitutions for Latin fonts
+ /etc/fonts/conf.d/48-spacing.conf: Add mono to the family when spacing is 100
+ /etc/fonts/conf.d/49-sansserif.conf: Add sans-serif to the family when no generic name
+ /etc/fonts/conf.d/50-user.conf: Load per-user customization files
+ /etc/fonts/conf.d/51-local.conf: Load local customization file
+ /etc/fonts/conf.d/60-generic.conf: Set preferable fonts for emoji/math fonts
+ /etc/fonts/conf.d/60-latin.conf: Set preferable fonts for Latin
+ /etc/fonts/conf.d/65-fonts-persian.conf: No description
+ /etc/fonts/conf.d/65-nonlatin.conf: Set preferable fonts for non-Latin
+ /etc/fonts/conf.d/69-unifont.conf: No description
+ /etc/fonts/conf.d/69-urw-bookman.conf: No description
+ /etc/fonts/conf.d/69-urw-c059.conf: No description
+ /etc/fonts/conf.d/69-urw-d050000l.conf: No description
+ /etc/fonts/conf.d/69-urw-fallback-backwards.conf: No description
+ /etc/fonts/conf.d/69-urw-fallback-generics.conf: No description
+ /etc/fonts/conf.d/69-urw-fallback-specifics.conf: No description
+ /etc/fonts/conf.d/69-urw-gothic.conf: No description
+ /etc/fonts/conf.d/69-urw-nimbus-mono-ps.conf: No description
+ /etc/fonts/conf.d/69-urw-nimbus-roman.conf: No description
+ /etc/fonts/conf.d/69-urw-nimbus-sans.conf: No description
+ /etc/fonts/conf.d/69-urw-p052.conf: No description
+ /etc/fonts/conf.d/69-urw-standard-symbols-ps.conf: No description
+ /etc/fonts/conf.d/69-urw-z003.conf: No description
+ /etc/fonts/conf.d/80-delicious.conf: No description
+ /etc/fonts/conf.d/90-synthetic.conf: No description
+ /etc/fonts/fonts.conf: Default configuration file
- /usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf: Re-define fonts dirs sample
- /usr/share/fontconfig/conf.avail/09-autohint-if-no-hinting.conf: Enable autohinter if font doesn't have any hinting
- /usr/share/fontconfig/conf.avail/10-autohint.conf: Enable autohinter
- /usr/share/fontconfig/conf.avail/10-hinting-full.conf: Set hintfull to hintstyle
- /usr/share/fontconfig/conf.avail/10-hinting-medium.conf: Set hintmedium to hintstyle
- /usr/share/fontconfig/conf.avail/10-hinting-none.conf: Set hintnone to hintstyle
- /usr/share/fontconfig/conf.avail/10-hinting-slight.conf: Set hintslight to hintstyle
- /usr/share/fontconfig/conf.avail/10-no-antialias.conf: Disable antialiasing
- /usr/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf: Bitmap scaling
- /usr/share/fontconfig/conf.avail/10-sub-pixel-bgr.conf: Enable sub-pixel rendering with the BGR stripes layout
- /usr/share/fontconfig/conf.avail/10-sub-pixel-none.conf: Disable sub-pixel rendering
- /usr/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf: Enable sub-pixel rendering with the RGB stripes layout
- /usr/share/fontconfig/conf.avail/10-sub-pixel-vbgr.conf: Enable sub-pixel rendering with the vertical BGR stripes layout
- /usr/share/fontconfig/conf.avail/10-sub-pixel-vrgb.conf: Enable sub-pixel rendering with the vertical RGB stripes layout
- /usr/share/fontconfig/conf.avail/10-unhinted.conf: Disable hinting
- /usr/share/fontconfig/conf.avail/10-yes-antialias.conf: Enable antialiasing
- /usr/share/fontconfig/conf.avail/11-lcdfilter-default.conf: Use lcddefault as default for LCD filter
- /usr/share/fontconfig/conf.avail/11-lcdfilter-legacy.conf: Use lcdlegacy as default for LCD filter
- /usr/share/fontconfig/conf.avail/11-lcdfilter-light.conf: Use lcdlight as default for LCD filter
- /usr/share/fontconfig/conf.avail/11-lcdfilter-none.conf: Use lcdnone as default for LCD filter
- /usr/share/fontconfig/conf.avail/20-unhint-small-vera.conf: Disable hinting for Bitstream Vera fonts when the size is less than 8ppem
- /usr/share/fontconfig/conf.avail/25-unhint-nonlatin.conf: Disable hinting for CJK fonts
- /usr/share/fontconfig/conf.avail/30-metric-aliases.conf: Set substitutions for similar/metric-compatible families
- /usr/share/fontconfig/conf.avail/35-lang-normalize.conf: No description
- /usr/share/fontconfig/conf.avail/40-nonlatin.conf: Set substitutions for non-Latin fonts
- /usr/share/fontconfig/conf.avail/45-generic.conf: Set substitutions for emoji/math fonts
- /usr/share/fontconfig/conf.avail/45-latin.conf: Set substitutions for Latin fonts
- /usr/share/fontconfig/conf.avail/48-spacing.conf: Add mono to the family when spacing is 100
- /usr/share/fontconfig/conf.avail/49-sansserif.conf: Add sans-serif to the family when no generic name
- /usr/share/fontconfig/conf.avail/50-user.conf: Load per-user customization files
- /usr/share/fontconfig/conf.avail/51-local.conf: Load local customization file
- /usr/share/fontconfig/conf.avail/60-generic.conf: Set preferable fonts for emoji/math fonts
- /usr/share/fontconfig/conf.avail/60-latin.conf: Set preferable fonts for Latin
- /usr/share/fontconfig/conf.avail/65-fonts-persian.conf: No description
- /usr/share/fontconfig/conf.avail/65-khmer.conf: No description
- /usr/share/fontconfig/conf.avail/65-nonlatin.conf: Set preferable fonts for non-Latin
- /usr/share/fontconfig/conf.avail/69-unifont.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-bookman.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-c059.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-d050000l.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-fallback-backwards.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-fallback-generics.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-fallback-specifics.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-gothic.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-nimbus-mono-ps.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-nimbus-roman.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-nimbus-sans.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-p052.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-standard-symbols-ps.conf: No description
- /usr/share/fontconfig/conf.avail/69-urw-z003.conf: No description
- /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf: Reject bitmap fonts
- /usr/share/fontconfig/conf.avail/70-yes-bitmaps.conf: Accept bitmap fonts
- /usr/share/fontconfig/conf.avail/80-delicious.conf: No description
- /usr/share/fontconfig/conf.avail/90-synthetic.conf: No description

fc-cache outputs nothing.

Offline

#6 2024-03-19 08:13:55

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,009

Re: [again] ugly fonts

So you've nimbus as your default sans-serif (and not many others available), but github renders in sans-serif.
That seems to be the browser config (ie. you've nimbus or serif configured as default sans-serif)

Try to install https://archlinux.org/packages/extra/any/ttf-dejavu/ and make sure it's resolved/preferred by "fc-match sans-serif" but ultimately look at your firefox settings.

Offline

#7 2024-03-19 08:22:35

xtlc
Member
Registered: 2024-03-19
Posts: 12

Re: [again] ugly fonts

seth wrote:

So you've nimbus as your default sans-serif (and not many others available), but github renders in sans-serif.
That seems to be the browser config (ie. you've nimbus or serif configured as default sans-serif)

Try to install https://archlinux.org/packages/extra/any/ttf-dejavu/ and make sure it's resolved/preferred by "fc-match sans-serif" but ultimately look at your firefox settings.

That did the trick! thanks a lot!

Offline

#8 2024-03-19 08:38:10

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,009

Re: [again] ugly fonts

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB