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