ipa-gothic-fonts/ipa-gothic-fonts-fontconfig.conf

57 lines
1.2 KiB
Plaintext
Raw Normal View History

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
<fontconfig>
<!-- Generic names -->
<alias>
<family>IPAGothic</family>
<default>
<family>monospace</family>
</default>
</alias>
<!-- NOTE: just for fallback - ideally better installing ipa-pgothic-fonts -->
<alias>
<family>IPAGothic</family>
<default>
<family>sans-serif</family>
</default>
</alias>
<!-- Locale-specific overrides -->
<match>
<test name="lang" compare="contains">
<string>ja</string>
</test>
<test name="family">
<string>monospace</string>
</test>
<edit name="family" mode="prepend">
<string>IPAGothic</string>
</edit>
</match>
<!-- NOTE: just for fallback - ideally better installing ipa-pgothic-fonts -->
<match>
<test name="lang" compare="contains">
<string>ja</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend">
<string>IPAGothic</string>
</edit>
</match>
<!-- enable hinting -->
<match target="font">
<test name="family">
<string>IPAGothic</string>
</test>
<edit name="hinting" mode="assign">
<bool>true</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
</match>
</fontconfig>