Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fontconfig doesn't see fonts in /usr/share/fonts.
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
FlaminWalrus
n00b
n00b


Joined: 18 Aug 2021
Posts: 2

PostPosted: Mon Sep 06, 2021 4:37 pm    Post subject: Fontconfig doesn't see fonts in /usr/share/fonts. Reply with quote

I've just emerged media-fonts/fontawesome to get some cool glyphs for my slstatus bar. However, the glyph I'm trying to use still isn't rendered in the browser (after restart), and running eselect fontconfig list outputs

Code:


% eselect fontconfig list
Available fontconfig .conf files (* is enabled):
  [1]   10-autohint.conf
  [2]   10-hinting-full.conf
  [3]   10-hinting-medium.conf
  [4]   10-hinting-none.conf
  [5]   10-hinting-slight.conf *
  [6]   10-no-sub-pixel.conf
  [7]   10-scale-bitmap-fonts.conf *
  [8]   10-sub-pixel-bgr.conf
  [9]   10-sub-pixel-rgb.conf
  [10]  10-sub-pixel-vbgr.conf
  [11]  10-sub-pixel-vrgb.conf
  [12]  10-unhinted.conf
  [13]  11-lcdfilter-default.conf
  [14]  11-lcdfilter-legacy.conf
  [15]  11-lcdfilter-light.conf
  [16]  20-unhint-small-vera.conf *
  [17]  25-unhint-nonlatin.conf
  [18]  30-metric-aliases.conf *
  [19]  40-nonlatin.conf *
  [20]  45-generic.conf *
  [21]  45-latin.conf *
  [22]  49-sansserif.conf *
  [23]  50-user.conf *
  [24]  51-local.conf *
  [25]  60-generic.conf *
  [26]  60-latin.conf *
  [27]  60-liberation.conf *
  [28]  65-fonts-persian.conf *
  [29]  65-khmer.conf
  [30]  65-nonlatin.conf *
  [31]  66-noto-mono.conf *
  [32]  66-noto-sans.conf *
  [33]  66-noto-serif.conf *
  [34]  69-unifont.conf *
  [35]  70-no-bitmaps.conf
  [36]  70-yes-bitmaps.conf
  [37]  80-delicious.conf *
  [38]  90-synthetic.conf *


I've checked that it's installed:

Code:

% fc-list | grep awesome
/usr/share/fonts/fontawesome/fa-solid-900.ttf: Font Awesome 5 Free,Font Awesome 5 Free Solid:style=Solid
/usr/share/fonts/fontawesome/Font Awesome 5 Free-Solid-900.otf: Font Awesome 5 Free,Font Awesome 5 Free Solid:style=Solid
/usr/share/fonts/fontawesome/fa-regular-400.ttf: Font Awesome 5 Free,Font Awesome 5 Free Regular:style=Regular
/usr/share/fonts/fontawesome/fa-brands-400.ttf: Font Awesome 5 Brands,Font Awesome 5 Brands Regular:style=Regular
/home/dnw/.local/share/fonts/fontawesome.ttf: FontAwesome:style=Regular
/usr/share/fonts/fontawesome/Font Awesome 5 Brands-Regular-400.otf: Font Awesome 5 Brands,Font Awesome 5 Brands Regular:style=Regular
/usr/share/fonts/fontawesome/Font Awesome 5 Free-Regular-400.otf: Font Awesome 5 Free,Font Awesome 5 Free Regular:style=Regular


There are two possibilities: either it's in the "fontconfig list" and just is opaquely a part of one of the other families, or I need to do something manual with etc/fontconfig/local.conf or whatever.
The arch wiki leads me to think it'd be the former ("The font paths initially known to Fontconfig are: /usr/share/fonts/..."); does the Gentoo eselect port of fontconfig change that?
If not, which family do I need to enable? Can't for the life of me see how any of them would be it.

Is it something else?

Thanks for your time, this has been driving me mad all morning.

Edit: also, glyphs that were showing previously in the browser (presumably with noto) now aren't. It is still rendering in Emacs (using noto mono as a fallback), but the ones that weren't rendering before still don't if I paste em to Emacs.
Edit2: apparently asking a question in the forums makes one instantly find the answer. Copying the characters not rendered in the browser does work, but it took a while for the glyph to render (presumably something getting pulled in). Still would be interesting to know why it doesn't show in eselect fontconfig list though.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Mon Sep 06, 2021 4:59 pm    Post subject: Reply with quote

Look at the output of "qlist media-fonts/fontawesome". It shows the files installed by the package:
Code:
# qlist media-fonts/fontawesome
/usr/share/fonts/fontawesome/Font Awesome 5 Brands-Regular-400.otf
/usr/share/fonts/fontawesome/Font Awesome 5 Free-Regular-400.otf
/usr/share/fonts/fontawesome/Font Awesome 5 Free-Solid-900.otf
/usr/share/fonts/fontawesome/fonts.scale
/usr/share/fonts/fontawesome/fonts.dir
/usr/share/fonts/fontawesome/encodings.dir
/usr/share/doc/fontawesome-5.15.1/README.md.bz2

The package doesn't install files in "/etc/fonts/conf.avail/". Therefore, you cannot see fontawesome in the output of "eselect fontconfig list".

And that's perfectly fine. Most fonts don't install files in "/etc/fonts/conf.avail/". Only a few do.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum