Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Installing mononoki font
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
madjestic
n00b
n00b


Joined: 10 Oct 2013
Posts: 52

PostPosted: Wed Sep 28, 2022 8:59 pm    Post subject: [SOLVED] Installing mononoki font Reply with quote

Hey guys,

I am trying to install mononoki font, I installed media-fonts/nerd-fonts +mononoki, I see it in /usr/share/fonts, but eselect fontconfig list does not show it.

What am I missing?

Code:

/usr/share/fonts:
  total used in directory 272 available 312.4 GiB
  drwxr-xr-x  18 root root  4096 Sep 27 23:20 .
  drwxr-xr-x 164 root root  4096 Sep 26 22:34 ..
  drwxr-xr-x   2 root root 90112 Sep 16 13:39 100dpi
  drwxr-xr-x   2 root root 90112 Sep 16 13:40 75dpi
  drwxr-xr-x   2 root root  4096 Sep 26 22:33 corefonts
  drwxr-xr-x   2 root root  4096 Sep 16 13:42 cyrillic
  drwxr-xr-x   2 root root  4096 Sep 19 12:23 dejavu
  drwxr-xr-x   3 root root  4096 Sep 11 19:46 encodings
  drwxr-xr-x   2 root root  4096 Sep 11 19:34 liberation-fonts
  drwxr-xr-x   2 root root 24576 Sep 16 13:42 misc
  drwxr-xr-x   2 root root  4096 Sep 27 23:20 nerd-fonts
  drwxr-xr-x   2 root root  4096 Sep 23 00:47 OpenImageIO
  drwxr-xr-x   2 root root  4096 Sep 16 13:41 OTF
  drwxr-xr-x   2 root root  4096 Sep 16 13:40 Speedo
  drwxr-xr-x   2 root root  4096 Sep 16 13:39 TTF
  drwxr-xr-x   2 root root  4096 Sep 16 13:42 Type1
  drwxr-xr-x   2 root root  4096 Sep 11 19:34 urw-fonts
  drwxr-xr-x   2 root root  4096 Sep 11 19:34 util



Code:

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


Code:

 $ eix nerd-fonts
[I] media-fonts/nerd-fonts [1]
     Available versions:  2.2.2 {3270 X agave anonymouspro arimo aurulentsansmono bigblueterminal bitstreamverasansmono cascadiacode codenewroman cousine daddytimemono dejavusansmono droidsansmono fantasquesansmono firacode firamono go-mono gohu hack hasklig heavydata hermit ia-writer ibmplexmono inconsolata inconsolatago inconsolatalgc iosevka jetbrainsmono lekton liberationmono lilex meslo monofur monoid mononoki mplus noto opendyslexic overpass profont proggyclean robotomono sharetechmono sourcecodepro spacemono symbols symbolsmono terminus tinos ubuntu ubuntumono victormono}
     Installed versions:  2.2.2(11:20:11 PM 09/27/2022)(X mononoki -3270 -agave -anonymouspro -arimo -aurulentsansmono -bigblueterminal -bitstreamverasansmono -cascadiacode -codenewroman -cousine -daddytimemono -dejavusansmono -droidsansmono -fantasquesansmono -firacode -firamono -go-mono -gohu -hack -hasklig -heavydata -hermit -ia-writer -ibmplexmono -inconsolata -inconsolatago -inconsolatalgc -iosevka -jetbrainsmono -lekton -liberationmono -lilex -meslo -monofur -monoid -mplus -noto -opendyslexic -overpass -profont -proggyclean -robotomono -sharetechmono -sourcecodepro -spacemono -symbols -symbolsmono -terminus -tinos -ubuntu -ubuntumono -victormono)
     Homepage:            https://github.com/ryanoasis/nerd-fonts
     Description:         Nerd Fonts is a project that patches developer targeted fonts with glyph


Code:

$ grep /fonts ~/.local/share/xorg/Xorg.0.log
   /usr/share/fonts/misc,
   /usr/share/fonts/TTF,
   /usr/share/fonts/OTF,
   /usr/share/fonts/Type1,
   /usr/share/fonts/100dpi,
   /usr/share/fonts/75dpi


Code:

 $ fc-cache -fv
Font directories:
   /home/madjestic/.local/share/fonts
   /usr/local/share/fonts
   /usr/share/fonts
   /home/madjestic/.fonts
   /usr/share/fonts/100dpi
   /usr/share/fonts/75dpi
   /usr/share/fonts/OTF
   /usr/share/fonts/OpenImageIO
   /usr/share/fonts/Speedo
   /usr/share/fonts/TTF
   /usr/share/fonts/Type1
   /usr/share/fonts/corefonts
   /usr/share/fonts/cyrillic
   /usr/share/fonts/dejavu
   /usr/share/fonts/encodings
   /usr/share/fonts/liberation-fonts
   /usr/share/fonts/misc
   /usr/share/fonts/nerd-fonts
   /usr/share/fonts/urw-fonts
   /usr/share/fonts/util
   /usr/share/fonts/encodings/large
/home/madjestic/.local/share/fonts: caching, new cache contents: 6 fonts, 0 dirs
/usr/local/share/fonts: skipping, no such directory
/usr/share/fonts: caching, new cache contents: 0 fonts, 16 dirs
/usr/share/fonts/100dpi: caching, new cache contents: 398 fonts, 0 dirs
/usr/share/fonts/75dpi: caching, new cache contents: 398 fonts, 0 dirs
/usr/share/fonts/OTF: caching, new cache contents: 23 fonts, 0 dirs
/usr/share/fonts/OpenImageIO: caching, new cache contents: 7 fonts, 0 dirs
/usr/share/fonts/Speedo: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/TTF: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/Type1: caching, new cache contents: 29 fonts, 0 dirs
/usr/share/fonts/corefonts: caching, new cache contents: 30 fonts, 0 dirs
/usr/share/fonts/cyrillic: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/dejavu: caching, new cache contents: 22 fonts, 0 dirs
/usr/share/fonts/encodings: caching, new cache contents: 0 fonts, 1 dirs
/usr/share/fonts/encodings/large: caching, new cache contents: 0 fonts, 0 dirs
/usr/share/fonts/liberation-fonts: caching, new cache contents: 12 fonts, 0 dirs
/usr/share/fonts/misc: caching, new cache contents: 89 fonts, 0 dirs
/usr/share/fonts/nerd-fonts: caching, new cache contents: 16 fonts, 0 dirs
/usr/share/fonts/urw-fonts: caching, new cache contents: 35 fonts, 0 dirs
/usr/share/fonts/util: caching, new cache contents: 0 fonts, 0 dirs
/home/madjestic/.fonts: skipping, no such directory
/usr/share/fonts/100dpi: skipping, looped directory detected
/usr/share/fonts/75dpi: skipping, looped directory detected
/usr/share/fonts/OTF: skipping, looped directory detected
/usr/share/fonts/OpenImageIO: skipping, looped directory detected
/usr/share/fonts/Speedo: skipping, looped directory detected
/usr/share/fonts/TTF: skipping, looped directory detected
/usr/share/fonts/Type1: skipping, looped directory detected
/usr/share/fonts/corefonts: skipping, looped directory detected
/usr/share/fonts/cyrillic: skipping, looped directory detected
/usr/share/fonts/dejavu: skipping, looped directory detected
/usr/share/fonts/encodings: skipping, looped directory detected
/usr/share/fonts/liberation-fonts: skipping, looped directory detected
/usr/share/fonts/misc: skipping, looped directory detected
/usr/share/fonts/nerd-fonts: skipping, looped directory detected
/usr/share/fonts/urw-fonts: skipping, looped directory detected
/usr/share/fonts/util: skipping, looped directory detected
/usr/share/fonts/encodings/large: skipping, looped directory detected
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/madjestic/.cache/fontconfig: cleaning cache directory
/home/madjestic/.fontconfig: not cleaning non-existent cache directory


Last edited by madjestic on Thu Sep 29, 2022 8:49 am; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


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

PostPosted: Wed Sep 28, 2022 11:04 pm    Post subject: Re: Installing mononoki font Reply with quote

madjestic wrote:
I am trying to install mononoki font, I installed media-fonts/nerd-fonts +mononoki, I see it in /usr/share/fonts, but eselect fontconfig list does not show it.

What am I missing?
[/code]

Why do you expect nerd-fonts or mononoki to appear in 'eselect fontconfig'?

Most font packages install their font files in /usr/share/fonts. And that's it. You won't see them in 'eselect fontconfig'.

Some packages install additional files in the fontconfig directory. The fontconfig files are NOT needed to use the font. But the fontconfig files provide additional functionality.

Take a look at Liberation-fonts, for example.

The package liberation-fonts installs font files in /usr/share/fonts. You can use the Liberation fonts after those font files have been installed.

The package liberation-fonts installs an additional fontconfig file in /etc/fonts/conf.avail. This fontconfig file allows you to use Liberation fonts as a substitute for Times New Roman, Arial and Courier. If you want that: enable that fontconfig option. If you don't want that (because you have installed your own font files for New Roman, Arial and Courier), disable that option.
Back to top
View user's profile Send private message
madjestic
n00b
n00b


Joined: 10 Oct 2013
Posts: 52

PostPosted: Thu Sep 29, 2022 8:48 am    Post subject: Reply with quote

Thanks, mike155

I guess I misunderstood the intent behind fontconfig.


Cheers!
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