aboutsummaryrefslogtreecommitdiffstats
path: root/_config/fontconfig/conf.d/65-noto-cjk-common.conf
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@outlook.com>2016-12-06 21:55:02 +0800
committerAaron LI <aaronly.me@outlook.com>2016-12-06 21:55:02 +0800
commitc51a8d9f62ba9fd260ab3d4cde164c081ed20988 (patch)
treecbd106acbad1498d50989a4993288f1901e414eb /_config/fontconfig/conf.d/65-noto-cjk-common.conf
parented5c60d80b163b4ba7204d7ab694c0ca0607cffa (diff)
downloaddotfiles-c51a8d9f62ba9fd260ab3d4cde164c081ed20988.tar.bz2
fontconfig: Re-order configs; Move "fonts.conf" as "50-user.conf"
NOTE: Explicitly set the orders for Noto CJK fonts (SC, TC, JP, KR), in order to get rid of "LC_CTYPE" environment variable. Therefore, the preferred English fonts (e.g., Source Code Pro, Source Sans Pro) are by default used, avoiding the Chinese fonts being prepend at the beginning.
Diffstat (limited to '_config/fontconfig/conf.d/65-noto-cjk-common.conf')
-rw-r--r--_config/fontconfig/conf.d/65-noto-cjk-common.conf45
1 files changed, 45 insertions, 0 deletions
diff --git a/_config/fontconfig/conf.d/65-noto-cjk-common.conf b/_config/fontconfig/conf.d/65-noto-cjk-common.conf
new file mode 100644
index 0000000..719e18d
--- /dev/null
+++ b/_config/fontconfig/conf.d/65-noto-cjk-common.conf
@@ -0,0 +1,45 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+
+ <!--
+ Google Noto CJK font common configurations
+ -->
+
+ <!-- Generic family name assignment -->
+ <!-- sans-serif -->
+ <alias>
+ <family>Noto Sans CJK SC</family>
+ <default><family>sans-serif</family></default>
+ </alias>
+ <alias>
+ <family>Noto Sans CJK TC</family>
+ <default><family>sans-serif</family></default>
+ </alias>
+ <alias>
+ <family>Noto Sans CJK JP</family>
+ <default><family>sans-serif</family></default>
+ </alias>
+ <alias>
+ <family>Noto Sans CJK KR</family>
+ <default><family>sans-serif</family></default>
+ </alias>
+
+ <!-- monospace -->
+ <alias>
+ <family>Noto Sans Mono CJK SC</family>
+ <default><family>monospace</family></default>
+ </alias>
+ <alias>
+ <family>Noto Sans Mono CJK TC</family>
+ <default><family>monospace</family></default>
+ </alias>
+ <alias>
+ <family>Noto Sans Mono CJK JP</family>
+ <default><family>monospace</family></default>
+ </alias>
+ <alias>
+ <family>Noto Sans Mono CJK KR</family>
+ <default><family>monospace</family></default>
+ </alias>
+</fontconfig>