Skip to content

Instantly share code, notes, and snippets.

@akahana-1
Created April 21, 2017 07:12
Show Gist options
  • Save akahana-1/fc81ac8fe0a971bd7eef51934aeaa04a to your computer and use it in GitHub Desktop.
Save akahana-1/fc81ac8fe0a971bd7eef51934aeaa04a to your computer and use it in GitHub Desktop.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
serif
</test>
<edit name="family" mode="prepend" binding="strong">
<string>SourceHanSerifJP</string>
<string>NotoSerifJapanese</string>
<string>IPAex明朝</string>
<string>TakaoP明朝</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
sans-serif
</test>
<edit name="family" mode="prepend" binding="strong">
<string>SourceHanSansJP</string>
<string>NotoSansJapanese</string>
<string>IPAexゴシック</string>
<string>TakaoPゴシック</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Ricty</string>
<string>Source Code Pro</string>
<string>Souce Han Code JP</string>
</edit>
</match>
<match target="pattern">
<test qual="any" name="family">
<string>GothicBBB</string>
</test>
<edit mode="prepend">
<string>sans-serif</string>
</edit>
</match>
<match>
<test qual="any" name="family">
<string>Ryumin</string>
</test>
<edit mode="prepend">
<string>serif</string>
</edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment