]>
Commit | Line | Data |
---|---|---|
1 | <?xml version="1.0"?> | |
2 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
3 | <!-- /etc/fonts/fonts.conf file to configure system font access --> | |
4 | <fontconfig> | |
5 | ||
6 | <!-- | |
7 | DO NOT EDIT THIS FILE. | |
8 | IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED. | |
9 | LOCAL CHANGES BELONG IN 'local.conf'. | |
10 | ||
11 | The intent of this standard configuration file is to be adequate for | |
12 | most environments. If you have a reasonably normal environment and | |
13 | have found problems with this configuration, they are probably | |
14 | things that others will also want fixed. Please submit any | |
15 | problems to the fontconfig bugzilla system located at fontconfig.org | |
16 | ||
17 | Note that the normal 'make install' procedure for fontconfig is to | |
18 | replace any existing fonts.conf file with the new version. Place | |
19 | any local customizations in local.conf which this file references. | |
20 | ||
21 | Keith Packard | |
22 | --> | |
23 | ||
24 | <!-- Font directory list --> | |
25 | ||
26 | <dir>@FC_DEFAULT_FONTS@</dir> | |
27 | @FC_FONTPATH@ | |
28 | <dir>~/.fonts</dir> | |
29 | ||
30 | <!-- | |
31 | Accept deprecated 'mono' alias, replacing it with 'monospace' | |
32 | --> | |
33 | <match target="pattern"> | |
34 | <test qual="any" name="family"> | |
35 | <string>mono</string> | |
36 | </test> | |
37 | <edit name="family" mode="assign"> | |
38 | <string>monospace</string> | |
39 | </edit> | |
40 | </match> | |
41 | ||
42 | <!-- | |
43 | Accept alternate 'sans serif' spelling, replacing it with 'sans-serif' | |
44 | --> | |
45 | <match target="pattern"> | |
46 | <test qual="any" name="family"> | |
47 | <string>sans serif</string> | |
48 | </test> | |
49 | <edit name="family" mode="assign"> | |
50 | <string>sans-serif</string> | |
51 | </edit> | |
52 | </match> | |
53 | ||
54 | <!-- | |
55 | Accept deprecated 'sans' alias, replacing it with 'sans-serif' | |
56 | --> | |
57 | <match target="pattern"> | |
58 | <test qual="any" name="family"> | |
59 | <string>sans</string> | |
60 | </test> | |
61 | <edit name="family" mode="assign"> | |
62 | <string>sans-serif</string> | |
63 | </edit> | |
64 | </match> | |
65 | ||
66 | <!-- | |
67 | Mark common families with their generics so we'll get | |
68 | something reasonable | |
69 | --> | |
70 | ||
71 | <!-- | |
72 | Serif faces | |
73 | --> | |
74 | <alias> | |
75 | <family>Bitstream Vera Serif</family> | |
76 | <family>Times New Roman</family> | |
77 | <family>Thorndale AMT</family> | |
78 | <family>Times</family> | |
79 | <family>Nimbus Roman No9 L</family> | |
80 | <family>Luxi Serif</family> | |
81 | <family>Kochi Mincho</family> | |
82 | <family>AR PL SungtiL GB</family> | |
83 | <family>AR PL Mingti2L Big5</family> | |
84 | <family>MS 明朝</family> | |
85 | <family>Baekmuk Batang</family> | |
86 | <family>FreeSerif</family> | |
87 | <default><family>serif</family></default> | |
88 | </alias> | |
89 | <!-- | |
90 | Sans-serif faces | |
91 | --> | |
92 | <alias> | |
93 | <family>Bitstream Vera Sans</family> | |
94 | <family>Helvetica</family> | |
95 | <family>Arial</family> | |
96 | <family>Verdana</family> | |
97 | <family>Albany AMT</family> | |
98 | <family>Nimbus Sans L</family> | |
99 | <family>Luxi Sans</family> | |
100 | <family>Kochi Gothic</family> | |
101 | <family>AR PL KaitiM GB</family> | |
102 | <family>AR PL KaitiM Big5</family> | |
103 | <family>MS ゴシック</family> | |
104 | <family>Baekmuk Dotum</family> | |
105 | <family>SimSun</family> | |
106 | <family>FreeSans</family> | |
107 | <default><family>sans-serif</family></default> | |
108 | </alias> | |
109 | <!-- | |
110 | Monospace faces | |
111 | --> | |
112 | <alias> | |
113 | <family>Bitstream Vera Sans Mono</family> | |
114 | <family>Courier</family> | |
115 | <family>Courier New</family> | |
116 | <family>Andale Mono</family> | |
117 | <family>Luxi Mono</family> | |
118 | <family>Cumberland AMT</family> | |
119 | <family>Nimbus Mono L</family> | |
120 | <family>NSimSun</family> | |
121 | <family>FreeMono</family> | |
122 | <default><family>monospace</family></default> | |
123 | </alias> | |
124 | <!-- | |
125 | If the font still has no generic name, add sans-serif | |
126 | --> | |
127 | <match target="pattern"> | |
128 | <test qual="all" name="family" compare="not_eq"> | |
129 | <string>sans-serif</string> | |
130 | </test> | |
131 | <test qual="all" name="family" compare="not_eq"> | |
132 | <string>serif</string> | |
133 | </test> | |
134 | <test qual="all" name="family" compare="not_eq"> | |
135 | <string>monospace</string> | |
136 | </test> | |
137 | <edit name="family" mode="append_last"> | |
138 | <string>sans-serif</string> | |
139 | </edit> | |
140 | </match> | |
141 | ||
142 | <!-- | |
143 | URW provides metric and shape compatible fonts for these 3 Adobe families. | |
144 | --> | |
145 | <alias> | |
146 | <family>Times</family> | |
147 | <accept><family>Nimbus Roman No9 L</family></accept> | |
148 | </alias> | |
149 | <alias> | |
150 | <family>Helvetica</family> | |
151 | <accept><family>Nimbus Sans L</family></accept> | |
152 | </alias> | |
153 | <alias> | |
154 | <family>Courier</family> | |
155 | <accept><family>Nimbus Mono L</family></accept> | |
156 | </alias> | |
157 | ||
158 | <!-- | |
159 | AMT provides metric and shape compatible fonts for these three web font | |
160 | families. | |
161 | --> | |
162 | <alias> | |
163 | <family>Times New Roman</family> | |
164 | <accept><family>Thorndale AMT</family></accept> | |
165 | </alias> | |
166 | <alias> | |
167 | <family>Arial</family> | |
168 | <accept><family>Albany AMT</family></accept> | |
169 | </alias> | |
170 | <alias> | |
171 | <family>Courier New</family> | |
172 | <accept><family>Cumberland AMT</family></accept> | |
173 | </alias> | |
174 | ||
175 | <!-- | |
176 | Some Asian fonts misadvertise themselves as monospaced when | |
177 | in fact they are dual-spaced (half and full). This makes | |
178 | FreeType very confused as it forces all widths to match. | |
179 | Undo this magic by disabling the width forcing code --> | |
180 | <match target="font"> | |
181 | <test name="family"><string>GulimChe</string></test> | |
182 | <edit name="globaladvance"><bool>false</bool></edit> | |
183 | </match> | |
184 | ||
185 | <match target="font"> | |
186 | <test name="family"><string>DotumChe</string></test> | |
187 | <edit name="globaladvance"><bool>false</bool></edit> | |
188 | </match> | |
189 | ||
190 | <match target="font"> | |
191 | <test name="family"><string>BatangChe</string></test> | |
192 | <edit name="globaladvance"><bool>false</bool></edit> | |
193 | </match> | |
194 | ||
195 | <match target="font"> | |
196 | <test name="family"><string>GungsuhChe</string></test> | |
197 | <edit name="globaladvance"><bool>false</bool></edit> | |
198 | </match> | |
199 | ||
200 | <!-- | |
201 | The Bitstream Vera fonts have GASP entries suggesting that hinting be | |
202 | disabled below 8 ppem, but FreeType ignores those, preferring to use | |
203 | the data found in the instructed hints. The initial Vera release | |
204 | didn't include the right instructions in the 'prep' table. Fix this | |
205 | by disabling hinting manually at smaller sizes (< 8ppem) | |
206 | --> | |
207 | ||
208 | <match target="font"> | |
209 | <test name="family"> | |
210 | <string>Bitstream Vera Sans</string> | |
211 | </test> | |
212 | <test name="pixelsize" compare="less"> | |
213 | <double>7.5</double> | |
214 | </test> | |
215 | <edit name="hinting"> | |
216 | <bool>false</bool> | |
217 | </edit> | |
218 | </match> | |
219 | ||
220 | <match target="font"> | |
221 | <test name="family"> | |
222 | <string>Bitstream Vera Serif</string> | |
223 | </test> | |
224 | <test name="pixelsize" compare="less"> | |
225 | <double>7.5</double> | |
226 | </test> | |
227 | <edit name="hinting"> | |
228 | <bool>false</bool> | |
229 | </edit> | |
230 | </match> | |
231 | ||
232 | <match target="font"> | |
233 | <test name="family"> | |
234 | <string>Bitstream Vera Sans Mono</string> | |
235 | </test> | |
236 | <test name="pixelsize" compare="less"> | |
237 | <double>7.5</double> | |
238 | </test> | |
239 | <edit name="hinting"> | |
240 | <bool>false</bool> | |
241 | </edit> | |
242 | </match> | |
243 | ||
244 | <!-- | |
245 | Load per-user customization file | |
246 | --> | |
247 | <include ignore_missing="yes">~/.fonts.conf</include> | |
248 | ||
249 | <!-- | |
250 | Load local system customization file | |
251 | --> | |
252 | <include ignore_missing="yes">conf.d</include> | |
253 | <include ignore_missing="yes">local.conf</include> | |
254 | ||
255 | <!-- | |
256 | Provide required aliases for standard names | |
257 | --> | |
258 | <alias> | |
259 | <family>serif</family> | |
260 | <prefer> | |
261 | <family>Bitstream Vera Serif</family> | |
262 | <family>Times New Roman</family> | |
263 | <family>Thorndale AMT</family> | |
264 | <family>Luxi Serif</family> | |
265 | <family>Nimbus Roman No9 L</family> | |
266 | <family>Times</family> | |
267 | <family>Frank Ruehl</family> | |
268 | <family>Kochi Mincho</family> | |
269 | <family>AR PL SungtiL GB</family> | |
270 | <family>AR PL Mingti2L Big5</family> | |
271 | <family>MS 明朝</family> | |
272 | <family>Baekmuk Batang</family> | |
273 | <family>FreeSerif</family> | |
274 | </prefer> | |
275 | </alias> | |
276 | <alias> | |
277 | <family>sans-serif</family> | |
278 | <prefer> | |
279 | <family>Bitstream Vera Sans</family> | |
280 | <family>Verdana</family> | |
281 | <family>Arial</family> | |
282 | <family>Albany AMT</family> | |
283 | <family>Luxi Sans</family> | |
284 | <family>Nimbus Sans L</family> | |
285 | <family>Helvetica</family> | |
286 | <family>Nachlieli</family> | |
287 | <family>Kochi Gothic</family> | |
288 | <family>AR PL KaitiM GB</family> | |
289 | <family>AR PL KaitiM Big5</family> | |
290 | <family>MS ゴシック</family> | |
291 | <family>Baekmuk Dotum</family> | |
292 | <family>SimSun</family> | |
293 | <family>FreeSans</family> | |
294 | </prefer> | |
295 | </alias> | |
296 | <alias> | |
297 | <family>monospace</family> | |
298 | <prefer> | |
299 | <family>Bitstream Vera Sans Mono</family> | |
300 | <family>Andale Mono</family> | |
301 | <family>Courier New</family> | |
302 | <family>Cumberland AMT</family> | |
303 | <family>Luxi Mono</family> | |
304 | <family>Nimbus Mono L</family> | |
305 | <family>Courier</family> | |
306 | <family>Miriam Mono</family> | |
307 | <family>Kochi Gothic</family> | |
308 | <family>AR PL KaitiM GB</family> | |
309 | <family>Baekmuk Dotum</family> | |
310 | <family>FreeMono</family> | |
311 | </prefer> | |
312 | </alias> | |
313 | ||
314 | <!-- | |
315 | Artificial oblique for fonts without an italic or oblique version | |
316 | --> | |
317 | ||
318 | <match target="font"> | |
319 | <!-- check to see if the font is roman --> | |
320 | <test name="slant"> | |
321 | <const>roman</const> | |
322 | </test> | |
323 | <!-- check to see if the pattern requested non-roman --> | |
324 | <test target="pattern" name="slant" compare="not_eq"> | |
325 | <const>roman</const> | |
326 | </test> | |
327 | <!-- multiply the matrix to slant the font --> | |
328 | <edit name="matrix" mode="assign"> | |
329 | <times> | |
330 | <name>matrix</name> | |
331 | <matrix><double>1</double><double>0.2</double> | |
332 | <double>0</double><double>1</double> | |
333 | </matrix> | |
334 | </times> | |
335 | </edit> | |
336 | <!-- pretend the font is oblique now --> | |
337 | <edit name="slant" mode="assign"> | |
338 | <const>oblique</const> | |
339 | </edit> | |
340 | </match> | |
341 | ||
342 | <!-- | |
343 | Synthetic emboldening for fonts that do not have bold face available | |
344 | --> | |
345 | ||
346 | <match target="font"> | |
347 | <!-- check to see if the font is just regular --> | |
348 | <test name="weight" compare="less_eq"> | |
349 | <int>100</int> | |
350 | </test> | |
351 | <!-- check to see if the pattern requests bold --> | |
352 | <test target="pattern" name="weight" compare="more_eq"> | |
353 | <int>200</int> | |
354 | </test> | |
355 | <!-- set the embolden flag --> | |
356 | <edit name="embolden" mode="assign"> | |
357 | <bool>true</bool> | |
358 | </edit> | |
359 | </match> | |
360 | ||
361 | ||
362 | <config> | |
363 | <!-- | |
364 | These are the default Unicode chars that are expected to be blank | |
365 | in fonts. All other blank chars are assumed to be broken and | |
366 | won't appear in the resulting charsets | |
367 | --> | |
368 | <blank> | |
369 | <int>0x0020</int> <!-- SPACE --> | |
370 | <int>0x00A0</int> <!-- NO-BREAK SPACE --> | |
371 | <int>0x00AD</int> <!-- SOFT HYPHEN --> | |
372 | <int>0x034F</int> <!-- COMBINING GRAPHEME JOINER --> | |
373 | <int>0x0600</int> <!-- ARABIC NUMBER SIGN --> | |
374 | <int>0x0601</int> <!-- ARABIC SIGN SANAH --> | |
375 | <int>0x0602</int> <!-- ARABIC FOOTNOTE MARKER --> | |
376 | <int>0x0603</int> <!-- ARABIC SIGN SAFHA --> | |
377 | <int>0x06DD</int> <!-- ARABIC END OF AYAH --> | |
378 | <int>0x070F</int> <!-- SYRIAC ABBREVIATION MARK --> | |
379 | <int>0x115F</int> <!-- HANGUL CHOSEONG FILLER --> | |
380 | <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER --> | |
381 | <int>0x1680</int> <!-- OGHAM SPACE MARK --> | |
382 | <int>0x17B4</int> <!-- KHMER VOWEL INHERENT AQ --> | |
383 | <int>0x17B5</int> <!-- KHMER VOWEL INHERENT AA --> | |
384 | <int>0x180E</int> <!-- MONGOLIAN VOWEL SEPARATOR --> | |
385 | <int>0x2000</int> <!-- EN QUAD --> | |
386 | <int>0x2001</int> <!-- EM QUAD --> | |
387 | <int>0x2002</int> <!-- EN SPACE --> | |
388 | <int>0x2003</int> <!-- EM SPACE --> | |
389 | <int>0x2004</int> <!-- THREE-PER-EM SPACE --> | |
390 | <int>0x2005</int> <!-- FOUR-PER-EM SPACE --> | |
391 | <int>0x2006</int> <!-- SIX-PER-EM SPACE --> | |
392 | <int>0x2007</int> <!-- FIGURE SPACE --> | |
393 | <int>0x2008</int> <!-- PUNCTUATION SPACE --> | |
394 | <int>0x2009</int> <!-- THIN SPACE --> | |
395 | <int>0x200A</int> <!-- HAIR SPACE --> | |
396 | <int>0x200B</int> <!-- ZERO WIDTH SPACE --> | |
397 | <int>0x200C</int> <!-- ZERO WIDTH NON-JOINER --> | |
398 | <int>0x200D</int> <!-- ZERO WIDTH JOINER --> | |
399 | <int>0x200E</int> <!-- LEFT-TO-RIGHT MARK --> | |
400 | <int>0x200F</int> <!-- RIGHT-TO-LEFT MARK --> | |
401 | <int>0x2028</int> <!-- LINE SEPARATOR --> | |
402 | <int>0x2029</int> <!-- PARAGRAPH SEPARATOR --> | |
403 | <int>0x202A</int> <!-- LEFT-TO-RIGHT EMBEDDING --> | |
404 | <int>0x202B</int> <!-- RIGHT-TO-LEFT EMBEDDING --> | |
405 | <int>0x202C</int> <!-- POP DIRECTIONAL FORMATTING --> | |
406 | <int>0x202D</int> <!-- LEFT-TO-RIGHT OVERRIDE --> | |
407 | <int>0x202E</int> <!-- RIGHT-TO-LEFT OVERRIDE --> | |
408 | <int>0x202F</int> <!-- NARROW NO-BREAK SPACE --> | |
409 | <int>0x205F</int> <!-- MEDIUM MATHEMATICAL SPACE --> | |
410 | <int>0x2060</int> <!-- WORD JOINER --> | |
411 | <int>0x2061</int> <!-- FUNCTION APPLICATION --> | |
412 | <int>0x2062</int> <!-- INVISIBLE TIMES --> | |
413 | <int>0x2063</int> <!-- INVISIBLE SEPARATOR --> | |
414 | <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING --> | |
415 | <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING --> | |
416 | <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING --> | |
417 | <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING --> | |
418 | <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES --> | |
419 | <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES --> | |
420 | <int>0x3000</int> <!-- IDEOGRAPHIC SPACE --> | |
421 | <int>0x3164</int> <!-- HANGUL FILLER --> | |
422 | <int>0xFEFF</int> <!-- ZERO WIDTH NO-BREAK SPACE --> | |
423 | <int>0xFFA0</int> <!-- HALFWIDTH HANGUL FILLER --> | |
424 | <int>0xFFF9</int> <!-- INTERLINEAR ANNOTATION ANCHOR --> | |
425 | <int>0xFFFA</int> <!-- INTERLINEAR ANNOTATION SEPARATOR --> | |
426 | <int>0xFFFB</int> <!-- INTERLINEAR ANNOTATION TERMINATOR --> | |
427 | </blank> | |
428 | <!-- | |
429 | Rescan configuration every 30 seconds when FcFontSetList is called | |
430 | --> | |
431 | <rescan> | |
432 | <int>30</int> | |
433 | </rescan> | |
434 | </config> | |
435 | ||
436 | </fontconfig> |