aboutsummaryrefslogtreecommitdiffstats
path: root/_config/fontconfig/conf.d/41-noto-cjk-sans-tc.conf
diff options
context:
space:
mode:
Diffstat (limited to '_config/fontconfig/conf.d/41-noto-cjk-sans-tc.conf')
-rw-r--r--_config/fontconfig/conf.d/41-noto-cjk-sans-tc.conf101
1 files changed, 101 insertions, 0 deletions
diff --git a/_config/fontconfig/conf.d/41-noto-cjk-sans-tc.conf b/_config/fontconfig/conf.d/41-noto-cjk-sans-tc.conf
new file mode 100644
index 0000000..2c1a1e2
--- /dev/null
+++ b/_config/fontconfig/conf.d/41-noto-cjk-sans-tc.conf
@@ -0,0 +1,101 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <!--
+ Google Noto CJK font configurations for traditional Chinese
+
+ Credit:
+ * Fedora package: google-noto-cjk-fonts
+ -->
+
+ <match>
+ <test name="lang">
+ <string>zh-tw</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans Mono CJK TC</string>
+ </edit>
+ </match>
+ <match>
+ <test name="lang">
+ <string>zh-hk</string>
+ </test>
+ <test name="family">
+ <string>monospace</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans Mono CJK TC</string>
+ </edit>
+ </match>
+
+ <alias>
+ <family>Noto Sans Mono CJK TC</family>
+ <default>
+ <family>monospace</family>
+ </default>
+ </alias>
+
+ <match>
+ <test name="lang">
+ <string>zh-tw</string>
+ </test>
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK TC</string>
+ </edit>
+ </match>
+ <match>
+ <test name="lang">
+ <string>zh-hk</string>
+ </test>
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK TC</string>
+ </edit>
+ </match>
+
+ <alias>
+ <family>Noto Sans CJK TC</family>
+ <default>
+ <family>serif</family>
+ </default>
+ </alias>
+
+ <match>
+ <test name="lang">
+ <string>zh-tw</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK TC</string>
+ </edit>
+ </match>
+ <match>
+ <test name="lang">
+ <string>zh-hk</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Noto Sans CJK TC</string>
+ </edit>
+ </match>
+
+ <alias>
+ <family>Noto Sans CJK TC</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+</fontconfig>