|
@@ -0,0 +1,98 @@
|
|
|
+<?xml version="1.0"?>
|
|
|
+
|
|
|
+<!-- Based on Arch Wiki:
|
|
|
+ https://wiki.archlinux.org/index.php/Font_configuration/Examples#Chinese
|
|
|
+-->
|
|
|
+
|
|
|
+<fontconfig>
|
|
|
+ <!-- Pixel alignment -->
|
|
|
+ <match target="font">
|
|
|
+ <edit name="rgba" mode="assign">
|
|
|
+ <const>rgb</const>
|
|
|
+ </edit>
|
|
|
+ </match>
|
|
|
+
|
|
|
+ <!-- Never use embedded bitmap glyph -->
|
|
|
+ <match target="font">
|
|
|
+ <edit name="embeddedbitmap" mode="assign">
|
|
|
+ <bool>false</bool>
|
|
|
+ </edit>
|
|
|
+ </match>
|
|
|
+
|
|
|
+ <!-- serif -->
|
|
|
+ <match>
|
|
|
+ <test qual="any" name="family">
|
|
|
+ <string>serif</string>
|
|
|
+ </test>
|
|
|
+ <edit name="family" mode="prepend" binding="strong">
|
|
|
+ <string>Noto Serif</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>
|
|
|
+
|
|
|
+ <!-- serif -->
|
|
|
+ <match>
|
|
|
+ <test qual="any" name="family">
|
|
|
+ <string>sans-serif</string>
|
|
|
+ </test>
|
|
|
+ <edit name="family" mode="prepend" binding="strong">
|
|
|
+ <string>Noto Sans</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>
|
|
|
+
|
|
|
+ <!-- mono -->
|
|
|
+ <match>
|
|
|
+ <test name="family">
|
|
|
+ <string>monospace</string>
|
|
|
+ </test>
|
|
|
+ <edit name="family" mode="prepend">
|
|
|
+ <string>Noto Sans Symbols</string>
|
|
|
+ </edit>
|
|
|
+ <edit name="family" mode="prepend">
|
|
|
+ <string>Noto Sans Symbols2</string>
|
|
|
+ </edit>
|
|
|
+ <edit name="family" mode="prepend">
|
|
|
+ <string>Source Code Pro</string>
|
|
|
+ </edit>
|
|
|
+ </match>
|
|
|
+ <match>
|
|
|
+ <test qual="any" name="family">
|
|
|
+ <string>monospace</string>
|
|
|
+ </test>
|
|
|
+ <edit name="family" mode="prepend" binding="strong">
|
|
|
+ <string>Noto Sans Mono</string>
|
|
|
+ </edit>
|
|
|
+ </match>
|
|
|
+ <match>
|
|
|
+ <test name="lang" compare="contains">
|
|
|
+ <string>zh</string>
|
|
|
+ </test>
|
|
|
+ <test name="family">
|
|
|
+ <string>monospace</string>
|
|
|
+ </test>
|
|
|
+ <edit name="family" mode="prepend">
|
|
|
+ <string>Noto Sans Mono CJK SC</string>
|
|
|
+ </edit>
|
|
|
+ </match>
|
|
|
+</fontconfig>
|