Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

fontconfig recommendation

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
Massimo B.
Veteran
Veteran
User avatar
Posts: 1940
Joined: Wed Feb 09, 2005 3:05 pm
Location: PB, Germany

fontconfig recommendation

  • Quote

Post by Massimo B. » Tue Feb 14, 2023 1:17 pm

Hi,

reading https://wiki.gentoo.org/wiki/Fontconfig I'm a bit lost what I should set on eselect fontconfig and what I should emerge.
The old days when I was using eselect-infinality and media-libs/fontconfig-ultimate are gone since a long time now.

I'm using Xfce, have enabled hinting there and have set the "Exo 2 Regular 8" as default font and "Terminus Regular 8" as default monospace font, [x] enable anti-aliasing, hinting full, sub-pixel order rgb.
Now what do I need to enable in eselect fontconfig? Do I need any of 10-autohint.conf 10-hinting-full.conf ... to get hinting working correctly?

According to the Wiki, if the Gentoo Fonts team recommendation for default Latin fonts is media-fonts/liberation-fonts, do I need to enable 60-liberation.conf?
Which setups are fully working font setups so I could compare what I do prefer...

If the WM like Xfce already sets it's own default font, what does 60-liberation.conf set then?
HP ZBook Power G9 i7-12700H,64GB DDR5|HP ProDesk 600 G5 i7-9700,128GB DDR4
Top
Massimo B.
Veteran
Veteran
User avatar
Posts: 1940
Joined: Wed Feb 09, 2005 3:05 pm
Location: PB, Germany

  • Quote

Post by Massimo B. » Tue Feb 14, 2023 1:24 pm

It feels like fontconfig does only set defaults for environments without having a WM setting all that already.
That means it won't make a difference at least within my Xfce session. To re-apply the same settings for working without Xfce in some situations I could set:

Code: Select all

# eselect fontconfig enable 10-sub-pixel-rgb.conf 11-lcdfilter-default.conf 60-liberation.conf
Is that true?
HP ZBook Power G9 i7-12700H,64GB DDR5|HP ProDesk 600 G5 i7-9700,128GB DDR4
Top
mike155
Advocate
Advocate
Posts: 4438
Joined: Fri Sep 17, 2010 11:33 pm
Location: Frankfurt, Germany

Re: fontconfig recommendation

  • Quote

Post by mike155 » Tue Feb 14, 2023 1:38 pm

Massimo B. wrote:According to the Wiki, if the Gentoo Fonts team recommendation for default Latin fonts is media-fonts/liberation-fonts, do I need to enable 60-liberation.conf?
Which setups are fully working font setups so I could compare what I do prefer...

If the WM like Xfce already sets it's own default font, what does 60-liberation.conf set then?
Take a look at /etc/fonts/conf.avail/60-liberation.conf:

Code: Select all

#cat /etc/fonts/conf.avail/60-liberation.conf

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>

        <!-- Symlinking this file to /etc/fonts/conf.d/ will allow 
         you to use liberation fonts instead of the microsoft truetype fonts.
         (from http://uwstopia.nl/blog/2007/05/free-your-fonts) -->

        <!-- Liberation fonts -->
        <match target="pattern">
                <test qual="any" name="family"><string>Times New Roman</string></test>
                <edit name="family" mode="assign"><string>Liberation Serif</string></edit>
        </match>
        <match target="pattern">
                <test qual="any" name="family"><string>Arial</string></test>
                <edit name="family" mode="assign"><string>Liberation Sans</string></edit>
        </match>
        <match target="pattern">
                <test qual="any" name="family"><string>Courier</string></test>
                <edit name="family" mode="assign"><string>Liberation Mono</string></edit>
        </match>
        <match target="pattern">
                <test qual="any" name="family"><string>Arial Narrow</string></test>
                <edit name="family" mode="assign"><string>Liberation Sans Narrow</string></edit>
        </match>
</fontconfig>
If you enable 60-liberation.conf, programs and GUIs that use the fontconfig mechanism will use Liberation fonts instead of Times New Roman, Arial and Courier.

Do NOT enable 60-liberation.conf if Times New Roman, Arial and Courier are installed on your machine.

Do NOT enable 60-liberation.conf if you want another font to be used instead of Times New Roman, Arial and Courier.

Enable 60-liberation.conf if Times New Roman, Arial and Courier are NOT installed on your machine and if you want your machine to use Liberation instead of those fonts.
Top
Massimo B.
Veteran
Veteran
User avatar
Posts: 1940
Joined: Wed Feb 09, 2005 3:05 pm
Location: PB, Germany

  • Quote

Post by Massimo B. » Thu Jan 30, 2025 9:34 am

Coming back to this topic.

On #gentoo-desktop we came to speak about terminal fonts, my favourite is media-fonts/terminus-font because all other fonts are rendering really worse.
(too bad that this forum doesn't provide a long-time picture hosting... these screenshots will disappear soon:
  • Liberation Mono Regular 8 (https://i.ibb.co/Jjs8k4fN/2025-01-30-09-10-40.png)
    Terminus Regular 8 (https://i.ibb.co/fdkkBHcZ/2025-01-30-09-11-52.png)
    Inconsolata Regular 8 (https://i.ibb.co/vCBxTZj4/2025-01-30-09-38-23.png)
(Take care to disable scaling in the browser, in Firefox I need to click the picture once.)

Beside terminal fonts, my default Xfce font is Exo 2:
  • media-fonts/exo with Xfce Thunar (https://i.ibb.co/p6sZVLsn/2025-01-30-09-47-58-crop.png)
Another user said, Liberation is rendering fine on his machine, and that my hinting is broken somehow, making be replace it by a fixed bitmap font.
I'm using Xfce on Xorg. My Settings->Appearance->Fonts is set to:

Code: Select all

[x] Enable anti-aliasing
Hinting: Full
Sub-pixel-order: RGB
DPI: [ ] Custom DPI setting /
I was using fontconfig-ultimate in the past:
viewtopic-t-993030.html
viewtopic-t-1132827html

Today I still have media-fonts/fonts-meta Maybe some leftovers are breaking something?

Code: Select all

root ~ tree /etc/fonts/
/etc/fonts/
├── conf.avail
│   ├── 05-reset-dirs-sample.conf
│   ├── 09-autohint-if-no-hinting.conf
│   ├── 10-autohint.conf
│   ├── 10-hinting-full.conf
│   ├── 10-hinting-medium.conf
│   ├── 10-hinting-none.conf
│   ├── 10-hinting-slight.conf
│   ├── 10-no-antialias.conf
│   ├── 10-powerline-symbols.conf
│   ├── 10-scale-bitmap-fonts.conf
│   ├── 10-sub-pixel-bgr.conf
│   ├── 10-sub-pixel-none.conf
│   ├── 10-sub-pixel-rgb.conf
│   ├── 10-sub-pixel-vbgr.conf
│   ├── 10-sub-pixel-vrgb.conf
│   ├── 10-unhinted.conf
│   ├── 10-yes-antialias.conf
│   ├── 11-lcdfilter-default.conf
│   ├── 11-lcdfilter-legacy.conf
│   ├── 11-lcdfilter-light.conf
│   ├── 11-lcdfilter-none.conf
│   ├── 20-unhint-small-dejavu-sans.conf
│   ├── 20-unhint-small-dejavu-sans-mono.conf
│   ├── 20-unhint-small-dejavu-serif.conf
│   ├── 20-unhint-small-vera.conf
│   ├── 25-unhint-nonlatin.conf
│   ├── 30-metric-aliases.conf
│   ├── 35-lang-normalize.conf
│   ├── 40-nonlatin.conf
│   ├── 42-luxi-mono.conf
│   ├── 45-generic.conf
│   ├── 45-latin.conf
│   ├── 48-spacing.conf
│   ├── 49-sansserif.conf
│   ├── 50-user.conf
│   ├── 51-local.conf
│   ├── 57-dejavu-sans.conf
│   ├── 57-dejavu-sans-mono.conf
│   ├── 57-dejavu-serif.conf
│   ├── 59-google-droid-sans.conf
│   ├── 59-google-droid-sans-mono.conf
│   ├── 59-google-droid-serif.conf
│   ├── 60-generic.conf
│   ├── 60-latin.conf
│   ├── 60-liberation.conf
│   ├── 61-urw-bookman.conf
│   ├── 61-urw-c059.conf
│   ├── 61-urw-d050000l.conf
│   ├── 61-urw-fallback-backwards.conf
│   ├── 61-urw-fallback-generics.conf
│   ├── 61-urw-fallback-specifics.conf
│   ├── 61-urw-gothic.conf
│   ├── 61-urw-nimbus-mono-ps.conf
│   ├── 61-urw-nimbus-roman.conf
│   ├── 61-urw-nimbus-sans.conf
│   ├── 61-urw-p052.conf
│   ├── 61-urw-standard-symbols-ps.conf
│   ├── 61-urw-z003.conf
│   ├── 62-crosextra-caladea.conf
│   ├── 62-crosextra-carlito.conf
│   ├── 65-fonts-persian.conf
│   ├── 65-khmer.conf
│   ├── 65-nonlatin.conf
│   ├── 66-noto-mono.conf
│   ├── 66-noto-sans.conf
│   ├── 66-noto-serif.conf
│   ├── 69-unifont.conf
│   ├── 70-no-bitmaps.conf
│   ├── 70-yes-bitmaps.conf
│   ├── 75-noto-emoji-fallback.conf
│   ├── 75-yes-terminus.conf
│   ├── 80-delicious.conf
│   ├── 90-roboto-regular.conf
│   └── 90-synthetic.conf
├── conf.d
│   ├── 10-sub-pixel-rgb.conf -> ../conf.avail/10-sub-pixel-rgb.conf
│   ├── 10-yes-antialias.conf -> ../conf.avail/10-yes-antialias.conf
│   ├── 11-lcdfilter-default.conf -> ../conf.avail/11-lcdfilter-default.conf
│   ├── 42-luxi-mono.conf -> ../conf.avail/42-luxi-mono.conf
│   ├── 60-liberation.conf -> ../conf.avail/60-liberation.conf
│   ├── disabled
│   │   ├── 10-autohint.conf -> /etc/fonts/conf.avail/10-autohint.conf
│   │   ├── 11-lcdfilter-default.conf -> /etc/fonts/conf.avail/11-lcdfilter-default.conf
│   │   ├── 20-unhint-small-dejavu-sans.conf -> /etc/fonts/conf.avail/20-unhint-small-dejavu-sans.conf
│   │   ├── 20-unhint-small-dejavu-sans-mono.conf -> /etc/fonts/conf.avail/20-unhint-small-dejavu-sans-mono.conf
│   │   ├── 20-unhint-small-dejavu-serif.conf -> /etc/fonts/conf.avail/20-unhint-small-dejavu-serif.conf
│   │   ├── 25-unhint-nonlatin.conf -> /etc/fonts/conf.avail/25-unhint-nonlatin.conf
│   │   ├── 57-dejavu-sans.conf -> /etc/fonts/conf.avail/57-dejavu-sans.conf
│   │   ├── 57-dejavu-sans-mono.conf -> /etc/fonts/conf.avail/57-dejavu-sans-mono.conf
│   │   └── 57-dejavu-serif.conf -> /etc/fonts/conf.avail/57-dejavu-serif.conf
│   ├── disabled.2
│   └── README
├── fonts.conf
└── PowerlineSymbols.otf

5 directories, 91 files

Code: Select all

root  ~  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-antialias.conf
  [9]   10-powerline-symbols.conf
  [10]  10-scale-bitmap-fonts.conf
  [11]  10-sub-pixel-bgr.conf
  [12]  10-sub-pixel-none.conf
  [13]  10-sub-pixel-rgb.conf *
  [14]  10-sub-pixel-vbgr.conf
  [15]  10-sub-pixel-vrgb.conf
  [16]  10-unhinted.conf
  [17]  10-yes-antialias.conf *
  [18]  11-lcdfilter-default.conf *
  [19]  11-lcdfilter-legacy.conf
  [20]  11-lcdfilter-light.conf
  [21]  11-lcdfilter-none.conf
  [22]  20-unhint-small-dejavu-sans.conf
  [23]  20-unhint-small-dejavu-sans-mono.conf
  [24]  20-unhint-small-dejavu-serif.conf
  [25]  20-unhint-small-vera.conf
  [26]  25-unhint-nonlatin.conf
  [27]  30-metric-aliases.conf
  [28]  35-lang-normalize.conf
  [29]  40-nonlatin.conf
  [30]  42-luxi-mono.conf *
  [31]  45-generic.conf
  [32]  45-latin.conf
  [33]  48-spacing.conf
  [34]  49-sansserif.conf
  [35]  50-user.conf
  [36]  51-local.conf
  [37]  57-dejavu-sans.conf
  [38]  57-dejavu-sans-mono.conf
  [39]  57-dejavu-serif.conf
  [40]  59-google-droid-sans.conf
  [41]  59-google-droid-sans-mono.conf
  [42]  59-google-droid-serif.conf
  [43]  60-generic.conf
  [44]  60-latin.conf
  [45]  60-liberation.conf *
  [46]  61-urw-bookman.conf
  [47]  61-urw-c059.conf
  [48]  61-urw-d050000l.conf
  [49]  61-urw-fallback-backwards.conf
  [50]  61-urw-fallback-generics.conf
  [51]  61-urw-fallback-specifics.conf
  [52]  61-urw-gothic.conf
  [53]  61-urw-nimbus-mono-ps.conf
  [54]  61-urw-nimbus-roman.conf
  [55]  61-urw-nimbus-sans.conf
  [56]  61-urw-p052.conf
  [57]  61-urw-standard-symbols-ps.conf
  [58]  61-urw-z003.conf
  [59]  62-crosextra-caladea.conf
  [60]  62-crosextra-carlito.conf
  [61]  65-fonts-persian.conf
  [62]  65-khmer.conf
  [63]  65-nonlatin.conf
  [64]  66-noto-mono.conf
  [65]  66-noto-sans.conf
  [66]  66-noto-serif.conf
  [67]  69-unifont.conf
  [68]  70-no-bitmaps.conf
  [69]  70-yes-bitmaps.conf
  [70]  75-noto-emoji-fallback.conf
  [71]  75-yes-terminus.conf
  [72]  80-delicious.conf
  [73]  90-roboto-regular.conf
  [74]  90-synthetic.conf
Comparing the eselect fontconfig list with the other user, I enabled the same stuff now like him. But I guess that will need a reboot…:

Code: Select all

root ~ 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-antialias.conf
  [9]   10-powerline-symbols.conf
  [10]  10-scale-bitmap-fonts.conf *
  [11]  10-sub-pixel-bgr.conf
  [12]  10-sub-pixel-none.conf *
  [13]  10-sub-pixel-rgb.conf *
  [14]  10-sub-pixel-vbgr.conf
  [15]  10-sub-pixel-vrgb.conf
  [16]  10-unhinted.conf
  [17]  10-yes-antialias.conf *
  [18]  11-lcdfilter-default.conf *
  [19]  11-lcdfilter-legacy.conf
  [20]  11-lcdfilter-light.conf
  [21]  11-lcdfilter-none.conf
  [22]  20-unhint-small-dejavu-sans.conf
  [23]  20-unhint-small-dejavu-sans-mono.conf
  [24]  20-unhint-small-dejavu-serif.conf
  [25]  20-unhint-small-vera.conf *
  [26]  25-unhint-nonlatin.conf *
  [27]  30-metric-aliases.conf *
  [28]  35-lang-normalize.conf
  [29]  40-nonlatin.conf *
  [30]  42-luxi-mono.conf *
  [31]  45-generic.conf *
  [32]  45-latin.conf *
  [33]  48-spacing.conf *
  [34]  49-sansserif.conf *
  [35]  50-user.conf *
  [36]  51-local.conf *
  [37]  57-dejavu-sans.conf
  [38]  57-dejavu-sans-mono.conf
  [39]  57-dejavu-serif.conf
  [40]  59-google-droid-sans.conf
  [41]  59-google-droid-sans-mono.conf
  [42]  59-google-droid-serif.conf
  [43]  60-generic.conf *
  [44]  60-latin.conf *
  [45]  60-liberation.conf *
  [46]  61-urw-bookman.conf
  [47]  61-urw-c059.conf
  [48]  61-urw-d050000l.conf
  [49]  61-urw-fallback-backwards.conf
  [50]  61-urw-fallback-generics.conf
  [51]  61-urw-fallback-specifics.conf
  [52]  61-urw-gothic.conf
  [53]  61-urw-nimbus-mono-ps.conf
  [54]  61-urw-nimbus-roman.conf
  [55]  61-urw-nimbus-sans.conf
  [56]  61-urw-p052.conf
  [57]  61-urw-standard-symbols-ps.conf
  [58]  61-urw-z003.conf
  [59]  62-crosextra-caladea.conf
  [60]  62-crosextra-carlito.conf
  [61]  65-fonts-persian.conf *
  [62]  65-khmer.conf
  [63]  65-nonlatin.conf *
  [64]  66-noto-mono.conf
  [65]  66-noto-sans.conf
  [66]  66-noto-serif.conf
  [67]  69-unifont.conf *
  [68]  70-no-bitmaps.conf
  [69]  70-yes-bitmaps.conf
  [70]  75-noto-emoji-fallback.conf *
  [71]  75-yes-terminus.conf
  [72]  80-delicious.conf *
  [73]  90-roboto-regular.conf
  [74]  90-synthetic.conf *
What I understood so far, all these settings only define which replacement fonts are taken and don't affect the hinting? But I remember old fontconfig-ultimate was affecting hinting somehow…
HP ZBook Power G9 i7-12700H,64GB DDR5|HP ProDesk 600 G5 i7-9700,128GB DDR4
Top
flexibeast
l33t
l33t
Posts: 679
Joined: Mon Apr 04, 2022 4:15 am
Location: Naarm/Melbourne, Australia
Contact:
Contact flexibeast
Website

  • Quote

Post by flexibeast » Thu Jan 30, 2025 10:38 pm

Massimo B. wrote:

Code: Select all

root ~ 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-antialias.conf
  [9]   10-powerline-symbols.conf
  [10]  10-scale-bitmap-fonts.conf *
  [11]  10-sub-pixel-bgr.conf
  [12]  10-sub-pixel-none.conf *
  [13]  10-sub-pixel-rgb.conf *
  [14]  10-sub-pixel-vbgr.conf
  [15]  10-sub-pixel-vrgb.conf
  [16]  10-unhinted.conf
  [17]  10-yes-antialias.conf *
  [18]  11-lcdfilter-default.conf *
  [19]  11-lcdfilter-legacy.conf
  [20]  11-lcdfilter-light.conf
  [21]  11-lcdfilter-none.conf
  [22]  20-unhint-small-dejavu-sans.conf
  [23]  20-unhint-small-dejavu-sans-mono.conf
  [24]  20-unhint-small-dejavu-serif.conf
  [25]  20-unhint-small-vera.conf *
  [26]  25-unhint-nonlatin.conf *
  [27]  30-metric-aliases.conf *
  [28]  35-lang-normalize.conf
  [29]  40-nonlatin.conf *
  [30]  42-luxi-mono.conf *
  [31]  45-generic.conf *
  [32]  45-latin.conf *
  [33]  48-spacing.conf *
  [34]  49-sansserif.conf *
  [35]  50-user.conf *
  [36]  51-local.conf *
  [37]  57-dejavu-sans.conf
  [38]  57-dejavu-sans-mono.conf
  [39]  57-dejavu-serif.conf
  [40]  59-google-droid-sans.conf
  [41]  59-google-droid-sans-mono.conf
  [42]  59-google-droid-serif.conf
  [43]  60-generic.conf *
  [44]  60-latin.conf *
  [45]  60-liberation.conf *
  [46]  61-urw-bookman.conf
  [47]  61-urw-c059.conf
  [48]  61-urw-d050000l.conf
  [49]  61-urw-fallback-backwards.conf
  [50]  61-urw-fallback-generics.conf
  [51]  61-urw-fallback-specifics.conf
  [52]  61-urw-gothic.conf
  [53]  61-urw-nimbus-mono-ps.conf
  [54]  61-urw-nimbus-roman.conf
  [55]  61-urw-nimbus-sans.conf
  [56]  61-urw-p052.conf
  [57]  61-urw-standard-symbols-ps.conf
  [58]  61-urw-z003.conf
  [59]  62-crosextra-caladea.conf
  [60]  62-crosextra-carlito.conf
  [61]  65-fonts-persian.conf *
  [62]  65-khmer.conf
  [63]  65-nonlatin.conf *
  [64]  66-noto-mono.conf
  [65]  66-noto-sans.conf
  [66]  66-noto-serif.conf
  [67]  69-unifont.conf *
  [68]  70-no-bitmaps.conf
  [69]  70-yes-bitmaps.conf
  [70]  75-noto-emoji-fallback.conf *
  [71]  75-yes-terminus.conf
  [72]  80-delicious.conf *
  [73]  90-roboto-regular.conf
  [74]  90-synthetic.conf *
What I understood so far, all these settings only define which replacement fonts are taken and don't affect the hinting? But I remember old fontconfig-ultimate was affecting hinting somehow…
Sorry, i must be misunderstanding what you're asking; there are several general options related to hinting, and not to replacement fonts, at the top of the list you quoted. Could you please clarify?
https://wiki.gentoo.org/wiki/User:Flexibeast
My most recent wiki contributions
Top
Massimo B.
Veteran
Veteran
User avatar
Posts: 1940
Joined: Wed Feb 09, 2005 3:05 pm
Location: PB, Germany

  • Quote

Post by Massimo B. » Tue Feb 04, 2025 7:11 am

Ok, I understand. So hinting is also affected? What do these options do if I actually configure the hinting in xfce4-appearance-settings? Do they just enable hinting for specific fonts? Like

Code: Select all

./conf.avail/25-unhint-nonlatin.conf:		<edit name="hinting" mode="assign">
I restarted with the new fontconfig. Hinting is a bit better for Liberation but still far away from the quality of the bitmap font Terminus:
  • Hack Regular 8
    Liberation Mono Regular 8
    Inconsolata Regular 8
    Terminus Regular 8
I have to admit, Firefox even if unscaled does not show the screenshot as sharp as it is or like my picture viewer geeqie does. So the screenshot is not lossy or compressed nor the picture server does, but the Firefox browser does some quality reduction somehow (also when opening the real local png file in Firefox).

I also tried with a fresh clean user home.
The quality difference is less if I switch to size 9. But also on 1920x1200 I like to have a very compact and sharp font just like the Terminus.
HP ZBook Power G9 i7-12700H,64GB DDR5|HP ProDesk 600 G5 i7-9700,128GB DDR4
Top
Massimo B.
Veteran
Veteran
User avatar
Posts: 1940
Joined: Wed Feb 09, 2005 3:05 pm
Location: PB, Germany

  • Quote

Post by Massimo B. » Thu Mar 20, 2025 8:56 pm

Meanwhile I had my display fonts broken and tried to get the default setup back. It is not sufficient to disable fonts and reinstall. I needed to remove the complete directory /etc/fonts/conf.d and re-emerge fontconfig, as described here:
https://github.com/gentoo/gentoo/blob/m ... ld#L77-L80
It was a bit confusing, was not aware that media-libs/fontconfig installs and enables links in /etc/fonts/conf.d because equery files fontconfig | grep conf.d was only showing the README. But after the deletion of the directory and re-emerge I got a sane initial setup, also visible in equery files...:

Code: Select all

ls -l /etc/fonts/conf.d/
total 88K
lrwxrwxrwx 1 root root  36 20. Mär 20:41 10-hinting-slight.conf -> ../conf.avail/10-hinting-slight.conf
lrwxrwxrwx 1 root root  40 20. Mär 20:41 10-scale-bitmap-fonts.conf -> ../conf.avail/10-scale-bitmap-fonts.conf
lrwxrwxrwx 1 root root  36 20. Mär 20:41 10-sub-pixel-none.conf -> ../conf.avail/10-sub-pixel-none.conf
lrwxrwxrwx 1 root root  35 20. Mär 20:41 10-yes-antialias.conf -> ../conf.avail/10-yes-antialias.conf
lrwxrwxrwx 1 root root  39 20. Mär 20:41 11-lcdfilter-default.conf -> ../conf.avail/11-lcdfilter-default.conf
lrwxrwxrwx 1 root root  39 20. Mär 20:41 20-unhint-small-vera.conf -> ../conf.avail/20-unhint-small-vera.conf
lrwxrwxrwx 1 root root  36 20. Mär 20:41 30-metric-aliases.conf -> ../conf.avail/30-metric-aliases.conf
lrwxrwxrwx 1 root root  30 20. Mär 20:41 40-nonlatin.conf -> ../conf.avail/40-nonlatin.conf
lrwxrwxrwx 1 root root  29 20. Mär 20:41 45-generic.conf -> ../conf.avail/45-generic.conf
lrwxrwxrwx 1 root root  27 20. Mär 20:41 45-latin.conf -> ../conf.avail/45-latin.conf
lrwxrwxrwx 1 root root  29 20. Mär 20:41 48-spacing.conf -> ../conf.avail/48-spacing.conf
lrwxrwxrwx 1 root root  31 20. Mär 20:41 49-sansserif.conf -> ../conf.avail/49-sansserif.conf
lrwxrwxrwx 1 root root  26 20. Mär 20:41 50-user.conf -> ../conf.avail/50-user.conf
lrwxrwxrwx 1 root root  27 20. Mär 20:41 51-local.conf -> ../conf.avail/51-local.conf
lrwxrwxrwx 1 root root  29 20. Mär 20:41 60-generic.conf -> ../conf.avail/60-generic.conf
lrwxrwxrwx 1 root root  27 20. Mär 20:41 60-latin.conf -> ../conf.avail/60-latin.conf
lrwxrwxrwx 1 root root  35 20. Mär 20:41 65-fonts-persian.conf -> ../conf.avail/65-fonts-persian.conf
lrwxrwxrwx 1 root root  30 20. Mär 20:41 65-nonlatin.conf -> ../conf.avail/65-nonlatin.conf
lrwxrwxrwx 1 root root  29 20. Mär 20:41 69-unifont.conf -> ../conf.avail/69-unifont.conf
lrwxrwxrwx 1 root root  31 20. Mär 20:41 80-delicious.conf -> ../conf.avail/80-delicious.conf
lrwxrwxrwx 1 root root  31 20. Mär 20:41 90-synthetic.conf -> ../conf.avail/90-synthetic.conf
-rw-r--r-- 1 root root 968 20. Mär 20:41 README
As far as I understand, only media-libs/fontconfig would link/enable font configs there, none of all the additional fonts like media-fonts/roboto or media-fonts/noto would do that and only provide the conf.avail/* for being enabled.
HP ZBook Power G9 i7-12700H,64GB DDR5|HP ProDesk 600 G5 i7-9700,128GB DDR4
Top
Massimo B.
Veteran
Veteran
User avatar
Posts: 1940
Joined: Wed Feb 09, 2005 3:05 pm
Location: PB, Germany

  • Quote

Post by Massimo B. » Thu Mar 20, 2025 9:45 pm

With that default setup, in Firefox as default font Liberation is used. There is 60-liberation.conf but not enabled. I have manually enabled

Code: Select all

 [65]  66-noto-sans.conf *
but after a restart, Firefox still has Liberation as default. How would I change that?
HP ZBook Power G9 i7-12700H,64GB DDR5|HP ProDesk 600 G5 i7-9700,128GB DDR4
Top
Post Reply

8 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy