Skip to content

Instantly share code, notes, and snippets.

@jstaursky
Created February 17, 2020 18:52
Show Gist options
  • Save jstaursky/1d36348dc81d1e027ad510a0dfbe67da to your computer and use it in GitHub Desktop.
Save jstaursky/1d36348dc81d1e027ad510a0dfbe67da to your computer and use it in GitHub Desktop.
Lifted from https://github.com/Lend27/linuxstuff/blob/master/debfontsmoothing
Create a file called .fonts.conf in your home directory, and put the following contents in it:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match target="font">
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
<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>
This will enable subpixel-hinting and font-smoothing.
Now just restart X.org (log out, then back in again).
Read more here:
https://wiki.debian.org/Fonts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment