Update fontconfig: kaiti fallback

This commit is contained in:
rydesun 2020-10-08 14:24:37 +08:00
parent a04455e789
commit 7f4a7a5872

View file

@ -180,13 +180,6 @@
<string>Noto Serif CJK SC</string>
</edit>
</match>
<match target="pattern">
<test name="family"><string>KaiTi</string></test>
<edit name="family" binding="strong">
<string>Noto Serif</string>
<string>AR PL UKai CN</string>
</edit>
</match>
<!-- Replace monospace fonts -->
<match target="pattern">
@ -194,4 +187,25 @@
<edit name="family" binding="strong"><string>Iosevka Custom</string></edit>
</match>
<!-- Replace KaiTi fonts -->
<match target="pattern">
<test name="family"><string>KaiTi</string></test>
<edit name="family" binding="strong">
<string>Noto Serif</string>
<string>AR PL UKai CN</string>
<string>Noto Serif CJK SC</string>
</edit>
</match>
<!-- KaiTi fonts fallback -->
<match target="pattern">
<test name="family" compare="contains"><string>AR PL UKai</string></test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Serif</string>
</edit>
<edit name="family" mode="append" binding="strong">
<string>Noto Serif CJK SC</string>
</edit>
</match>
</fontconfig>