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.
Turns out I just forgot a
<family> tag. That was pretty dumb of me.
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>monospace</family>
<prefer>
<family>Terminus</family>
</prefer>
</alias>
</fontconfig>