mirror of
https://github.com/rydesun/dotfiles.git
synced 2025-12-26 14:44:58 +08:00
Fix fontconfig: serif CJK fallback
This commit is contained in:
parent
158df700ca
commit
69c2ca399c
1 changed files with 27 additions and 15 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue