Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save drewhamlett/051c197e8fb0a242e366e7dd4a1cd2ff to your computer and use it in GitHub Desktop.
Save drewhamlett/051c197e8fb0a242e366e7dd4a1cd2ff to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Full hinting keeps strokes aligned to pixels -->
<match target="font">
<edit name="hintstyle" mode="assign">
<const>hintfull</const>
</edit>
<edit name="lcdfilter" mode="assign">
<const>lcddefault</const>
</edit>
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
</match>
<!-- Slightly heavier stem-darkening for HiDPI -->
<match target="font">
<edit name="stemdarkening" mode="assign">
<bool>true</bool>
</edit>
</match>
<!-- Preferred families in order -->
<alias>
<family>sans-serif</family>
<prefer><family>Inter</family></prefer>
</alias>
<alias>
<family>monospace</family>
<prefer><family>Cascadia Code</family></prefer>
</alias>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment