apply font config.
This commit is contained in:
83
.config/fontconfig/conf.d/01-Prefer.conf
Normal file
83
.config/fontconfig/conf.d/01-Prefer.conf
Normal file
@@ -0,0 +1,83 @@
|
||||
<?xml version='1.0'?>
|
||||
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
|
||||
|
||||
<fontconfig>
|
||||
<match target="pattern">
|
||||
<test name="family">
|
||||
<string>system-ui</string>
|
||||
</test>
|
||||
<edit binding="strong" mode="prepend" name="family">
|
||||
<string>sans-serif</string>
|
||||
</edit>
|
||||
</match>
|
||||
<!-- Default sans-serif fonts-->
|
||||
<match target="pattern">
|
||||
<test name="family">
|
||||
<string>sans-serif</string>
|
||||
</test>
|
||||
<edit binding="strong" mode="prepend" name="family">
|
||||
<string>Noto Sans</string>
|
||||
<string>Noto Sans CJK SC</string>
|
||||
<string>Noto Color Emoji</string>
|
||||
<string>LXGW Wenkai Medium</string>
|
||||
</edit>
|
||||
</match>
|
||||
<!-- Default serif fonts-->
|
||||
<match target="pattern">
|
||||
<test name="family">
|
||||
<string>serif</string>
|
||||
</test>
|
||||
<edit binding="strong" mode="prepend" name="family">
|
||||
<string>Noto Serif</string>
|
||||
<string>Noto Serif CJK SC</string>
|
||||
<string>Noto Color Emoji</string>
|
||||
<string>LXGW Wenkai Medium</string>
|
||||
</edit>
|
||||
</match>
|
||||
<!-- Default monospace fonts-->
|
||||
<match target="pattern">
|
||||
<test name="family">
|
||||
<string>monospace</string>
|
||||
</test>
|
||||
<edit binding="strong" mode="prepend" name="family">
|
||||
<string>LXGW WenKai Mono</string>
|
||||
<string>Noto Sans Mono CJK SC</string>
|
||||
<string>Noto Color Emoji</string>
|
||||
<string>Monaco Nerd Font Mono</string>
|
||||
<string>Comic Mono</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="lang" compare="contains">
|
||||
<string>zh</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>sans-serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>Noto Sans CJK SC</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match>
|
||||
<test name="lang" compare="contains">
|
||||
<string>zh</string>
|
||||
</test>
|
||||
<test name="family">
|
||||
<string>serif</string>
|
||||
</test>
|
||||
<edit name="family" mode="prepend">
|
||||
<string>Noto Serif CJK SC</string>
|
||||
</edit>
|
||||
</match>
|
||||
<match target="pattern">
|
||||
<test name="family" qual="any">
|
||||
<string>Comic Mono</string>
|
||||
</test>
|
||||
<edit binding="strong" mode="prepend" name="family">
|
||||
<string>Comic Mono</string>
|
||||
<string>Monaco Nerd Font Mono</string>
|
||||
<string>Noto Sans Mono CJK SC</string>
|
||||
<string>Noto Color Emoji</string>
|
||||
</edit>
|
||||
</match>
|
||||
</fontconfig>
|
||||
Reference in New Issue
Block a user