Skip to content

Instantly share code, notes, and snippets.

@luizmello
Last active May 28, 2017 16:06
Show Gist options
  • Save luizmello/3290a8b5909da3499c1cddffe62c358b to your computer and use it in GitHub Desktop.
Save luizmello/3290a8b5909da3499c1cddffe62c358b to your computer and use it in GitHub Desktop.
.fonts.conf - put on the /home dir
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<match>
<edit mode="prepend" name="family">
<string>Noto Sans</string>
</edit>
</match>
<match target="pattern">
<test name="family" qual="any">
<string>serif</string>
</test>
<edit mode="assign" binding="same" name="family">
<string>Noto Serif</string>
</edit>
</match>
<match target="pattern">
<test name="family" qual="any">
<string>sans-serif</string>
</test>
<edit mode="assign" binding="same" name="family">
<string>Noto Sans</string>
</edit>
</match>
<match target="pattern">
<test name="family" qual="any">
<string>monospace</string>
</test>
<edit mode="assign" binding="same" name="family">
<string>Noto Mono</string>
</edit>
</match>
<match target="pattern">
<edit mode="assign" name="dpi">96</edit>
</match>
<match target="font">
<edit mode="assign" name="autohint">
<bool>false</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="embeddedbitmap">
<bool>false</bool>
</edit>
</match>
<dir>~/.fonts</dir>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment