You are not logged in.

#1 2019-09-11 11:51:10

Meskarune
Member
From: USA
Registered: 2009-03-21
Posts: 357
Website

User font configuration doesn't seem to be read

I have this in /home/meskarune/.config/fontconfig/fonts.conf

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <include ignore_missing="yes">conf.d</include>
    <match target="font">
        <edit name="antialias" mode="assign">
            <bool>true</bool>
        </edit>
        <edit name="hinting" mode="assign">
            <bool>true</bool>
        </edit>
        <edit name="hintstyle" mode="assign">
            <const>hintmedium</const>
        </edit>
        <edit name="rgba" mode="assign">
            <const>rgb</const>
        </edit>
        <edit name="autohint" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="lcdfilter" mode="assign">
            <const>lcddefault</const>
        </edit>
        <edit name="dpi" mode="assign">
            <double>96</double>
        </edit>
    </match>
    <alias>
        <family>monospace</family>
        <prefer>
            <family>FuraCode Nerd Font Mono</family>
            <family>Noto Color Emoji</family>
            <family>Twitter Color Emoji</family>
            <family>EmojiOne Color</family>
            <family>Symbola</family>
        </prefer>
    </alias>
    <alias>
        <family>sans-serif</family>
        <prefer>
            <family>Inter UI</family>
            <family>Noto Color Emoji</family>
            <family>Twitter Color Emoji</family>
            <family>EmojiOne Color</family>
            <family>Symbola</family>
        </prefer>
    </alias>
    <alias>
        <family>serif</family>
        <prefer>
            <family>Bitter</family>
            <family>Noto Color Emoji</family>
            <family>Twitter Color Emoji</family>
            <family>EmojiOne Color</family>
            <family>Symbola</family>
        </prefer>
    </alias>
    <alias>
        <family>cursive</family>
        <prefer>
            <family>Homemade Apple</family>
            <family>Noto Color Emoji</family>
            <family>Twitter Color Emoji</family>
            <family>EmojiOne Color</family>
            <family>Symbola</family>
        </prefer>
    </alias>
    <alias>
        <family>fantasy</family>
        <prefer>
            <family>UnifrakturCook</family>
            <family>Noto Color Emoji</family>
            <family>Twitter Color Emoji</family>
            <family>EmojiOne Color</family>
            <family>Symbola</family>
        </prefer>
    </alias>
</fontconfig>

However when I run this command:

for family in serif sans-serif monospace fantasy cursive emoji; do                                   
  echo -n "$family: "
  fc-match "$family"
done

I get this output:

serif: Heuristica-Regular.ttf: "Heuristica" "Regular"
sans-serif: NotoSans-Regular.ttf: "Noto Sans" "Regular"
monospace: LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
fantasy: Signika-Regular.ttf: "Signika" "Regular"
cursive: texgyrechorus-mediumitalic.otf: "TeX Gyre Chorus" "Regular"
emoji: NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"

What am I doing wrong and how do I change the default font settings? I want to set specific fonts for certain font families and also have unicode support.


Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

#2 2019-09-11 14:46:53

seth
Member
Registered: 2012-09-03
Posts: 12,290

Re: User font configuration doesn't seem to be read

While it's generally advisable to use ~/.config/fontconfig/conf.d/99-* rather than a single config the config itself looks fine.
a) https://wiki.archlinux.org/index.php/Fo … overriding
b) re-run fc-cache (because safe > sorry)

Offline

#3 2019-09-12 14:11:05

Meskarune
Member
From: USA
Registered: 2009-03-21
Posts: 357
Website

Re: User font configuration doesn't seem to be read

Ok, so I copied my config to /etc/fonts/conf.d/99-user.conf, updated all packages and rebooted and still the fonts aren't changed:

serif: Heuristica-Regular.ttf: "Heuristica" "Regular"
sans-serif: NotoSans-Regular.ttf: "Noto Sans" "Regular"
monospace: LiberationMono-Regular.ttf: "Liberation Mono" "Regular"
fantasy: Signika-Regular.ttf: "Signika" "Regular"
cursive: texgyrechorus-mediumitalic.otf: "TeX Gyre Chorus" "Regular"
emoji: NotoColorEmoji.ttf: "Noto Color Emoji" "Regular"

This is what the directory looks like:

ls /etc/fonts/conf.d 
 ./                                       42-luxi-mono.conf@                  65-0-lohit-marathi.conf@              66-lohit-konkani.conf@              69-urw-fallback-backwards.conf@
 ../                                      45-generic.conf@                    65-0-lohit-nepali.conf@               66-lohit-maithili.conf@             69-urw-fallback-generics.conf@
 10-hinting-slight.conf@                  45-latin.conf@                      65-droid-kufi.conf@                   66-lohit-odia.conf@                 69-urw-fallback-specifics.conf@
 10-powerline-symbols.conf@               49-sansserif.conf@                  65-droid-sans.conf@                   66-lohit-oriya.conf@                69-urw-gothic.conf@
 10-scale-bitmap-fonts.conf@              50-user.conf@                       65-droid-serif.conf@                  66-lohit-punjabi.conf@              69-urw-nimbus-mono-ps.conf@
 10-sub-pixel-rgb.conf@                   51-local.conf@                      65-fonts-persian.conf@               '66-lohit-sindhi@devanagari.conf'@   69-urw-nimbus-roman.conf@
 11-lcdfilter-default.conf@               57-dejavu-sans.conf@                65-nonlatin.conf@                     66-lohit-tamil-classical.conf@      69-urw-nimbus-sans.conf@
 20-unhint-small-dejavu-sans.conf@        57-dejavu-sans-mono.conf@           65-non-latin-free.conf@               66-lohit-tamil.conf@                69-urw-p052.conf@
 20-unhint-small-dejavu-sans-mono.conf@   57-dejavu-serif.conf@               66-aliases-wine-free.conf@            66-lohit-telugu.conf@               69-urw-standard-symbols-ps.conf@
 20-unhint-small-dejavu-serif.conf@       59-lohit-devanagari.conf@           66-lohit-assamese.conf@               66-noto-mono.conf@                  69-urw-z003.conf@
 20-unhint-small-vera.conf@               60-droid-sans-mono.conf@            66-lohit-bengali.conf@                66-noto-sans.conf@                  70-no-bitmaps.conf@
 30-infinality-aliases.conf@              60-generic.conf@                    66-lohit-devanagari.conf@             66-noto-serif.conf@                 75-yes-terminus.conf@
 30-metric-aliases.conf@                  60-latin.conf@                      66-lohit-gujarati.conf@               67-lohit-malayalam.conf@            80-delicious.conf@
 30-metric-aliases-free.conf@             60-latin-free.conf@                 66-lohit-gurmukhi.conf@               69-unifont.conf@                    81-ubuntu.conf@
 30-win32-aliases.conf@                   62-google-crosextra-caladea.conf@   66-lohit-hindi.conf@                  69-urw-bookman.conf@                90-synthetic.conf@
 37-repl-global-free.conf@                62-google-crosextra-carlito.conf@   66-lohit-kannada.conf@                69-urw-c059.conf@                   99-user.conf
 40-nonlatin.conf@                        64-ttf-emojione-color.conf@        '66-lohit-kashmiri@devanagari.conf'@   69-urw-d050000l.conf@               README

All of the files should just be ones installed with fonts. The only thing I added/changed is 99-user.conf

I really have no clue hmm


Homepage  | Arch Linux Women | Arch Linux Classroom
Acer Aspire E5-575G-53VG:
Intel Dual-Core i5-6200U 2.3 GHz; Skylake rev3 | 8GB DDR4 ram | Intel HD Graphics 520 + NVIDIA GeForce 940MX
Qualcomm Atheros QCA9377 802.11ac | Realtek RTL8111/8168/8411 Gigabit Ethernet Controller

Offline

#4 2019-09-12 18:00:46

seth
Member
Registered: 2012-09-03
Posts: 12,290

Re: User font configuration doesn't seem to be read

fc-conflist
fc-cache -v
fc-match -as monospace # this one's gonna be a lot of text if you've many fonts
cat /etc/fonts.conf # since it's now probably the end of the list…

Offline

Board footer

Powered by FluxBB