3 ms·
It took a while to setup, but fixing the problem in the font rendering layer has worked really well. Several years ago - after being annoyed by blurry/bad fonts
by pdkl95 5y ago
It took a while to setup, but fixing the problem in the font rendering layer has worked really well. Several years ago - after being annoyed by blurry/bad fonts, extremely bad hinting, and other font problems - I spent a few weeks investigating the way fonts are rendered and a few more weeks comparing many different fonts and various permutations of rendering/hinting methods. The result of all that work included a set of fontconfig files with long lists like this;
<fontconfig>
<alias>
<family>Arial</family>
<prefer><family>Ubuntu</family></prefer>
</alias>
<alias>
<family>Helvetica</family>
<prefer><family>Ubuntu</family></prefer>
</alias>
<!-- Many more aliases that -->
<!-- force fonts to Ubuntu. -->
<alias>
<family>sans-serif</family>
<prefer><family>Ubuntu</family></prefer>
</alias>
</fontconfig>
This way, my font overrides happen in any software that uses fontconfig (i.e. most X11 software that uses TrueType fonts).
$ fc-match Helvetica
Ubuntu-R.ttf: "Ubuntu" "Regular"
[1] https://en.wikipedia.org/wiki/Ubuntu_%28typeface%29 https://en.wikipedia.org/wiki/Ubuntu_%28typeface%29