diff options
author | Jinwei Zhao <[email protected]> | 2016-11-14 21:40:59 +0800 |
---|---|---|
committer | Jinwei Zhao <[email protected]> | 2016-11-14 21:40:59 +0800 |
commit | 9b0600591fa693f3a0eac479f1a4f8d498928754 (patch) | |
tree | aab9f47389fe41369f1ee8ea2183daabe0920bfd | |
parent | 5711e281729282f987ed4ef85b0dfe02b81bbf45 (diff) | |
download | conf.d-9b0600591fa693f3a0eac479f1a4f8d498928754.tar.gz |
add fonts config
19 files changed, 1117 insertions, 0 deletions
diff --git a/fonts.conf.d/Android/README b/fonts.conf.d/Android/README new file mode 100644 index 0000000..6aa1269 --- /dev/null +++ b/fonts.conf.d/Android/README | |||
@@ -0,0 +1,5 @@ | |||
1 | 1. Put fonts into your Android's /system/fonts directory | ||
2 | 2. Set fonts permissions to 644 | ||
3 | 3. Put *.xml to your Android's /system/etc directory | ||
4 | 4. Set *.xml permissions to 644 | ||
5 | 5. Reboot your Android | ||
diff --git a/fonts.conf.d/Android/fallback_fonts.xml b/fonts.conf.d/Android/fallback_fonts.xml new file mode 100644 index 0000000..8f8cfa5 --- /dev/null +++ b/fonts.conf.d/Android/fallback_fonts.xml | |||
@@ -0,0 +1,420 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- | ||
3 | NOTE: this file is the legacy format, for compatibility with apps. The new, | ||
4 | more flexible format is fonts.xml. Please keep the two in sync until the legacy | ||
5 | format can be fully removed. | ||
6 | |||
7 | Fallback Fonts | ||
8 | |||
9 | This file specifies the fonts, and the priority order, that will be searched for any | ||
10 | glyphs not handled by the default fonts specified in /system/etc/system_fonts.xml. | ||
11 | Each entry consists of a family tag and a list of files (file names) which support that | ||
12 | family. The fonts for each family are listed in the order of the styles that they | ||
13 | handle (the order is: regular, bold, italic, and bold-italic). The order in which the | ||
14 | families are listed in this file represents the order in which these fallback fonts | ||
15 | will be searched for glyphs that are not supported by the default system fonts (which are | ||
16 | found in /system/etc/system_fonts.xml). | ||
17 | |||
18 | Note that there is not nameset for fallback fonts, unlike the fonts specified in | ||
19 | system_fonts.xml. The ability to support specific names in fallback fonts may be supported | ||
20 | in the future. For now, the lack of files entries here is an indicator to the system that | ||
21 | these are fallback fonts, instead of default named system fonts. | ||
22 | |||
23 | There is another optional file in /vendor/etc/fallback_fonts.xml. That file can be used to | ||
24 | provide references to other font families that should be used in addition to the default | ||
25 | fallback fonts. That file can also specify the order in which the fallback fonts should be | ||
26 | searched, to ensure that a vendor-provided font will be used before another fallback font | ||
27 | which happens to handle the same glyph. | ||
28 | |||
29 | Han languages (Chinese, Japanese, and Korean) share a common range of unicode characters; | ||
30 | their ordering in the fallback or vendor files gives priority to the first in the list. | ||
31 | Language-specific ordering can be configured by adding a BCP 47-style "lang" attribute to | ||
32 | a "file" element; fonts matching the language of text being drawn will be prioritised over | ||
33 | all others. | ||
34 | --> | ||
35 | <familyset> | ||
36 | <family> | ||
37 | <fileset> | ||
38 | <file variant="elegant">NotoNaskh-Regular.ttf</file> | ||
39 | <file variant="elegant">NotoNaskh-Bold.ttf</file> | ||
40 | </fileset> | ||
41 | </family> | ||
42 | <family> | ||
43 | <fileset> | ||
44 | <file variant="compact">NotoNaskhUI-Regular.ttf</file> | ||
45 | <file variant="compact">NotoNaskhUI-Bold.ttf</file> | ||
46 | </fileset> | ||
47 | </family> | ||
48 | <family> | ||
49 | <fileset> | ||
50 | <file>NotoSansEthiopic-Regular.ttf</file> | ||
51 | <file>NotoSansEthiopic-Bold.ttf</file> | ||
52 | </fileset> | ||
53 | </family> | ||
54 | <family> | ||
55 | <fileset> | ||
56 | <file>NotoSansHebrew-Regular.ttf</file> | ||
57 | <file>NotoSansHebrew-Bold.ttf</file> | ||
58 | </fileset> | ||
59 | </family> | ||
60 | <family> | ||
61 | <fileset> | ||
62 | <file variant="elegant">NotoSansThai-Regular.ttf</file> | ||
63 | <file variant="elegant">NotoSansThai-Bold.ttf</file> | ||
64 | </fileset> | ||
65 | </family> | ||
66 | <family> | ||
67 | <fileset> | ||
68 | <file variant="compact">NotoSansThaiUI-Regular.ttf</file> | ||
69 | <file variant="compact">NotoSansThaiUI-Bold.ttf</file> | ||
70 | </fileset> | ||
71 | </family> | ||
72 | <family> | ||
73 | <fileset> | ||
74 | <file>NotoSansArmenian-Regular.ttf</file> | ||
75 | <file>NotoSansArmenian-Bold.ttf</file> | ||
76 | </fileset> | ||
77 | </family> | ||
78 | <family> | ||
79 | <fileset> | ||
80 | <file>NotoSansGeorgian-Regular.ttf</file> | ||
81 | <file>NotoSansGeorgian-Bold.ttf</file> | ||
82 | </fileset> | ||
83 | </family> | ||
84 | <family> | ||
85 | <fileset> | ||
86 | <file variant="elegant">NotoSansDevanagari-Regular.ttf</file> | ||
87 | <file variant="elegant">NotoSansDevanagari-Bold.ttf</file> | ||
88 | </fileset> | ||
89 | </family> | ||
90 | <family> | ||
91 | <fileset> | ||
92 | <file variant="compact">NotoSansDevanagariUI-Regular.ttf</file> | ||
93 | <file variant="compact">NotoSansDevanagariUI-Bold.ttf</file> | ||
94 | </fileset> | ||
95 | </family> | ||
96 | <!-- Gujarati should come after Devanagari --> | ||
97 | <family> | ||
98 | <fileset> | ||
99 | <file variant="elegant">NotoSansGujarati-Regular.ttf</file> | ||
100 | <file variant="elegant">NotoSansGujarati-Bold.ttf</file> | ||
101 | </fileset> | ||
102 | </family> | ||
103 | <family> | ||
104 | <fileset> | ||
105 | <file variant="compact">NotoSansGujaratiUI-Regular.ttf</file> | ||
106 | <file variant="compact">NotoSansGujaratiUI-Bold.ttf</file> | ||
107 | </fileset> | ||
108 | </family> | ||
109 | <!-- Gurmukhi should come after Devanagari --> | ||
110 | <family> | ||
111 | <fileset> | ||
112 | <file variant="elegant">NotoSansGurmukhi-Regular.ttf</file> | ||
113 | <file variant="elegant">NotoSansGurmukhi-Bold.ttf</file> | ||
114 | </fileset> | ||
115 | </family> | ||
116 | <family> | ||
117 | <fileset> | ||
118 | <file variant="compact">NotoSansGurmukhiUI-Regular.ttf</file> | ||
119 | <file variant="compact">NotoSansGurmukhiUI-Bold.ttf</file> | ||
120 | </fileset> | ||
121 | </family> | ||
122 | <family> | ||
123 | <fileset> | ||
124 | <file variant="elegant">NotoSansTamil-Regular.ttf</file> | ||
125 | <file variant="elegant">NotoSansTamil-Bold.ttf</file> | ||
126 | </fileset> | ||
127 | </family> | ||
128 | <family> | ||
129 | <fileset> | ||
130 | <file variant="compact">NotoSansTamilUI-Regular.ttf</file> | ||
131 | <file variant="compact">NotoSansTamilUI-Bold.ttf</file> | ||
132 | </fileset> | ||
133 | </family> | ||
134 | <family> | ||
135 | <fileset> | ||
136 | <file variant="elegant">NotoSansMalayalam-Regular.ttf</file> | ||
137 | <file variant="elegant">NotoSansMalayalam-Bold.ttf</file> | ||
138 | </fileset> | ||
139 | </family> | ||
140 | <family> | ||
141 | <fileset> | ||
142 | <file variant="compact">NotoSansMalayalamUI-Regular.ttf</file> | ||
143 | <file variant="compact">NotoSansMalayalamUI-Bold.ttf</file> | ||
144 | </fileset> | ||
145 | </family> | ||
146 | <family> | ||
147 | <fileset> | ||
148 | <file variant="elegant">NotoSansBengali-Regular.ttf</file> | ||
149 | <file variant="elegant">NotoSansBengali-Bold.ttf</file> | ||
150 | </fileset> | ||
151 | </family> | ||
152 | <family> | ||
153 | <fileset> | ||
154 | <file variant="compact">NotoSansBengaliUI-Regular.ttf</file> | ||
155 | <file variant="compact">NotoSansBengaliUI-Bold.ttf</file> | ||
156 | </fileset> | ||
157 | </family> | ||
158 | <family> | ||
159 | <fileset> | ||
160 | <file variant="elegant">NotoSansTelugu-Regular.ttf</file> | ||
161 | <file variant="elegant">NotoSansTelugu-Bold.ttf</file> | ||
162 | </fileset> | ||
163 | </family> | ||
164 | <family> | ||
165 | <fileset> | ||
166 | <file variant="compact">NotoSansTeluguUI-Regular.ttf</file> | ||
167 | <file variant="compact">NotoSansTeluguUI-Bold.ttf</file> | ||
168 | </fileset> | ||
169 | </family> | ||
170 | <family> | ||
171 | <fileset> | ||
172 | <file variant="elegant">NotoSansKannada-Regular.ttf</file> | ||
173 | <file variant="elegant">NotoSansKannada-Bold.ttf</file> | ||
174 | </fileset> | ||
175 | </family> | ||
176 | <family> | ||
177 | <fileset> | ||
178 | <file variant="compact">NotoSansKannadaUI-Regular.ttf</file> | ||
179 | <file variant="compact">NotoSansKannadaUI-Bold.ttf</file> | ||
180 | </fileset> | ||
181 | </family> | ||
182 | <family> | ||
183 | <fileset> | ||
184 | <file>NotoSansSinhala-Regular.ttf</file> | ||
185 | <file>NotoSansSinhala-Bold.ttf</file> | ||
186 | </fileset> | ||
187 | </family> | ||
188 | <family> | ||
189 | <fileset> | ||
190 | <file variant="elegant">NotoSansKhmer-Regular.ttf</file> | ||
191 | <file variant="elegant">NotoSansKhmer-Bold.ttf</file> | ||
192 | </fileset> | ||
193 | </family> | ||
194 | <family> | ||
195 | <fileset> | ||
196 | <file variant="compact">NotoSansKhmerUI-Regular.ttf</file> | ||
197 | <file variant="compact">NotoSansKhmerUI-Bold.ttf</file> | ||
198 | </fileset> | ||
199 | </family> | ||
200 | <family> | ||
201 | <fileset> | ||
202 | <file variant="elegant">NotoSansLao-Regular.ttf</file> | ||
203 | <file variant="elegant">NotoSansLao-Bold.ttf</file> | ||
204 | </fileset> | ||
205 | </family> | ||
206 | <family> | ||
207 | <fileset> | ||
208 | <file variant="compact">NotoSansLaoUI-Regular.ttf</file> | ||
209 | <file variant="compact">NotoSansLaoUI-Bold.ttf</file> | ||
210 | </fileset> | ||
211 | </family> | ||
212 | <family> | ||
213 | <fileset> | ||
214 | <file variant="elegant">NotoSansMyanmar-Regular.ttf</file> | ||
215 | <file variant="elegant">NotoSansMyanmar-Bold.ttf</file> | ||
216 | </fileset> | ||
217 | </family> | ||
218 | <family> | ||
219 | <fileset> | ||
220 | <file variant="compact">NotoSansMyanmarUI-Regular.ttf</file> | ||
221 | <file variant="compact">NotoSansMyanmarUI-Bold.ttf</file> | ||
222 | </fileset> | ||
223 | </family> | ||
224 | <family> | ||
225 | <fileset> | ||
226 | <file>NotoSansThaana-Regular.ttf</file> | ||
227 | <file>NotoSansThaana-Bold.ttf</file> | ||
228 | </fileset> | ||
229 | </family> | ||
230 | <family> | ||
231 | <fileset> | ||
232 | <file>NotoSansCham-Regular.ttf</file> | ||
233 | <file>NotoSansCham-Bold.ttf</file> | ||
234 | </fileset> | ||
235 | </family> | ||
236 | <family> | ||
237 | <fileset> | ||
238 | <file>NotoSansBalinese-Regular.ttf</file> | ||
239 | </fileset> | ||
240 | </family> | ||
241 | <family> | ||
242 | <fileset> | ||
243 | <file>NotoSansBatak-Regular.ttf</file> | ||
244 | </fileset> | ||
245 | </family> | ||
246 | <family> | ||
247 | <fileset> | ||
248 | <file>NotoSansBuginese-Regular.ttf</file> | ||
249 | </fileset> | ||
250 | </family> | ||
251 | <family> | ||
252 | <fileset> | ||
253 | <file>NotoSansBuhid-Regular.ttf</file> | ||
254 | </fileset> | ||
255 | </family> | ||
256 | <family> | ||
257 | <fileset> | ||
258 | <file>NotoSansCanadianAboriginal-Regular.ttf</file> | ||
259 | </fileset> | ||
260 | </family> | ||
261 | <family> | ||
262 | <fileset> | ||
263 | <file>NotoSansCherokee-Regular.ttf</file> | ||
264 | </fileset> | ||
265 | </family> | ||
266 | <family> | ||
267 | <fileset> | ||
268 | <file>NotoSansCoptic-Regular.ttf</file> | ||
269 | </fileset> | ||
270 | </family> | ||
271 | <family> | ||
272 | <fileset> | ||
273 | <file>NotoSansGlagolitic-Regular.ttf</file> | ||
274 | </fileset> | ||
275 | </family> | ||
276 | <family> | ||
277 | <fileset> | ||
278 | <file>NotoSansHanunoo-Regular.ttf</file> | ||
279 | </fileset> | ||
280 | </family> | ||
281 | <family> | ||
282 | <fileset> | ||
283 | <file>NotoSansJavanese-Regular.ttf</file> | ||
284 | </fileset> | ||
285 | </family> | ||
286 | <family> | ||
287 | <fileset> | ||
288 | <file>NotoSansKayahLi-Regular.ttf</file> | ||
289 | </fileset> | ||
290 | </family> | ||
291 | <family> | ||
292 | <fileset> | ||
293 | <file>NotoSansLepcha-Regular.ttf</file> | ||
294 | </fileset> | ||
295 | </family> | ||
296 | <family> | ||
297 | <fileset> | ||
298 | <file>NotoSansLimbu-Regular.ttf</file> | ||
299 | </fileset> | ||
300 | </family> | ||
301 | <family> | ||
302 | <fileset> | ||
303 | <file>NotoSansMeeteiMayek-Regular.ttf</file> | ||
304 | </fileset> | ||
305 | </family> | ||
306 | <family> | ||
307 | <fileset> | ||
308 | <file>NotoSansOlChiki-Regular.ttf</file> | ||
309 | </fileset> | ||
310 | </family> | ||
311 | <family> | ||
312 | <fileset> | ||
313 | <file>NotoSansRejang-Regular.ttf</file> | ||
314 | </fileset> | ||
315 | </family> | ||
316 | <family> | ||
317 | <fileset> | ||
318 | <file>NotoSansSaurashtra-Regular.ttf</file> | ||
319 | </fileset> | ||
320 | </family> | ||
321 | <family> | ||
322 | <fileset> | ||
323 | <file>NotoSansSundanese-Regular.ttf</file> | ||
324 | </fileset> | ||
325 | </family> | ||
326 | <family> | ||
327 | <fileset> | ||
328 | <file>NotoSansSylotiNagri-Regular.ttf</file> | ||
329 | </fileset> | ||
330 | </family> | ||
331 | <family> | ||
332 | <fileset> | ||
333 | <file>NotoSansTagbanwa-Regular.ttf</file> | ||
334 | </fileset> | ||
335 | </family> | ||
336 | <family> | ||
337 | <fileset> | ||
338 | <file>NotoSansTaiTham-Regular.ttf</file> | ||
339 | </fileset> | ||
340 | </family> | ||
341 | <family> | ||
342 | <fileset> | ||
343 | <file>NotoSansTaiViet-Regular.ttf</file> | ||
344 | </fileset> | ||
345 | </family> | ||
346 | <family> | ||
347 | <fileset> | ||
348 | <file>NotoSansTifinagh-Regular.ttf</file> | ||
349 | </fileset> | ||
350 | </family> | ||
351 | <family> | ||
352 | <fileset> | ||
353 | <file>NotoSansYi-Regular.ttf</file> | ||
354 | </fileset> | ||
355 | </family> | ||
356 | <family> | ||
357 | <fileset> | ||
358 | <file>Lohit-Odia.ttf</file> | ||
359 | </fileset> | ||
360 | </family> | ||
361 | <family> | ||
362 | <fileset> | ||
363 | <file lang="zh-Hans">SourceHanSansSC-ExtraLight.otf</file> | ||
364 | <file lang="zh-Hans">SourceHanSansSC-Light.otf</file> | ||
365 | <file lang="zh-Hans">SourceHanSansSC-Regular.otf</file> | ||
366 | <file lang="zh-Hans">SourceHanSansSC-Medium.otf</file> | ||
367 | <file lang="zh-Hans">SourceHanSansSC-Heavy.otf</file> | ||
368 | <file lang="zh-Hans">SourceHanSansSC-Bold.otf</file> | ||
369 | </fileset> | ||
370 | </family> | ||
371 | <family> | ||
372 | <fileset> | ||
373 | <file lang="zh-Hant">NotoSansHant-Regular.otf</file> | ||
374 | </fileset> | ||
375 | </family> | ||
376 | <family> | ||
377 | <fileset> | ||
378 | <file lang="ja">NotoSansJP-Regular.otf</file> | ||
379 | </fileset> | ||
380 | </family> | ||
381 | <family> | ||
382 | <fileset> | ||
383 | <file lang="ko">NotoSansKR-Regular.otf</file> | ||
384 | </fileset> | ||
385 | </family> | ||
386 | <family> | ||
387 | <fileset> | ||
388 | <file>NanumGothic.ttf</file> | ||
389 | </fileset> | ||
390 | </family> | ||
391 | <family> | ||
392 | <fileset> | ||
393 | <file>NotoSansSymbols-Regular-Subsetted.ttf</file> | ||
394 | </fileset> | ||
395 | </family> | ||
396 | <family> | ||
397 | <fileset> | ||
398 | <file>NotoColorEmoji.ttf</file> | ||
399 | </fileset> | ||
400 | </family> | ||
401 | <family> | ||
402 | <fileset> | ||
403 | <file>DroidSansFallback.ttf</file> | ||
404 | </fileset> | ||
405 | </family> | ||
406 | <family> | ||
407 | <fileset> | ||
408 | <file lang="ja">MTLmr3m.ttf</file> | ||
409 | </fileset> | ||
410 | </family> | ||
411 | <!-- | ||
412 | Noto Sans Tai Le is intentionally kept last, to make sure it doesn't override | ||
413 | the East Asian punctuation for Chinese. | ||
414 | --> | ||
415 | <family> | ||
416 | <fileset> | ||
417 | <file>NotoSansTaiLe-Regular.ttf</file> | ||
418 | </fileset> | ||
419 | </family> | ||
420 | </familyset> | ||
diff --git a/fonts.conf.d/Android/fonts.xml b/fonts.conf.d/Android/fonts.xml new file mode 100644 index 0000000..92a3770 --- /dev/null +++ b/fonts.conf.d/Android/fonts.xml | |||
@@ -0,0 +1,344 @@ | |||
1 | <?xml version="1.0" encoding="utf-8"?> | ||
2 | <!-- | ||
3 | NOTE: this is the newer (L) version of the system font configuration, | ||
4 | supporting richer weight selection. Some apps will expect the older | ||
5 | version, so please keep system_fonts.xml and fallback_fonts.xml in sync | ||
6 | with any changes, even though framework will only read this file. | ||
7 | |||
8 | All fonts withohut names are added to the default list. Fonts are chosen | ||
9 | based on a match: full BCP-47 language tag including script, then just | ||
10 | language, and finally order (the first font containing the glyph). | ||
11 | |||
12 | Order of appearance is also the tiebreaker for weight matching. This is | ||
13 | the reason why the 900 weights of Roboto precede the 700 weights - we | ||
14 | prefer the former when an 800 weight is requested. Since bold spans | ||
15 | effectively add 300 to the weight, this ensures that 900 is the bold | ||
16 | paired with the 500 weight, ensuring adequate contrast. | ||
17 | --> | ||
18 | <familyset version="22"> | ||
19 | <!-- first font is default --> | ||
20 | <family name="sans-serif"> | ||
21 | <font weight="100" style="normal">Roboto-Thin.ttf</font> | ||
22 | <font weight="100" style="italic">Roboto-ThinItalic.ttf</font> | ||
23 | <font weight="300" style="normal">Roboto-Light.ttf</font> | ||
24 | <font weight="300" style="italic">Roboto-LightItalic.ttf</font> | ||
25 | <font weight="400" style="normal">Roboto-Regular.ttf</font> | ||
26 | <font weight="400" style="italic">Roboto-Italic.ttf</font> | ||
27 | <font weight="500" style="normal">Roboto-Medium.ttf</font> | ||
28 | <font weight="500" style="italic">Roboto-MediumItalic.ttf</font> | ||
29 | <font weight="900" style="normal">Roboto-Black.ttf</font> | ||
30 | <font weight="900" style="italic">Roboto-BlackItalic.ttf</font> | ||
31 | <font weight="700" style="normal">Roboto-Bold.ttf</font> | ||
32 | <font weight="700" style="italic">Roboto-BoldItalic.ttf</font> | ||
33 | </family> | ||
34 | |||
35 | <!-- Note that aliases must come after the fonts they reference. --> | ||
36 | <alias name="sans-serif-thin" to="sans-serif" weight="100" /> | ||
37 | <alias name="sans-serif-light" to="sans-serif" weight="300" /> | ||
38 | <alias name="sans-serif-medium" to="sans-serif" weight="500" /> | ||
39 | <alias name="sans-serif-black" to="sans-serif" weight="900" /> | ||
40 | <alias name="arial" to="sans-serif" /> | ||
41 | <alias name="helvetica" to="sans-serif" /> | ||
42 | <alias name="tahoma" to="sans-serif" /> | ||
43 | <alias name="verdana" to="sans-serif" /> | ||
44 | |||
45 | <family name="sans-serif-condensed"> | ||
46 | <font weight="300" style="normal">RobotoCondensed-Light.ttf</font> | ||
47 | <font weight="300" style="italic">RobotoCondensed-LightItalic.ttf</font> | ||
48 | <font weight="400" style="normal">RobotoCondensed-Regular.ttf</font> | ||
49 | <font weight="400" style="italic">RobotoCondensed-Italic.ttf</font> | ||
50 | <font weight="700" style="normal">RobotoCondensed-Bold.ttf</font> | ||
51 | <font weight="700" style="italic">RobotoCondensed-BoldItalic.ttf</font> | ||
52 | </family> | ||
53 | <alias name="sans-serif-condensed-light" to="sans-serif-condensed" weight="300" /> | ||
54 | |||
55 | <family name="serif"> | ||
56 | <font weight="400" style="normal">NotoSerif-Regular.ttf</font> | ||
57 | <font weight="700" style="normal">NotoSerif-Bold.ttf</font> | ||
58 | <font weight="400" style="italic">NotoSerif-Italic.ttf</font> | ||
59 | <font weight="700" style="italic">NotoSerif-BoldItalic.ttf</font> | ||
60 | </family> | ||
61 | <alias name="times" to="serif" /> | ||
62 | <alias name="times new roman" to="serif" /> | ||
63 | <alias name="palatino" to="serif" /> | ||
64 | <alias name="georgia" to="serif" /> | ||
65 | <alias name="baskerville" to="serif" /> | ||
66 | <alias name="goudy" to="serif" /> | ||
67 | <alias name="fantasy" to="serif" /> | ||
68 | <alias name="ITC Stone Serif" to="serif" /> | ||
69 | |||
70 | <family name="monospace"> | ||
71 | <font weight="400" style="normal">DroidSansMono.ttf</font> | ||
72 | </family> | ||
73 | <alias name="sans-serif-monospace" to="monospace" /> | ||
74 | <alias name="monaco" to="monospace" /> | ||
75 | |||
76 | <family name="serif-monospace"> | ||
77 | <font weight="400" style="normal">CutiveMono.ttf</font> | ||
78 | </family> | ||
79 | <alias name="courier" to="serif-monospace" /> | ||
80 | <alias name="courier new" to="serif-monospace" /> | ||
81 | |||
82 | <family name="casual"> | ||
83 | <font weight="400" style="normal">ComingSoon.ttf</font> | ||
84 | </family> | ||
85 | |||
86 | <family name="cursive"> | ||
87 | <font weight="400" style="normal">DancingScript-Regular.ttf</font> | ||
88 | <font weight="700" style="normal">DancingScript-Bold.ttf</font> | ||
89 | </family> | ||
90 | |||
91 | <family name="sans-serif-smallcaps"> | ||
92 | <font weight="400" style="normal">CarroisGothicSC-Regular.ttf</font> | ||
93 | </family> | ||
94 | |||
95 | <!-- fallback fonts --> | ||
96 | <family variant="elegant"> | ||
97 | <font weight="400" style="normal">NotoNaskh-Regular.ttf</font> | ||
98 | <font weight="700" style="normal">NotoNaskh-Bold.ttf</font> | ||
99 | </family> | ||
100 | <family variant="compact"> | ||
101 | <font weight="400" style="normal">NotoNaskhUI-Regular.ttf</font> | ||
102 | <font weight="700" style="normal">NotoNaskhUI-Bold.ttf</font> | ||
103 | </family> | ||
104 | <family> | ||
105 | <font weight="400" style="normal">NotoSansEthiopic-Regular.ttf</font> | ||
106 | <font weight="700" style="normal">NotoSansEthiopic-Bold.ttf</font> | ||
107 | </family> | ||
108 | <family> | ||
109 | <font weight="400" style="normal">NotoSansHebrew-Regular.ttf</font> | ||
110 | <font weight="700" style="normal">NotoSansHebrew-Bold.ttf</font> | ||
111 | </family> | ||
112 | <family variant="elegant"> | ||
113 | <font weight="400" style="normal">NotoSansThai-Regular.ttf</font> | ||
114 | <font weight="700" style="normal">NotoSansThai-Bold.ttf</font> | ||
115 | </family> | ||
116 | <family variant="compact"> | ||
117 | <font weight="400" style="normal">NotoSansThaiUI-Regular.ttf</font> | ||
118 | <font weight="700" style="normal">NotoSansThaiUI-Bold.ttf</font> | ||
119 | </family> | ||
120 | <family> | ||
121 | <font weight="400" style="normal">NotoSansArmenian-Regular.ttf</font> | ||
122 | <font weight="700" style="normal">NotoSansArmenian-Bold.ttf</font> | ||
123 | </family> | ||
124 | <family> | ||
125 | <font weight="400" style="normal">NotoSansGeorgian-Regular.ttf</font> | ||
126 | <font weight="700" style="normal">NotoSansGeorgian-Bold.ttf</font> | ||
127 | </family> | ||
128 | <family variant="elegant"> | ||
129 | <font weight="400" style="normal">NotoSansDevanagari-Regular.ttf</font> | ||
130 | <font weight="700" style="normal">NotoSansDevanagari-Bold.ttf</font> | ||
131 | </family> | ||
132 | <family variant="compact"> | ||
133 | <font weight="400" style="normal">NotoSansDevanagariUI-Regular.ttf</font> | ||
134 | <font weight="700" style="normal">NotoSansDevanagariUI-Bold.ttf</font> | ||
135 | </family> | ||
136 | <!-- Gujarati should come after Devanagari --> | ||
137 | <family variant="elegant"> | ||
138 | <font weight="400" style="normal">NotoSansGujarati-Regular.ttf</font> | ||
139 | <font weight="700" style="normal">NotoSansGujarati-Bold.ttf</font> | ||
140 | </family> | ||
141 | <family variant="compact"> | ||
142 | <font weight="400" style="normal">NotoSansGujaratiUI-Regular.ttf</font> | ||
143 | <font weight="700" style="normal">NotoSansGujaratiUI-Bold.ttf</font> | ||
144 | </family> | ||
145 | <!-- Gurmukhi should come after Devanagari --> | ||
146 | <family variant="elegant"> | ||
147 | <font weight="400" style="normal">NotoSansGurmukhi-Regular.ttf</font> | ||
148 | <font weight="700" style="normal">NotoSansGurmukhi-Bold.ttf</font> | ||
149 | </family> | ||
150 | <family variant="compact"> | ||
151 | <font weight="400" style="normal">NotoSansGurmukhiUI-Regular.ttf</font> | ||
152 | <font weight="700" style="normal">NotoSansGurmukhiUI-Bold.ttf</font> | ||
153 | </family> | ||
154 | <family variant="elegant"> | ||
155 | <font weight="400" style="normal">NotoSansTamil-Regular.ttf</font> | ||
156 | <font weight="700" style="normal">NotoSansTamil-Bold.ttf</font> | ||
157 | </family> | ||
158 | <family variant="compact"> | ||
159 | <font weight="400" style="normal">NotoSansTamilUI-Regular.ttf</font> | ||
160 | <font weight="700" style="normal">NotoSansTamilUI-Bold.ttf</font> | ||
161 | </family> | ||
162 | <family variant="elegant"> | ||
163 | <font weight="400" style="normal">NotoSansMalayalam-Regular.ttf</font> | ||
164 | <font weight="700" style="normal">NotoSansMalayalam-Bold.ttf</font> | ||
165 | </family> | ||
166 | <family variant="compact"> | ||
167 | <font weight="400" style="normal">NotoSansMalayalamUI-Regular.ttf</font> | ||
168 | <font weight="700" style="normal">NotoSansMalayalamUI-Bold.ttf</font> | ||
169 | </family> | ||
170 | <family variant="elegant"> | ||
171 | <font weight="400" style="normal">NotoSansBengali-Regular.ttf</font> | ||
172 | <font weight="700" style="normal">NotoSansBengali-Bold.ttf</font> | ||
173 | </family> | ||
174 | <family variant="compact"> | ||
175 | <font weight="400" style="normal">NotoSansBengaliUI-Regular.ttf</font> | ||
176 | <font weight="700" style="normal">NotoSansBengaliUI-Bold.ttf</font> | ||
177 | </family> | ||
178 | <family variant="elegant"> | ||
179 | <font weight="400" style="normal">NotoSansTelugu-Regular.ttf</font> | ||
180 | <font weight="700" style="normal">NotoSansTelugu-Bold.ttf</font> | ||
181 | </family> | ||
182 | <family variant="compact"> | ||
183 | <font weight="400" style="normal">NotoSansTeluguUI-Regular.ttf</font> | ||
184 | <font weight="700" style="normal">NotoSansTeluguUI-Bold.ttf</font> | ||
185 | </family> | ||
186 | <family variant="elegant"> | ||
187 | <font weight="400" style="normal">NotoSansKannada-Regular.ttf</font> | ||
188 | <font weight="700" style="normal">NotoSansKannada-Bold.ttf</font> | ||
189 | </family> | ||
190 | <family variant="compact"> | ||
191 | <font weight="400" style="normal">NotoSansKannadaUI-Regular.ttf</font> | ||
192 | <font weight="700" style="normal">NotoSansKannadaUI-Bold.ttf</font> | ||
193 | </family> | ||
194 | <family> | ||
195 | <font weight="400" style="normal">NotoSansSinhala-Regular.ttf</font> | ||
196 | <font weight="700" style="normal">NotoSansSinhala-Bold.ttf</font> | ||
197 | </family> | ||
198 | <family variant="elegant"> | ||
199 | <font weight="400" style="normal">NotoSansKhmer-Regular.ttf</font> | ||
200 | <font weight="700" style="normal">NotoSansKhmer-Bold.ttf</font> | ||
201 | </family> | ||
202 | <family variant="compact"> | ||
203 | <font weight="400" style="normal">NotoSansKhmerUI-Regular.ttf</font> | ||
204 | <font weight="700" style="normal">NotoSansKhmerUI-Bold.ttf</font> | ||
205 | </family> | ||
206 | <family variant="elegant"> | ||
207 | <font weight="400" style="normal">NotoSansLao-Regular.ttf</font> | ||
208 | <font weight="700" style="normal">NotoSansLao-Bold.ttf</font> | ||
209 | </family> | ||
210 | <family variant="compact"> | ||
211 | <font weight="400" style="normal">NotoSansLaoUI-Regular.ttf</font> | ||
212 | <font weight="700" style="normal">NotoSansLaoUI-Bold.ttf</font> | ||
213 | </family> | ||
214 | <family variant="elegant"> | ||
215 | <font weight="400" style="normal">NotoSansMyanmar-Regular.ttf</font> | ||
216 | <font weight="700" style="normal">NotoSansMyanmar-Bold.ttf</font> | ||
217 | </family> | ||
218 | <family variant="compact"> | ||
219 | <font weight="400" style="normal">NotoSansMyanmarUI-Regular.ttf</font> | ||
220 | <font weight="700" style="normal">NotoSansMyanmarUI-Bold.ttf</font> | ||
221 | </family> | ||
222 | <family> | ||
223 | <font weight="400" style="normal">NotoSansThaana-Regular.ttf</font> | ||
224 | <font weight="700" style="normal">NotoSansThaana-Bold.ttf</font> | ||
225 | </family> | ||
226 | <family> | ||
227 | <font weight="400" style="normal">NotoSansCham-Regular.ttf</font> | ||
228 | <font weight="700" style="normal">NotoSansCham-Bold.ttf</font> | ||
229 | </family> | ||
230 | <family> | ||
231 | <font weight="400" style="normal">NotoSansBalinese-Regular.ttf</font> | ||
232 | </family> | ||
233 | <family> | ||
234 | <font weight="400" style="normal">NotoSansBatak-Regular.ttf</font> | ||
235 | </family> | ||
236 | <family> | ||
237 | <font weight="400" style="normal">NotoSansBuginese-Regular.ttf</font> | ||
238 | </family> | ||
239 | <family> | ||
240 | <font weight="400" style="normal">NotoSansBuhid-Regular.ttf</font> | ||
241 | </family> | ||
242 | <family> | ||
243 | <font weight="400" style="normal">NotoSansCanadianAboriginal-Regular.ttf</font> | ||
244 | </family> | ||
245 | <family> | ||
246 | <font weight="400" style="normal">NotoSansCherokee-Regular.ttf</font> | ||
247 | </family> | ||
248 | <family> | ||
249 | <font weight="400" style="normal">NotoSansCoptic-Regular.ttf</font> | ||
250 | </family> | ||
251 | <family> | ||
252 | <font weight="400" style="normal">NotoSansGlagolitic-Regular.ttf</font> | ||
253 | </family> | ||
254 | <family> | ||
255 | <font weight="400" style="normal">NotoSansHanunoo-Regular.ttf</font> | ||
256 | </family> | ||
257 | <family> | ||
258 | <font weight="400" style="normal">NotoSansJavanese-Regular.ttf</font> | ||
259 | </family> | ||
260 | <family> | ||
261 | <font weight="400" style="normal">NotoSansKayahLi-Regular.ttf</font> | ||
262 | </family> | ||
263 | <family> | ||
264 | <font weight="400" style="normal">NotoSansLepcha-Regular.ttf</font> | ||
265 | </family> | ||
266 | <family> | ||
267 | <font weight="400" style="normal">NotoSansLimbu-Regular.ttf</font> | ||
268 | </family> | ||
269 | <family> | ||
270 | <font weight="400" style="normal">NotoSansMeeteiMayek-Regular.ttf</font> | ||
271 | </family> | ||
272 | <family> | ||
273 | <font weight="400" style="normal">NotoSansOlChiki-Regular.ttf</font> | ||
274 | </family> | ||
275 | <family> | ||
276 | <font weight="400" style="normal">NotoSansRejang-Regular.ttf</font> | ||
277 | </family> | ||
278 | <family> | ||
279 | <font weight="400" style="normal">NotoSansSaurashtra-Regular.ttf</font> | ||
280 | </family> | ||
281 | <family> | ||
282 | <font weight="400" style="normal">NotoSansSundanese-Regular.ttf</font> | ||
283 | </family> | ||
284 | <family> | ||
285 | <font weight="400" style="normal">NotoSansSylotiNagri-Regular.ttf</font> | ||
286 | </family> | ||
287 | <family> | ||
288 | <font weight="400" style="normal">NotoSansTagbanwa-Regular.ttf</font> | ||
289 | </family> | ||
290 | <family> | ||
291 | <font weight="400" style="normal">NotoSansTaiTham-Regular.ttf</font> | ||
292 | </family> | ||
293 | <family> | ||
294 | <font weight="400" style="normal">NotoSansTaiViet-Regular.ttf</font> | ||
295 | </family> | ||
296 | <family> | ||
297 | <font weight="400" style="normal">NotoSansTifinagh-Regular.ttf</font> | ||
298 | </family> | ||
299 | <family> | ||
300 | <font weight="400" style="normal">NotoSansYi-Regular.ttf</font> | ||
301 | </family> | ||
302 | <family> | ||
303 | <font weight="400" style="normal">Lohit-Odia.ttf</font> | ||
304 | </family> | ||
305 | <family lang="zh-Hans"> | ||
306 | <font weight="100" style="normal">SourceHanSansSC-ExtraLight.otf</font> | ||
307 | <font weight="300" style="normal">SourceHanSansSC-Light.otf</font> | ||
308 | <font weight="400" style="normal">SourceHanSansSC-Regular.otf</font> | ||
309 | <font weight="500" style="normal">SourceHanSansSC-Medium.otf</font> | ||
310 | <font weight="900" style="normal">SourceHanSansSC-Heavy.otf</font> | ||
311 | <font weight="700" style="normal">SourceHanSansSC-Bold.otf</font> | ||
312 | </family> | ||
313 | <family lang="zh-Hant"> | ||
314 | <font weight="400" style="normal">NotoSansHant-Regular.otf</font> | ||
315 | </family> | ||
316 | <family lang="ja"> | ||
317 | <font weight="400" style="normal">NotoSansJP-Regular.otf</font> | ||
318 | </family> | ||
319 | <family lang="ko"> | ||
320 | <font weight="400" style="normal">NotoSansKR-Regular.otf</font> | ||
321 | </family> | ||
322 | <family> | ||
323 | <font weight="400" style="normal">NanumGothic.ttf</font> | ||
324 | </family> | ||
325 | <family> | ||
326 | <font weight="400" style="normal">NotoSansSymbols-Regular-Subsetted.ttf</font> | ||
327 | </family> | ||
328 | <family> | ||
329 | <font weight="400" style="normal">NotoColorEmoji.ttf</font> | ||
330 | </family> | ||
331 | <family> | ||
332 | <font weight="400" style="normal">DroidSansFallback.ttf</font> | ||
333 | </family> | ||
334 | <family lang="ja"> | ||
335 | <font weight="400" style="normal">MTLmr3m.ttf</font> | ||
336 | </family> | ||
337 | <!-- | ||
338 | Noto Sans Tai Le is intentionally kept last, to make sure it doesn't override | ||
339 | the East Asian punctuation for Chinese. | ||
340 | --> | ||
341 | <family> | ||
342 | <font weight="400" style="normal">NotoSansTaiLe-Regular.ttf</font> | ||
343 | </family> | ||
344 | </familyset> | ||
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 | ||
diff --git a/fonts.conf.d/fonts/NotoColorEmoji.ttf b/fonts.conf.d/fonts/NotoColorEmoji.ttf new file mode 100644 index 0000000..efe221d --- /dev/null +++ b/fonts.conf.d/fonts/NotoColorEmoji.ttf | |||
Binary files differ | |||
diff --git a/fonts.conf.d/fonts/SourceHanSansSC-Bold.otf b/fonts.conf.d/fonts/SourceHanSansSC-Bold.otf new file mode 100644 index 0000000..a7550fd --- /dev/null +++ b/fonts.conf.d/fonts/SourceHanSansSC-Bold.otf | |||
Binary files differ | |||
diff --git a/fonts.conf.d/fonts/SourceHanSansSC-ExtraLight.otf b/fonts.conf.d/fonts/SourceHanSansSC-ExtraLight.otf new file mode 100644 index 0000000..81059c2 --- /dev/null +++ b/fonts.conf.d/fonts/SourceHanSansSC-ExtraLight.otf | |||
Binary files differ | |||
diff --git a/fonts.conf.d/fonts/SourceHanSansSC-Heavy.otf b/fonts.conf.d/fonts/SourceHanSansSC-Heavy.otf new file mode 100644 index 0000000..d68c4d9 --- /dev/null +++ b/fonts.conf.d/fonts/SourceHanSansSC-Heavy.otf | |||
Binary files differ | |||
diff --git a/fonts.conf.d/fonts/SourceHanSansSC-Light.otf b/fonts.conf.d/fonts/SourceHanSansSC-Light.otf new file mode 100644 index 0000000..7f7d9ad --- /dev/null +++ b/fonts.conf.d/fonts/SourceHanSansSC-Light.otf | |||
Binary files differ | |||
diff --git a/fonts.conf.d/fonts/SourceHanSansSC-Medium.otf b/fonts.conf.d/fonts/SourceHanSansSC-Medium.otf new file mode 100644 index 0000000..ea49170 --- /dev/null +++ b/fonts.conf.d/fonts/SourceHanSansSC-Medium.otf | |||
Binary files differ | |||
diff --git a/fonts.conf.d/fonts/SourceHanSansSC-Normal.otf b/fonts.conf.d/fonts/SourceHanSansSC-Normal.otf new file mode 100644 index 0000000..bf3ed5c --- /dev/null +++ b/fonts.conf.d/fonts/SourceHanSansSC-Normal.otf | |||
Binary files differ | |||
diff --git a/fonts.conf.d/fonts/SourceHanSansSC-Regular.otf b/fonts.conf.d/fonts/SourceHanSansSC-Regular.otf new file mode 100644 index 0000000..2355cee --- /dev/null +++ b/fonts.conf.d/fonts/SourceHanSansSC-Regular.otf | |||
Binary files differ | |||