]>
Commit | Line | Data |
---|---|---|
24330d27 KP |
1 | <?xml version="1.0"?> |
2 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
302e07f1 | 3 | <!-- /etc/fonts/fonts.conf file to configure system font access --> |
24330d27 KP |
4 | <fontconfig> |
5 | ||
a6531d8c | 6 | <!-- |
302e07f1 KP |
7 | DO NOT EDIT THIS FILE. |
8 | IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED. | |
9 | LOCAL CHANGES BELONG IN 'local.conf'. | |
10 | ||
a6531d8c KP |
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 | |
ef82cce1 KP |
14 | things that others will also want fixed. Please submit any |
15 | problems to the fontconfig bugzilla system located at fontconfig.org | |
a6531d8c | 16 | |
302e07f1 | 17 | Note that the normal 'make install' procedure for fontconfig is to |
0ce819b6 KP |
18 | replace any existing fonts.conf file with the new version. Place |
19 | any local customizations in local.conf which this file references. | |
20 | ||
a6531d8c KP |
21 | Keith Packard |
22 | --> | |
23 | ||
c5a0b541 | 24 | <!-- Font directory list --> |
24330d27 | 25 | |
20fa60c9 KP |
26 | <dir>@FC_DEFAULT_FONTS@</dir> |
27 | @FC_FONTPATH@ | |
a6531d8c | 28 | <dir>~/.fonts</dir> |
24330d27 | 29 | |
24330d27 KP |
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 | ||
fa244f3d KP |
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 | ||
24330d27 KP |
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> | |
b1e98ed9 | 75 | <family>Bitstream Vera Serif</family> |
24330d27 | 76 | <family>Times New Roman</family> |
192296d8 KP |
77 | <family>Thorndale AMT</family> |
78 | <family>Times</family> | |
fb9545b1 KP |
79 | <family>Nimbus Roman No9 L</family> |
80 | <family>Luxi Serif</family> | |
06a48f20 KP |
81 | <family>Kochi Mincho</family> |
82 | <family>AR PL SungtiL GB</family> | |
899e3526 | 83 | <family>AR PL Mingti2L Big5</family> |
e5871b5c KP |
84 | <family>Baekmuk Batang</family> |
85 | <family>FreeSerif</family> | |
24330d27 KP |
86 | <default><family>serif</family></default> |
87 | </alias> | |
88 | <!-- | |
89 | Sans-serif faces | |
90 | --> | |
91 | <alias> | |
b1e98ed9 | 92 | <family>Bitstream Vera Sans</family> |
24330d27 | 93 | <family>Helvetica</family> |
24330d27 | 94 | <family>Arial</family> |
24330d27 | 95 | <family>Verdana</family> |
192296d8 | 96 | <family>Albany AMT</family> |
fb9545b1 KP |
97 | <family>Nimbus Sans L</family> |
98 | <family>Luxi Sans</family> | |
06a48f20 KP |
99 | <family>Kochi Gothic</family> |
100 | <family>AR PL KaitiM GB</family> | |
899e3526 | 101 | <family>AR PL KaitiM Big5</family> |
06a48f20 | 102 | <family>Baekmuk Dotum</family> |
899e3526 | 103 | <family>SimSun</family> |
e5871b5c | 104 | <family>FreeSans</family> |
24330d27 KP |
105 | <default><family>sans-serif</family></default> |
106 | </alias> | |
107 | <!-- | |
108 | Monospace faces | |
109 | --> | |
110 | <alias> | |
b1e98ed9 | 111 | <family>Bitstream Vera Sans Mono</family> |
24330d27 | 112 | <family>Courier</family> |
24330d27 | 113 | <family>Courier New</family> |
24330d27 | 114 | <family>Andale Mono</family> |
fb9545b1 | 115 | <family>Luxi Mono</family> |
192296d8 | 116 | <family>Cumberland AMT</family> |
06a48f20 | 117 | <family>Nimbus Mono L</family> |
899e3526 | 118 | <family>NSimSun</family> |
e5871b5c | 119 | <family>FreeMono</family> |
24330d27 KP |
120 | <default><family>monospace</family></default> |
121 | </alias> | |
122 | <!-- | |
123 | If the font still has no generic name, add sans-serif | |
124 | --> | |
125 | <match target="pattern"> | |
126 | <test qual="all" name="family" compare="not_eq"> | |
127 | <string>sans-serif</string> | |
128 | </test> | |
129 | <test qual="all" name="family" compare="not_eq"> | |
130 | <string>serif</string> | |
131 | </test> | |
132 | <test qual="all" name="family" compare="not_eq"> | |
133 | <string>monospace</string> | |
134 | </test> | |
135 | <edit name="family" mode="append_last"> | |
136 | <string>sans-serif</string> | |
137 | </edit> | |
138 | </match> | |
e5871b5c | 139 | |
192296d8 KP |
140 | <!-- |
141 | URW provides metric and shape compatible fonts for these 3 Adobe families | |
142 | Mark these as effective replacements by binding the replacement | |
143 | family names strongly | |
144 | --> | |
145 | <match target="pattern"> | |
146 | <test name="family"><string>Times</string></test> | |
147 | <edit name="family" mode="append" binding="same"> | |
148 | <string>Nimbus Roman No9 L</string> | |
149 | </edit> | |
150 | </match> | |
151 | <match target="pattern"> | |
152 | <test name="family"><string>Helvetica</string></test> | |
153 | <edit name="family" mode="append" binding="same"> | |
154 | <string>Nimbus Sans L</string> | |
155 | </edit> | |
156 | </match> | |
157 | <match target="pattern"> | |
158 | <test name="family"><string>Courier</string></test> | |
159 | <edit name="family" mode="append" binding="same"> | |
160 | <string>Nimbus Mono L</string> | |
161 | </edit> | |
162 | </match> | |
163 | ||
164 | <!-- | |
165 | AMT provides metric and shape compatible fonts for these three web font | |
166 | families. Bind them weakly as matching here is not as important as | |
167 | with web fonts. | |
168 | --> | |
169 | <alias> | |
170 | <family>Times New Roman</family> | |
171 | <accept><family>Thorndale AMT</family></accept> | |
172 | </alias | |
173 | <alias> | |
174 | <family>Arial</family> | |
175 | <accept><family>Albany AMT</family></accept> | |
176 | </alias | |
177 | <alias> | |
178 | <family>Courier New</family> | |
179 | <accept><family>Cumberland AMT</family></accept> | |
180 | </alias | |
181 | ||
cc168fa6 KP |
182 | <!-- |
183 | Some Asian fonts misadvertise themselves as monospaced when | |
184 | in fact they are dual-spaced (half and full). This makes | |
185 | FreeType very confused as it forces all widths to match. | |
186 | Undo this magic by disabling the width forcing code --> | |
187 | <match target="font"> | |
188 | <test name="family"><string>GulimChe</string></test> | |
189 | <edit name="globaladvance"><bool>false</bool></edit> | |
190 | </match> | |
e5871b5c | 191 | |
cc168fa6 KP |
192 | <match target="font"> |
193 | <test name="family"><string>DotumChe</string></test> | |
194 | <edit name="globaladvance"><bool>false</bool></edit> | |
195 | </match> | |
196 | ||
df43986c KP |
197 | <match target="font"> |
198 | <test name="family"><string>BatangChe</string></test> | |
199 | <edit name="globaladvance"><bool>false</bool></edit> | |
200 | </match> | |
201 | ||
202 | <match target="font"> | |
203 | <test name="family"><string>GungsuhChe</string></test> | |
204 | <edit name="globaladvance"><bool>false</bool></edit> | |
205 | </match> | |
206 | ||
b1e98ed9 KP |
207 | <!-- |
208 | The Bitstream Vera fonts have GASP entries suggesting that hinting be | |
209 | disabled below 8 ppem, but FreeType ignores those, preferring to use | |
210 | the data found in the instructed hints. The initial Vera release | |
211 | didn't include the right instructions in the 'prep' table. Fix this | |
212 | by disabling hinting manually at smaller sizes (< 8ppem) | |
213 | --> | |
e5871b5c | 214 | |
b1e98ed9 KP |
215 | <match target="font"> |
216 | <test name="family"> | |
217 | <string>Bitstream Vera Sans</string> | |
218 | </test> | |
219 | <test name="pixelsize" compare="less"> | |
220 | <double>7.5</double> | |
221 | </test> | |
222 | <edit name="hinting"> | |
223 | <bool>false</bool> | |
224 | </edit> | |
225 | </match> | |
e5871b5c | 226 | |
b1e98ed9 KP |
227 | <match target="font"> |
228 | <test name="family"> | |
229 | <string>Bitstream Vera Serif</string> | |
230 | </test> | |
231 | <test name="pixelsize" compare="less"> | |
232 | <double>7.5</double> | |
233 | </test> | |
234 | <edit name="hinting"> | |
235 | <bool>false</bool> | |
236 | </edit> | |
237 | </match> | |
e5871b5c | 238 | |
b1e98ed9 KP |
239 | <match target="font"> |
240 | <test name="family"> | |
241 | <string>Bitstream Vera Sans Mono</string> | |
242 | </test> | |
243 | <test name="pixelsize" compare="less"> | |
244 | <double>7.5</double> | |
245 | </test> | |
246 | <edit name="hinting"> | |
247 | <bool>false</bool> | |
248 | </edit> | |
249 | </match> | |
e5871b5c | 250 | |
24330d27 KP |
251 | <!-- |
252 | Load per-user customization file | |
253 | --> | |
254 | <include ignore_missing="yes">~/.fonts.conf</include> | |
255 | ||
938bc633 KP |
256 | <!-- |
257 | Load local system customization file | |
258 | --> | |
2d9c79c0 | 259 | <include ignore_missing="yes">conf.d</include> |
938bc633 KP |
260 | <include ignore_missing="yes">local.conf</include> |
261 | ||
24330d27 KP |
262 | <!-- |
263 | Provide required aliases for standard names | |
264 | --> | |
265 | <alias> | |
266 | <family>serif</family> | |
267 | <prefer> | |
b1e98ed9 | 268 | <family>Bitstream Vera Serif</family> |
24330d27 | 269 | <family>Times New Roman</family> |
192296d8 | 270 | <family>Thorndale AMT</family> |
24330d27 | 271 | <family>Luxi Serif</family> |
192296d8 | 272 | <family>Nimbus Roman No9 L</family> |
24330d27 | 273 | <family>Times</family> |
6d3a90a4 | 274 | <family>Frank Ruehl</family> |
06a48f20 KP |
275 | <family>Kochi Mincho</family> |
276 | <family>AR PL SungtiL GB</family> | |
899e3526 | 277 | <family>AR PL Mingti2L Big5</family> |
e5871b5c KP |
278 | <family>Baekmuk Batang</family> |
279 | <family>FreeSerif</family> | |
24330d27 KP |
280 | </prefer> |
281 | </alias> | |
282 | <alias> | |
283 | <family>sans-serif</family> | |
284 | <prefer> | |
b1e98ed9 | 285 | <family>Bitstream Vera Sans</family> |
24330d27 | 286 | <family>Verdana</family> |
24330d27 | 287 | <family>Arial</family> |
192296d8 KP |
288 | <family>Albany AMT</family> |
289 | <family>Luxi Sans</family> | |
290 | <family>Nimbus Sans L</family> | |
24330d27 | 291 | <family>Helvetica</family> |
6d3a90a4 | 292 | <family>Nachlieli</family> |
06a48f20 KP |
293 | <family>Kochi Gothic</family> |
294 | <family>AR PL KaitiM GB</family> | |
899e3526 | 295 | <family>AR PL KaitiM Big5</family> |
06a48f20 | 296 | <family>Baekmuk Dotum</family> |
899e3526 | 297 | <family>SimSun</family> |
e5871b5c | 298 | <family>FreeSans</family> |
24330d27 KP |
299 | </prefer> |
300 | </alias> | |
301 | <alias> | |
302 | <family>monospace</family> | |
303 | <prefer> | |
b1e98ed9 | 304 | <family>Bitstream Vera Sans Mono</family> |
24330d27 KP |
305 | <family>Andale Mono</family> |
306 | <family>Courier New</family> | |
192296d8 | 307 | <family>Cumberland AMT</family> |
24330d27 | 308 | <family>Luxi Mono</family> |
06a48f20 | 309 | <family>Nimbus Mono L</family> |
192296d8 | 310 | <family>Courier</family> |
6d3a90a4 | 311 | <family>Miriam Mono</family> |
06a48f20 KP |
312 | <family>Kochi Gothic</family> |
313 | <family>AR PL KaitiM GB</family> | |
314 | <family>Baekmuk Dotum</family> | |
e5871b5c | 315 | <family>FreeMono</family> |
24330d27 KP |
316 | </prefer> |
317 | </alias> | |
318 | ||
c689ec22 KP |
319 | <!-- |
320 | Artificial oblique for fonts without an italic or oblique version | |
321 | --> | |
322 | ||
323 | <match target="font"> | |
324 | <!-- check to see if the font is roman --> | |
938bc633 | 325 | <test name="slant"> |
c689ec22 KP |
326 | <const>roman</const> |
327 | </test> | |
328 | <!-- check to see if the pattern requested non-roman --> | |
938bc633 | 329 | <test target="pattern" name="slant" compare="not_eq"> |
c689ec22 KP |
330 | <const>roman</const> |
331 | </test> | |
332 | <!-- multiply the matrix to slant the font --> | |
333 | <edit name="matrix" mode="assign"> | |
334 | <times> | |
335 | <name>matrix</name> | |
ddde1797 | 336 | <matrix><double>1</double><double>0.2</double> |
c689ec22 KP |
337 | <double>0</double><double>1</double> |
338 | </matrix> | |
339 | </times> | |
340 | </edit> | |
341 | <!-- pretend the font is oblique now --> | |
342 | <edit name="slant" mode="assign"> | |
343 | <const>oblique</const> | |
344 | </edit> | |
345 | </match> | |
346 | ||
46a10637 KP |
347 | <!-- |
348 | Synthetic emboldening for fonts that do not have bold face available | |
349 | --> | |
350 | ||
351 | <match target="font"> | |
352 | <!-- check to see if the font is just regular --> | |
353 | <test name="weight" compare="less_eq"> | |
354 | <int>100</int> | |
355 | </test> | |
356 | <!-- check to see if the pattern requests bold --> | |
357 | <test target="pattern" name="weight" compare="more_eq"> | |
358 | <int>200</int> | |
359 | </test> | |
360 | <!-- set the embolden flag --> | |
361 | <edit name="embolden" mode="assign"> | |
362 | <bool>true</bool> | |
363 | </edit> | |
364 | </match> | |
365 | ||
366 | ||
fb9545b1 | 367 | <config> |
24330d27 KP |
368 | <!-- |
369 | These are the default Unicode chars that are expected to be blank | |
370 | in fonts. All other blank chars are assumed to be broken and | |
371 | won't appear in the resulting charsets | |
372 | --> | |
fb9545b1 | 373 | <blank> |
9cc93576 KP |
374 | <int>0x0020</int> <!-- SPACE --> |
375 | <int>0x00a0</int> <!-- NO-BREAK SPACE --> | |
376 | <int>0x00ad</int> <!-- SOFT HYPHEN --> | |
377 | <int>0x115f</int> <!-- HANGUL CHOSEONG FILLER --> | |
378 | <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER --> | |
379 | <int>0x1680</int> <!-- OGHAM SPACE MARK --> | |
380 | <int>0x2000</int> <!-- EN QUAD --> | |
381 | <int>0x2001</int> <!-- EM QUAD --> | |
382 | <int>0x2002</int> <!-- EN SPACE --> | |
383 | <int>0x2003</int> <!-- EM SPACE --> | |
384 | <int>0x2004</int> <!-- THREE-PER-EM SPACE --> | |
385 | <int>0x2005</int> <!-- FOUR-PER-EM SPACE --> | |
386 | <int>0x2006</int> <!-- SIX-PER-EM SPACE --> | |
387 | <int>0x2007</int> <!-- FIGURE SPACE --> | |
388 | <int>0x2008</int> <!-- PUNCTUATION SPACE --> | |
389 | <int>0x2009</int> <!-- THIN SPACE --> | |
390 | <int>0x200a</int> <!-- HAIR SPACE --> | |
391 | <int>0x200b</int> <!-- ZERO WIDTH SPACE --> | |
392 | <int>0x200c</int> <!-- ZERO WIDTH NON-JOINER --> | |
393 | <int>0x200d</int> <!-- ZERO WIDTH JOINER --> | |
394 | <int>0x200e</int> <!-- LEFT-TO-RIGHT MARK --> | |
395 | <int>0x200f</int> <!-- RIGHT-TO-LEFT MARK --> | |
396 | <int>0x2028</int> <!-- LINE SEPARATOR --> | |
397 | <int>0x2029</int> <!-- PARAGRAPH SEPARATOR --> | |
398 | <int>0x202a</int> <!-- LEFT-TO-RIGHT EMBEDDING --> | |
399 | <int>0x202b</int> <!-- RIGHT-TO-LEFT EMBEDDING --> | |
400 | <int>0x202c</int> <!-- POP DIRECTIONAL FORMATTING --> | |
401 | <int>0x202d</int> <!-- LEFT-TO-RIGHT OVERRIDE --> | |
402 | <int>0x202e</int> <!-- RIGHT-TO-LEFT OVERRIDE --> | |
403 | <int>0x202f</int> <!-- NARROW NO-BREAK SPACE --> | |
404 | <int>0x205f</int> <!-- MEDIUM MATHEMATICAL SPACE --> | |
405 | <int>0x2060</int> <!-- WORD JOINER --> | |
406 | <int>0x2061</int> <!-- FUNCTION APPLICATION --> | |
407 | <int>0x2062</int> <!-- INVISIBLE TIMES --> | |
408 | <int>0x2063</int> <!-- INVISIBLE SEPARATOR --> | |
ce50587c KP |
409 | <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING --> |
410 | <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING --> | |
411 | <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING --> | |
412 | <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING --> | |
413 | <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES --> | |
414 | <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES --> | |
9cc93576 | 415 | <int>0x3000</int> <!-- IDEOGRAPHIC SPACE --> |
f9ad97b0 | 416 | <int>0x3164</int> <!-- HANGUL FILLER --> |
9cc93576 | 417 | <int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE --> |
10bac9b5 KP |
418 | <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER --> |
419 | <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR --> | |
420 | <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR --> | |
3d72cadd | 421 | <int>0xfffb</int> <!-- INTERLINEAR ANNOTATION TERMINATOR --> |
fb9545b1 KP |
422 | </blank> |
423 | <!-- | |
424 | Rescan configuration every 30 seconds when FcFontSetList is called | |
425 | --> | |
426 | <rescan> | |
427 | <int>30</int> | |
428 | </rescan> | |
429 | </config> | |
24330d27 KP |
430 | |
431 | </fontconfig> |