Skip to content

Instantly share code, notes, and snippets.

@panakuma
Created June 20, 2019 01:41
Show Gist options
  • Save panakuma/3916bbb6466a98fca8e38c40da55f78e to your computer and use it in GitHub Desktop.
Save panakuma/3916bbb6466a98fca8e38c40da55f78e to your computer and use it in GitHub Desktop.
源ノ角ゴシックと源ノ角明朝と源ノ角ゴシック Code JPをよしなに使うfonts.conf
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!-- Default serif fonts -->
<match target="pattern">
<test qual="any" name="family"><string>sans</string></test>
<edit name="family" mode="prepend" binding="same"><string>源ノ角ゴシックJP</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>sans-serif</string></test>
<edit name="family" mode="prepend" binding="same"><string>源ノ角ゴシックJP</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>serif</string></test>
<edit name="family" mode="prepend" binding="same"><string>源ノ明朝</string></edit>
</match>
<match target="pattern">
<test qual="any" name="family"><string>monospace</string></test>
<edit name="family" mode="prepend" binding="same"><string>源ノ角ゴシック Code JP</string></edit>
</match>
</fontconfig>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment