Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] Everything switches font to Cantarell on a minimal installation (Read 276 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

[SOLVED] Everything switches font to Cantarell on a minimal installation

Been having a go at configuring and ricing an entire minimal installation from scratch on a VM and it seems already that I "cannot into fontconfig."

Currently, I have an as-of-yet unpatched build of dwm with dmenu and st running on this installation. I have only one font installed currently which is Terminus, a monospace font. The moment I install something that depends on GTK3 — in this case, spice-vdagent, everything suddenly switches to Cantarell of all things as the preferred monospace font.

What would the font configuration actually look like to prevent this from happening? Earlier I tried a .config/fontconfig/fonts.conf setting an alias and preferred font, but this didn't seem to work.

Re: Everything switches font to Cantarell on a minimal installation

Reply #1
Turns out I just forgot a <family> tag. That was pretty dumb of me.

Code: [Select]
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
    <alias>
        <family>monospace</family>
        <prefer>
            <family>Terminus</family>
        </prefer>
    </alias>
</fontconfig>