]>
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 | ||
20fa60c9 | 24 | <!-- Font directory list configured on @FC_FONTDATE@ --> |
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</family> |
24330d27 | 77 | <family>Times New Roman</family> |
fb9545b1 KP |
78 | <family>Nimbus Roman No9 L</family> |
79 | <family>Luxi Serif</family> | |
06a48f20 KP |
80 | <family>Kochi Mincho</family> |
81 | <family>AR PL SungtiL GB</family> | |
899e3526 | 82 | <family>AR PL Mingti2L Big5</family> |
06a48f20 | 83 | <family>Baekmuk Batang</family> |
24330d27 KP |
84 | <default><family>serif</family></default> |
85 | </alias> | |
86 | <!-- | |
87 | Sans-serif faces | |
88 | --> | |
89 | <alias> | |
b1e98ed9 | 90 | <family>Bitstream Vera Sans</family> |
24330d27 | 91 | <family>Helvetica</family> |
24330d27 | 92 | <family>Arial</family> |
24330d27 | 93 | <family>Verdana</family> |
fb9545b1 KP |
94 | <family>Nimbus Sans L</family> |
95 | <family>Luxi Sans</family> | |
06a48f20 KP |
96 | <family>Kochi Gothic</family> |
97 | <family>AR PL KaitiM GB</family> | |
899e3526 | 98 | <family>AR PL KaitiM Big5</family> |
06a48f20 | 99 | <family>Baekmuk Dotum</family> |
899e3526 | 100 | <family>SimSun</family> |
24330d27 KP |
101 | <default><family>sans-serif</family></default> |
102 | </alias> | |
103 | <!-- | |
104 | Monospace faces | |
105 | --> | |
106 | <alias> | |
b1e98ed9 | 107 | <family>Bitstream Vera Sans Mono</family> |
24330d27 | 108 | <family>Courier</family> |
24330d27 | 109 | <family>Courier New</family> |
24330d27 | 110 | <family>Andale Mono</family> |
fb9545b1 | 111 | <family>Luxi Mono</family> |
06a48f20 | 112 | <family>Nimbus Mono L</family> |
899e3526 | 113 | <family>NSimSun</family> |
24330d27 KP |
114 | <default><family>monospace</family></default> |
115 | </alias> | |
116 | <!-- | |
117 | If the font still has no generic name, add sans-serif | |
118 | --> | |
119 | <match target="pattern"> | |
120 | <test qual="all" name="family" compare="not_eq"> | |
121 | <string>sans-serif</string> | |
122 | </test> | |
123 | <test qual="all" name="family" compare="not_eq"> | |
124 | <string>serif</string> | |
125 | </test> | |
126 | <test qual="all" name="family" compare="not_eq"> | |
127 | <string>monospace</string> | |
128 | </test> | |
129 | <edit name="family" mode="append_last"> | |
130 | <string>sans-serif</string> | |
131 | </edit> | |
132 | </match> | |
133 | ||
cc168fa6 KP |
134 | <!-- |
135 | Some Asian fonts misadvertise themselves as monospaced when | |
136 | in fact they are dual-spaced (half and full). This makes | |
137 | FreeType very confused as it forces all widths to match. | |
138 | Undo this magic by disabling the width forcing code --> | |
139 | <match target="font"> | |
140 | <test name="family"><string>GulimChe</string></test> | |
141 | <edit name="globaladvance"><bool>false</bool></edit> | |
142 | </match> | |
143 | ||
144 | <match target="font"> | |
145 | <test name="family"><string>DotumChe</string></test> | |
146 | <edit name="globaladvance"><bool>false</bool></edit> | |
147 | </match> | |
148 | ||
df43986c KP |
149 | <match target="font"> |
150 | <test name="family"><string>BatangChe</string></test> | |
151 | <edit name="globaladvance"><bool>false</bool></edit> | |
152 | </match> | |
153 | ||
154 | <match target="font"> | |
155 | <test name="family"><string>GungsuhChe</string></test> | |
156 | <edit name="globaladvance"><bool>false</bool></edit> | |
157 | </match> | |
158 | ||
b1e98ed9 KP |
159 | <!-- |
160 | The Bitstream Vera fonts have GASP entries suggesting that hinting be | |
161 | disabled below 8 ppem, but FreeType ignores those, preferring to use | |
162 | the data found in the instructed hints. The initial Vera release | |
163 | didn't include the right instructions in the 'prep' table. Fix this | |
164 | by disabling hinting manually at smaller sizes (< 8ppem) | |
165 | --> | |
166 | ||
167 | <match target="font"> | |
168 | <test name="family"> | |
169 | <string>Bitstream Vera Sans</string> | |
170 | </test> | |
171 | <test name="pixelsize" compare="less"> | |
172 | <double>7.5</double> | |
173 | </test> | |
174 | <edit name="hinting"> | |
175 | <bool>false</bool> | |
176 | </edit> | |
177 | </match> | |
178 | ||
179 | <match target="font"> | |
180 | <test name="family"> | |
181 | <string>Bitstream Vera Serif</string> | |
182 | </test> | |
183 | <test name="pixelsize" compare="less"> | |
184 | <double>7.5</double> | |
185 | </test> | |
186 | <edit name="hinting"> | |
187 | <bool>false</bool> | |
188 | </edit> | |
189 | </match> | |
190 | ||
191 | <match target="font"> | |
192 | <test name="family"> | |
193 | <string>Bitstream Vera Sans Mono</string> | |
194 | </test> | |
195 | <test name="pixelsize" compare="less"> | |
196 | <double>7.5</double> | |
197 | </test> | |
198 | <edit name="hinting"> | |
199 | <bool>false</bool> | |
200 | </edit> | |
201 | </match> | |
202 | ||
24330d27 KP |
203 | <!-- |
204 | Load per-user customization file | |
205 | --> | |
206 | <include ignore_missing="yes">~/.fonts.conf</include> | |
207 | ||
938bc633 KP |
208 | <!-- |
209 | Load local system customization file | |
210 | --> | |
211 | <include ignore_missing="yes">local.conf</include> | |
212 | ||
24330d27 KP |
213 | <!-- |
214 | Alias well known font names to available TrueType fonts | |
215 | --> | |
216 | <alias> | |
217 | <family>Times</family> | |
fb9545b1 | 218 | <accept><family>Times New Roman</family></accept> |
24330d27 KP |
219 | </alias> |
220 | <alias> | |
221 | <family>Helvetica</family> | |
fb9545b1 | 222 | <accept><family>Verdana</family></accept> |
24330d27 KP |
223 | </alias> |
224 | <alias> | |
225 | <family>Arial</family> | |
fb9545b1 | 226 | <accept><family>Verdana</family></accept> |
24330d27 KP |
227 | </alias> |
228 | <alias> | |
229 | <family>Courier</family> | |
fb9545b1 | 230 | <accept><family>Courier New</family></accept> |
24330d27 KP |
231 | </alias> |
232 | ||
b7a2e1e2 KP |
233 | <!-- |
234 | Check user preference to avoid bitmap fonts and replace | |
235 | bitmap face names with equivalent scalable fonts | |
236 | --> | |
237 | ||
238 | <match target="pattern"> | |
239 | <test name="prefer_outline"> | |
240 | <bool>true</bool> | |
241 | </test> | |
242 | <test name="family"> | |
243 | <string>Helvetica</string> | |
244 | </test> | |
245 | <edit name="family" mode="prepend" binding="same"> | |
246 | <string>Arial</string> | |
247 | </edit> | |
248 | </match> | |
249 | ||
250 | <match target="pattern"> | |
251 | <test name="prefer_outline"> | |
252 | <bool>true</bool> | |
253 | </test> | |
254 | <test name="family"> | |
255 | <string>Times</string> | |
256 | </test> | |
257 | <edit name="family" mode="prepend" binding="same"> | |
258 | <string>Times New Roman</string> | |
259 | </edit> | |
260 | </match> | |
24330d27 KP |
261 | <!-- |
262 | Provide required aliases for standard names | |
263 | --> | |
264 | <alias> | |
265 | <family>serif</family> | |
266 | <prefer> | |
b1e98ed9 | 267 | <family>Bitstream Vera Serif</family> |
24330d27 KP |
268 | <family>Times New Roman</family> |
269 | <family>Nimbus Roman No9 L</family> | |
270 | <family>Luxi Serif</family> | |
271 | <family>Times</family> | |
06a48f20 KP |
272 | <family>Kochi Mincho</family> |
273 | <family>AR PL SungtiL GB</family> | |
899e3526 | 274 | <family>AR PL Mingti2L Big5</family> |
06a48f20 | 275 | <family>Baekmuk Batang</family> |
24330d27 KP |
276 | </prefer> |
277 | </alias> | |
278 | <alias> | |
279 | <family>sans-serif</family> | |
280 | <prefer> | |
b1e98ed9 | 281 | <family>Bitstream Vera Sans</family> |
24330d27 KP |
282 | <family>Verdana</family> |
283 | <family>Nimbus Sans L</family> | |
284 | <family>Luxi Sans</family> | |
285 | <family>Arial</family> | |
286 | <family>Helvetica</family> | |
06a48f20 KP |
287 | <family>Kochi Gothic</family> |
288 | <family>AR PL KaitiM GB</family> | |
899e3526 | 289 | <family>AR PL KaitiM Big5</family> |
06a48f20 | 290 | <family>Baekmuk Dotum</family> |
899e3526 | 291 | <family>SimSun</family> |
24330d27 KP |
292 | </prefer> |
293 | </alias> | |
294 | <alias> | |
295 | <family>monospace</family> | |
296 | <prefer> | |
b1e98ed9 | 297 | <family>Bitstream Vera Sans Mono</family> |
24330d27 KP |
298 | <family>Andale Mono</family> |
299 | <family>Courier New</family> | |
24330d27 | 300 | <family>Luxi Mono</family> |
06a48f20 KP |
301 | <family>Nimbus Mono L</family> |
302 | <family>Kochi Gothic</family> | |
303 | <family>AR PL KaitiM GB</family> | |
304 | <family>Baekmuk Dotum</family> | |
24330d27 KP |
305 | </prefer> |
306 | </alias> | |
307 | ||
c689ec22 KP |
308 | <!-- |
309 | Artificial oblique for fonts without an italic or oblique version | |
310 | --> | |
311 | ||
312 | <match target="font"> | |
313 | <!-- check to see if the font is roman --> | |
938bc633 | 314 | <test name="slant"> |
c689ec22 KP |
315 | <const>roman</const> |
316 | </test> | |
317 | <!-- check to see if the pattern requested non-roman --> | |
938bc633 | 318 | <test target="pattern" name="slant" compare="not_eq"> |
c689ec22 KP |
319 | <const>roman</const> |
320 | </test> | |
321 | <!-- multiply the matrix to slant the font --> | |
322 | <edit name="matrix" mode="assign"> | |
323 | <times> | |
324 | <name>matrix</name> | |
ddde1797 | 325 | <matrix><double>1</double><double>0.2</double> |
c689ec22 KP |
326 | <double>0</double><double>1</double> |
327 | </matrix> | |
328 | </times> | |
329 | </edit> | |
330 | <!-- pretend the font is oblique now --> | |
331 | <edit name="slant" mode="assign"> | |
332 | <const>oblique</const> | |
333 | </edit> | |
334 | </match> | |
335 | ||
fb9545b1 | 336 | <config> |
24330d27 KP |
337 | <!-- |
338 | These are the default Unicode chars that are expected to be blank | |
339 | in fonts. All other blank chars are assumed to be broken and | |
340 | won't appear in the resulting charsets | |
341 | --> | |
fb9545b1 | 342 | <blank> |
9cc93576 KP |
343 | <int>0x0020</int> <!-- SPACE --> |
344 | <int>0x00a0</int> <!-- NO-BREAK SPACE --> | |
345 | <int>0x00ad</int> <!-- SOFT HYPHEN --> | |
346 | <int>0x115f</int> <!-- HANGUL CHOSEONG FILLER --> | |
347 | <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER --> | |
348 | <int>0x1680</int> <!-- OGHAM SPACE MARK --> | |
349 | <int>0x2000</int> <!-- EN QUAD --> | |
350 | <int>0x2001</int> <!-- EM QUAD --> | |
351 | <int>0x2002</int> <!-- EN SPACE --> | |
352 | <int>0x2003</int> <!-- EM SPACE --> | |
353 | <int>0x2004</int> <!-- THREE-PER-EM SPACE --> | |
354 | <int>0x2005</int> <!-- FOUR-PER-EM SPACE --> | |
355 | <int>0x2006</int> <!-- SIX-PER-EM SPACE --> | |
356 | <int>0x2007</int> <!-- FIGURE SPACE --> | |
357 | <int>0x2008</int> <!-- PUNCTUATION SPACE --> | |
358 | <int>0x2009</int> <!-- THIN SPACE --> | |
359 | <int>0x200a</int> <!-- HAIR SPACE --> | |
360 | <int>0x200b</int> <!-- ZERO WIDTH SPACE --> | |
361 | <int>0x200c</int> <!-- ZERO WIDTH NON-JOINER --> | |
362 | <int>0x200d</int> <!-- ZERO WIDTH JOINER --> | |
363 | <int>0x200e</int> <!-- LEFT-TO-RIGHT MARK --> | |
364 | <int>0x200f</int> <!-- RIGHT-TO-LEFT MARK --> | |
365 | <int>0x2028</int> <!-- LINE SEPARATOR --> | |
366 | <int>0x2029</int> <!-- PARAGRAPH SEPARATOR --> | |
367 | <int>0x202a</int> <!-- LEFT-TO-RIGHT EMBEDDING --> | |
368 | <int>0x202b</int> <!-- RIGHT-TO-LEFT EMBEDDING --> | |
369 | <int>0x202c</int> <!-- POP DIRECTIONAL FORMATTING --> | |
370 | <int>0x202d</int> <!-- LEFT-TO-RIGHT OVERRIDE --> | |
371 | <int>0x202e</int> <!-- RIGHT-TO-LEFT OVERRIDE --> | |
372 | <int>0x202f</int> <!-- NARROW NO-BREAK SPACE --> | |
373 | <int>0x205f</int> <!-- MEDIUM MATHEMATICAL SPACE --> | |
374 | <int>0x2060</int> <!-- WORD JOINER --> | |
375 | <int>0x2061</int> <!-- FUNCTION APPLICATION --> | |
376 | <int>0x2062</int> <!-- INVISIBLE TIMES --> | |
377 | <int>0x2063</int> <!-- INVISIBLE SEPARATOR --> | |
ce50587c KP |
378 | <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING --> |
379 | <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING --> | |
380 | <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING --> | |
381 | <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING --> | |
382 | <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES --> | |
383 | <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES --> | |
9cc93576 | 384 | <int>0x3000</int> <!-- IDEOGRAPHIC SPACE --> |
f9ad97b0 | 385 | <int>0x3164</int> <!-- HANGUL FILLER --> |
9cc93576 | 386 | <int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE --> |
10bac9b5 KP |
387 | <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER --> |
388 | <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR --> | |
389 | <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR --> | |
3d72cadd | 390 | <int>0xfffb</int> <!-- INTERLINEAR ANNOTATION TERMINATOR --> |
fb9545b1 KP |
391 | </blank> |
392 | <!-- | |
393 | Rescan configuration every 30 seconds when FcFontSetList is called | |
394 | --> | |
395 | <rescan> | |
396 | <int>30</int> | |
397 | </rescan> | |
398 | </config> | |
24330d27 KP |
399 | |
400 | </fontconfig> |