Fix fontconfig: serif CJK fallback

This commit is contained in:
rydesun 2020-10-12 14:43:41 +08:00
parent 158df700ca
commit 69c2ca399c

View file

@ -322,6 +322,16 @@
<string>Noto Serif CJK SC</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>楷体</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">
@ -334,29 +344,31 @@
<string>Noto Serif CJK SC</string>
</edit>
</match>
<match target="pattern">
<test name="family">
<string>楷体</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>
<!-- Replace latin characters in CJK fonts -->
<match target="pattern">
<test name="family" compare="contains">
<string>Noto</string>
</test>
<test name="family" compare="contains">
<string>CJK</string>
<string>Noto Sans CJK</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans</string>
</edit>
</match>
<match target="pattern">
<test name="family" compare="contains">
<string>Noto Serif CJK</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Serif</string>
</edit>
</match>
<match target="pattern">
<test name="family" compare="contains">
<string>Noto Sans Mono CJK</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Iosevka Custom</string>
</edit>
</match>
</fontconfig>