Skip to content

Instantly share code, notes, and snippets.

@venam
Created September 14, 2020 05:13
Show Gist options
  • Save venam/113935e2e39c78b8f09562f7b0cb2d35 to your computer and use it in GitHub Desktop.
Save venam/113935e2e39c78b8f09562f7b0cb2d35 to your computer and use it in GitHub Desktop.
Fontconfig for Grouping Win Fonts
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<description>Make Windows Font Look Good</description>
<match target="font">
<edit name="iswindowsfont" mode="assign">
<or>
<eq>
<name>family</name>
<string>Arial</string>
</eq>
<eq>
<name>family</name>
<string>Arial Black</string>
</eq>
<eq>
<name>family</name>
<string>Calibri</string>
</eq>
<eq>
<name>family</name>
<string>Calibri Light</string>
</eq>
<eq>
<name>family</name>
<string>Cambria</string>
</eq>
<eq>
<name>family</name>
<string>Cambria Math</string>
</eq>
<eq>
<name>family</name>
<string>Comic Sans MS</string>
</eq>
<eq>
<name>family</name>
<string>Consolas</string>
</eq>
<eq>
<name>family</name>
<string>Georgia</string>
</eq>
<eq>
<name>family</name>
<string>Impact</string>
</eq>
<eq>
<name>family</name>
<string>Javanese Text</string>
</eq>
<eq>
<name>family</name>
<string>Segoe Print</string>
</eq>
<eq>
<name>family</name>
<string>Segoe Script</string></eq>
<eq>
<name>family</name>
<string>Segoe UI</string>
</eq>
<eq>
<name>family</name>
<string>Segoe UI Emoji</string>
</eq>
<eq>
<name>family</name>
<string>Segoe UI Historic</string>
</eq>
<eq>
<name>family</name>
<string>Segoe UI Black</string>
</eq>
<eq>
<name>family</name>
<string>Segoe UI Light</string>
</eq>
<eq>
<name>family</name>
<string>Segoe UI Semibold</string>
</eq>
<eq>
<name>family</name>
<string>Segoe UI Semilight</string>
</eq>
<eq>
<name>family</name>
<string>Segoe UI Symbol</string>
</eq>
<eq>
<name>family</name>
<string>Tahoma</string>
</eq>
<eq>
<name>family</name>
<string>Times New Roman</string>
</eq>
<eq>
<name>family</name>
<string>Trebuchet MS</string>
</eq>
<eq>
<name>family</name>
<string>Verdana</string>
</eq>
<eq>
<name>family</name>
<string>Webdings</string>
</eq>
<eq>
<name>family</name>
<string>Wingdings</string>
</eq>
</or>
</edit>
</match>
<match target="font">
<test name="iswindowsfont" compare="eq">
<bool>true</bool>
</test>
<edit mode="assign" name="hinting">
<bool>false</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintnone</const>
</edit>
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
<edit name="embeddedbitmap" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment