Firefox refuses to use fonts in ~user/.config/fontconfig/fonts.conf

simao
2023-06-17T08:43:39Z

I have the following on my fonts.conf

<?xml version="1.0"?>

<fontconfig>
  <alias>
    <family>system-ui</family>
    <prefer>
      <family>FreeSans</family>
    </prefer>
  </alias>
</fontconfig>

But when websites use font-family: system-ui firefox just ignores this and uses Cantarell anyway, which I don't even know where it is getting it from. (Not Firefox font preferences).

Any idea how to make firefox respect my fonts.conf?

This is Linux with i3.

Comments URL: https://tildes.net/~comp/16hp/firefox_refuses_to_use_fonts_in_user_config_fontconfig_fonts_conf

Votes: 11

Comments: 13