Skip to content

Instantly share code, notes, and snippets.

@piersy
Last active July 5, 2018 14:20
Show Gist options
  • Save piersy/fb1cbbb42162ffe305890114db94c4e6 to your computer and use it in GitHub Desktop.
Save piersy/fb1cbbb42162ffe305890114db94c4e6 to your computer and use it in GitHub Desktop.
Smooth nice looking fonts in debian stretch - place at ~/.fonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<!--
Hinting makes terminal fonts look pretty shitty but makes browser fonts
look better, ideally i should no hint just to my terminal font and then
apply hintmedium for all other fonts, but for now this compromise will do
-->
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment