Skip to content

Instantly share code, notes, and snippets.

@safeith
Last active September 3, 2021 14:19
Show Gist options
  • Save safeith/bf2830162028ad3a3e6af8630dc5d6b2 to your computer and use it in GitHub Desktop.
Save safeith/bf2830162028ad3a3e6af8630dc5d6b2 to your computer and use it in GitHub Desktop.
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<description>User font configuation</description>
<!-- Default sans-serif font -->
<match target="pattern">
<test qual="any" name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Ubuntu</string>
</edit>
<edit name="family" mode="append" binding="strong">
<string>Vazir WOL</string>
</edit>
<edit name="family" mode="append" binding="strong">
<string>Noto Color Emoji</string>
</edit>
</match>
<!-- Default serif fonts -->
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Ubuntu</string>
</edit>
<edit name="family" mode="append" binding="strong">
<string>Vazir WOL</string>
</edit>
<edit name="family" mode="append" binding="strong">
<string>Noto Color Emoji</string>
</edit>
</match>
<!-- Default monospace fonts -->
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Ubuntu Mono</string>
</edit>
<edit name="family" mode="append" binding="strong">
<string>Vazir Code WOL</string>
</edit>
<edit name="family" mode="append" binding="strong">
<string>Noto Color Emoji</string>
</edit>
</match>
<!-- Fallback fonts preference order -->
<alias>
<family>sans-serif</family>
<prefer>
<family>Ubuntu</family>
<family>Vazir WOL</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Ubuntu</family>
<family>Vazir WOL</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family></family>
<family>Ubuntu Mono</family>
<family>Vazir Code WOL</family>
<family>Noto Color Emoji</family>
</prefer>
</alias>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
<edit mode="assign" name="embeddedbitmap">
<bool>true</bool>
</edit>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintslight</const>
</edit>
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment