diff options
Diffstat (limited to 'fonts.conf.d/Linux')
-rw-r--r-- | fonts.conf.d/Linux/35-replace.conf | 133 | ||||
-rw-r--r-- | fonts.conf.d/Linux/51-noto-color-emoji.conf | 49 | ||||
-rw-r--r-- | fonts.conf.d/Linux/66-aa-rendering.conf | 31 | ||||
-rw-r--r-- | fonts.conf.d/Linux/66-fix-telegram.conf | 15 | ||||
-rw-r--r-- | fonts.conf.d/Linux/66-pref.conf | 29 | ||||
-rw-r--r-- | fonts.conf.d/Linux/68-fix-java.conf | 37 | ||||
-rw-r--r-- | fonts.conf.d/Linux/68-source-han-sans.conf | 49 | ||||
-rw-r--r-- | fonts.conf.d/Linux/README | 5 |
8 files changed, 348 insertions, 0 deletions
diff --git a/fonts.conf.d/Linux/35-replace.conf b/fonts.conf.d/Linux/35-replace.conf new file mode 100644 index 0000000..67bba85 --- /dev/null +++ b/fonts.conf.d/Linux/35-replace.conf | |||
@@ -0,0 +1,133 @@ | |||
1 | <?xml version='1.0'?> | ||
2 | <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | ||
3 | <fontconfig> | ||
4 | <match> | ||
5 | <test qual="any" name="family"> | ||
6 | <string>ArialPSMT</string> | ||
7 | </test> | ||
8 | <edit name="family" mode="prepend" binding="strong"> | ||
9 | <string>Arial</string> | ||
10 | </edit> | ||
11 | </match> | ||
12 | <match> | ||
13 | <test qual="any" name="family"> | ||
14 | <string>TimesNewRomanPSMT</string> | ||
15 | </test> | ||
16 | <edit name="family" mode="prepend" binding="strong"> | ||
17 | <string>Times New Roman</string> | ||
18 | </edit> | ||
19 | </match> | ||
20 | <match> | ||
21 | <test qual="any" name="family"> | ||
22 | <string>CourierNewPSMT</string> | ||
23 | </test> | ||
24 | <edit name="family" mode="prepend" binding="strong"> | ||
25 | <string>Courier New</string> | ||
26 | </edit> | ||
27 | </match> | ||
28 | |||
29 | <match> | ||
30 | <test qual="any" name="family"> | ||
31 | <string>HanaMinA</string> | ||
32 | </test> | ||
33 | <edit name="family" mode="append" binding="strong"> | ||
34 | <string>HanaMinB</string> | ||
35 | </edit> | ||
36 | </match> | ||
37 | <match> | ||
38 | <test qual="any" name="family"> | ||
39 | <string>HanaMin</string> | ||
40 | </test> | ||
41 | <edit name="family" mode="prepend" binding="same"> | ||
42 | <string>HanaMinA</string> | ||
43 | <string>HanaMinB</string> | ||
44 | </edit> | ||
45 | </match> | ||
46 | <match> | ||
47 | <test qual="any" name="family"> | ||
48 | <string>HAN NOM A</string> | ||
49 | </test> | ||
50 | <edit name="family" mode="append" binding="strong"> | ||
51 | <string>HAN NOM B</string> | ||
52 | </edit> | ||
53 | </match> | ||
54 | <match> | ||
55 | <test qual="any" name="family"> | ||
56 | <string>HAN NOM</string> | ||
57 | </test> | ||
58 | <edit name="family" mode="prepend" binding="same"> | ||
59 | <string>HAN NOM A</string> | ||
60 | <string>HAN NOM B</string> | ||
61 | </edit> | ||
62 | </match> | ||
63 | <match> | ||
64 | <test qual="any" name="family"> | ||
65 | <string>FZSongS-Extended</string> | ||
66 | </test> | ||
67 | <edit name="family" mode="append" binding="strong"> | ||
68 | <string>FZSongS-Extended(SIP)</string> | ||
69 | </edit> | ||
70 | </match> | ||
71 | <match> | ||
72 | <test qual="any" name="family"> | ||
73 | <string>Heiti SC</string> | ||
74 | </test> | ||
75 | <edit name="family" mode="append" binding="strong"> | ||
76 | <string>Heiti TC</string> | ||
77 | </edit> | ||
78 | </match> | ||
79 | |||
80 | <match> | ||
81 | <test qual="any" name="family"> | ||
82 | <string>Comic Sans MS</string> | ||
83 | </test> | ||
84 | <edit name="family" mode="append" binding="strong"> | ||
85 | <string>方正喵呜体</string> | ||
86 | </edit> | ||
87 | </match> | ||
88 | |||
89 | <match> | ||
90 | <test name="family"> | ||
91 | <string>STSong</string> | ||
92 | </test> | ||
93 | <test name="weight" compare="more"> | ||
94 | <const>medium</const> | ||
95 | </test> | ||
96 | <edit name="family" mode="assign" binding="strong"> | ||
97 | <string>STZhongSong</string> | ||
98 | </edit> | ||
99 | <edit name="weight" mode="assign" binding="strong"> | ||
100 | <const>medium</const> | ||
101 | </edit> | ||
102 | </match> | ||
103 | <match> | ||
104 | <test name="family"> | ||
105 | <string>STXihei</string> | ||
106 | </test> | ||
107 | <test name="weight" compare="more"> | ||
108 | <const>medium</const> | ||
109 | </test> | ||
110 | <edit name="family" mode="assign" binding="strong"> | ||
111 | <string>STHeiti</string> | ||
112 | </edit> | ||
113 | <edit name="weight" mode="assign" binding="strong"> | ||
114 | <const>medium</const> | ||
115 | </edit> | ||
116 | </match> | ||
117 | <match> | ||
118 | <test name="family"> | ||
119 | <string>Apple Color Emoji</string> | ||
120 | </test> | ||
121 | <edit name="family" mode="prepend" binding="strong"> | ||
122 | <string>Noto Color Emoji</string> | ||
123 | </edit> | ||
124 | </match> | ||
125 | <match> | ||
126 | <test name="family"> | ||
127 | <string>Segoe UI Emoji</string> | ||
128 | </test> | ||
129 | <edit name="family" mode="prepend" binding="strong"> | ||
130 | <string>Noto Color Emoji</string> | ||
131 | </edit> | ||
132 | </match> | ||
133 | </fontconfig> | ||
diff --git a/fonts.conf.d/Linux/51-noto-color-emoji.conf b/fonts.conf.d/Linux/51-noto-color-emoji.conf new file mode 100644 index 0000000..ae367b7 --- /dev/null +++ b/fonts.conf.d/Linux/51-noto-color-emoji.conf | |||
@@ -0,0 +1,49 @@ | |||
1 | <?xml version="1.0"?> | ||
2 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | ||
3 | <!-- /etc/fonts/conf.avail/51-noto-color-emoji.conf --> | ||
4 | <fontconfig> | ||
5 | <selectfont> | ||
6 | <acceptfont> | ||
7 | <pattern> | ||
8 | <patelt name="family"><string>Noto Color Emoji</string></patelt> | ||
9 | </pattern> | ||
10 | </acceptfont> | ||
11 | </selectfont> | ||
12 | |||
13 | <match target="font"> | ||
14 | <test name="family"> | ||
15 | <string>Noto Color Emoji</string> | ||
16 | </test> | ||
17 | <edit name="scalable" mode="assign"><bool>true</bool></edit> | ||
18 | <edit name="embeddedbitmap" mode="assign"><bool>true</bool></edit> | ||
19 | <edit name="hinting" mode="assign"><bool>true</bool></edit> | ||
20 | <edit name="hintstyle" mode="assign"><const>hintfull</const></edit> | ||
21 | </match> | ||
22 | |||
23 | <!-- Experimental --> | ||
24 | <!-- | ||
25 | <alias binding="same"> | ||
26 | <family>Segoe UI Emoji</family> | ||
27 | <prefer> | ||
28 | <family>Noto Color Emoji</family> | ||
29 | </prefer> | ||
30 | </alias> --> | ||
31 | <match target="pattern"> | ||
32 | <test name="family" qual="first" compare="contains"> | ||
33 | <string>emoji</string> | ||
34 | </test> | ||
35 | <edit mode="assign" name="color"> | ||
36 | <bool>true</bool> | ||
37 | </edit> | ||
38 | <edit mode="assign" name="family"> | ||
39 | <string>Noto Color Emoji</string> | ||
40 | </edit> | ||
41 | </match> | ||
42 | |||
43 | <match target="pattern"> | ||
44 | <edit name="family" mode="prepend"> | ||
45 | <string>Noto Color Emoji</string> | ||
46 | </edit> | ||
47 | </match> | ||
48 | |||
49 | </fontconfig> | ||
diff --git a/fonts.conf.d/Linux/66-aa-rendering.conf b/fonts.conf.d/Linux/66-aa-rendering.conf new file mode 100644 index 0000000..a846461 --- /dev/null +++ b/fonts.conf.d/Linux/66-aa-rendering.conf | |||
@@ -0,0 +1,31 @@ | |||
1 | <?xml version='1.0'?> | ||
2 | <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | ||
3 | <fontconfig> | ||
4 | |||
5 | <match target="font"> | ||
6 | <edit name="rgba" mode="assign"> | ||
7 | <const>none</const> | ||
8 | </edit> | ||
9 | <edit name="hinting" mode="assign"> | ||
10 | <bool>false</bool> | ||
11 | </edit> | ||
12 | <edit name="autohint" mode="assign"> | ||
13 | <bool>false</bool> | ||
14 | </edit> | ||
15 | <edit name="antialias" mode="assign"> | ||
16 | <bool>true</bool> | ||
17 | </edit> | ||
18 | <edit name="hintstyle" mode="assign"> | ||
19 | <const>hintnone</const> | ||
20 | </edit> | ||
21 | <edit name="lcdfilter" mode="assign"> | ||
22 | <const>lcddefault</const> | ||
23 | </edit> | ||
24 | <edit name="rh_prefer_bitmaps" mode="assign"> | ||
25 | <bool>false</bool> | ||
26 | </edit> | ||
27 | <edit name="embeddedbitmap" mode="assign"> | ||
28 | <bool>false</bool> | ||
29 | </edit> | ||
30 | </match> | ||
31 | </fontconfig> | ||
diff --git a/fonts.conf.d/Linux/66-fix-telegram.conf b/fonts.conf.d/Linux/66-fix-telegram.conf new file mode 100644 index 0000000..56d6f2e --- /dev/null +++ b/fonts.conf.d/Linux/66-fix-telegram.conf | |||
@@ -0,0 +1,15 @@ | |||
1 | <?xml version='1.0'?> | ||
2 | <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | ||
3 | <fontconfig> | ||
4 | <match> | ||
5 | <test qual="any" name="family"> | ||
6 | <string>Open Sans</string> | ||
7 | </test> | ||
8 | <edit name="family" mode="append" binding="strong"> | ||
9 | <!-- Need a TTF/OTF, instead of a TTC --> | ||
10 | <string>DengXian</string> | ||
11 | <string>Microsoft Yahei</string> | ||
12 | <string>Noto Sans CJK Auto</string> | ||
13 | </edit> | ||
14 | </match> | ||
15 | </fontconfig> | ||
diff --git a/fonts.conf.d/Linux/66-pref.conf b/fonts.conf.d/Linux/66-pref.conf new file mode 100644 index 0000000..a24a5af --- /dev/null +++ b/fonts.conf.d/Linux/66-pref.conf | |||
@@ -0,0 +1,29 @@ | |||
1 | <?xml version="1.0"?> | ||
2 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | ||
3 | <fontconfig> | ||
4 | <match> | ||
5 | <test name="family"><string>sans-serif</string></test> | ||
6 | <edit name="family" mode="prepend" binding="strong"> | ||
7 | <string>Noto Sans CJK Auto</string> | ||
8 | <string>Noto Sans CJK SC</string> | ||
9 | </edit> | ||
10 | <edit name="family" mode="append" binding="strong"> | ||
11 | <string>Noto Color Emoji</string> | ||
12 | </edit> | ||
13 | </match> | ||
14 | <match> | ||
15 | <test name="family"><string>serif</string></test> | ||
16 | <edit name="family" mode="prepend" binding="strong"> | ||
17 | <string>Palatino</string> | ||
18 | <string>STSong</string> | ||
19 | </edit> | ||
20 | </match> | ||
21 | <match> | ||
22 | <test name="family"><string>monospace</string></test> | ||
23 | <edit name="family" mode="prepend" binding="strong"> | ||
24 | <string>DejaVu Sans Mono SemiCondensed</string> | ||
25 | <string>Noto Sans Mono CJK SC</string> | ||
26 | </edit> | ||
27 | </match> | ||
28 | |||
29 | </fontconfig> | ||
diff --git a/fonts.conf.d/Linux/68-fix-java.conf b/fonts.conf.d/Linux/68-fix-java.conf new file mode 100644 index 0000000..bd0257e --- /dev/null +++ b/fonts.conf.d/Linux/68-fix-java.conf | |||
@@ -0,0 +1,37 @@ | |||
1 | <?xml version='1.0'?> | ||
2 | <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | ||
3 | <fontconfig> | ||
4 | <match> | ||
5 | <test name="prgname"> | ||
6 | <string>java</string> | ||
7 | </test> | ||
8 | <test name="family"> | ||
9 | <string>sans-serif</string> | ||
10 | </test> | ||
11 | <edit name="family" mode="prepend" binding="strong"> | ||
12 | <string>Lucida Sans</string> | ||
13 | </edit> | ||
14 | </match> | ||
15 | <match> | ||
16 | <test name="prgname"> | ||
17 | <string>java</string> | ||
18 | </test> | ||
19 | <test name="family"> | ||
20 | <string>serif</string> | ||
21 | </test> | ||
22 | <edit name="family" mode="prepend" binding="strong"> | ||
23 | <string>Lucida Bright</string> | ||
24 | </edit> | ||
25 | </match> | ||
26 | <match> | ||
27 | <test name="prgname"> | ||
28 | <string>java</string> | ||
29 | </test> | ||
30 | <test name="family"> | ||
31 | <string>monospace</string> | ||
32 | </test> | ||
33 | <edit name="family" mode="prepend" binding="strong"> | ||
34 | <string>Lucida Typewriter</string> | ||
35 | </edit> | ||
36 | </match> | ||
37 | </fontconfig> | ||
diff --git a/fonts.conf.d/Linux/68-source-han-sans.conf b/fonts.conf.d/Linux/68-source-han-sans.conf new file mode 100644 index 0000000..103b792 --- /dev/null +++ b/fonts.conf.d/Linux/68-source-han-sans.conf | |||
@@ -0,0 +1,49 @@ | |||
1 | <?xml version="1.0"?> | ||
2 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | ||
3 | <fontconfig> | ||
4 | <match> | ||
5 | <test name="family"><string>Source Han Sans Auto</string></test> | ||
6 | <test name="lang" compare="contains"> | ||
7 | <string>ja</string> | ||
8 | </test> | ||
9 | <edit name="family" mode="assign" binding="strong"> | ||
10 | <string>Source Han Sans</string> | ||
11 | </edit> | ||
12 | </match> | ||
13 | <match> | ||
14 | <test name="family"><string>Source Han Sans Auto</string></test> | ||
15 | <test name="lang" compare="contains"> | ||
16 | <string>zh-cn</string> | ||
17 | </test> | ||
18 | <edit name="family" mode="assign" binding="strong"> | ||
19 | <string>Source Han Sans SC</string> | ||
20 | </edit> | ||
21 | </match> | ||
22 | <match> | ||
23 | <test name="family"><string>Source Han Sans Auto</string></test> | ||
24 | <test name="lang" compare="contains"> | ||
25 | <string>zh-tw</string> | ||
26 | </test> | ||
27 | <edit name="family" mode="assign" binding="strong"> | ||
28 | <string>Source Han Sans TC</string> | ||
29 | </edit> | ||
30 | </match> | ||
31 | <match> | ||
32 | <test name="family"><string>Source Han Sans Auto</string></test> | ||
33 | <test name="lang" compare="contains"> | ||
34 | <string>zh-hk</string> | ||
35 | </test> | ||
36 | <edit name="family" mode="assign" binding="strong"> | ||
37 | <string>Source Han Sans TC</string> | ||
38 | </edit> | ||
39 | </match> | ||
40 | <match> | ||
41 | <test name="family"><string>Source Han Sans Auto</string></test> | ||
42 | <test name="lang" compare="contains"> | ||
43 | <string>ko</string> | ||
44 | </test> | ||
45 | <edit name="family" mode="assign" binding="strong"> | ||
46 | <string>Source Han Sans K</string> | ||
47 | </edit> | ||
48 | </match> | ||
49 | </fontconfig> | ||
diff --git a/fonts.conf.d/Linux/README b/fonts.conf.d/Linux/README new file mode 100644 index 0000000..48018a1 --- /dev/null +++ b/fonts.conf.d/Linux/README | |||
@@ -0,0 +1,5 @@ | |||
1 | Tested on Ubuntu 16.04.1 LTS | ||
2 | |||
3 | 1. The *.conf should be put into $HOME/.config/fontconfig/conf.d | ||
4 | 2. Most Linux distros can install fonts using GUI tools | ||
5 | 3. Log out and log in to take effects | ||