]> git.wh0rd.org - fontconfig.git/blob - fonts.conf.in
Adopt some RedHat suggestions for standard font configuration.
[fontconfig.git] / fonts.conf.in
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>Baekmuk Batang</family>
85 <family>FreeSerif</family>
86 <default><family>serif</family></default>
87 </alias>
88 <!--
89 Sans-serif faces
90 -->
91 <alias>
92 <family>Bitstream Vera Sans</family>
93 <family>Helvetica</family>
94 <family>Arial</family>
95 <family>Verdana</family>
96 <family>Albany AMT</family>
97 <family>Nimbus Sans L</family>
98 <family>Luxi Sans</family>
99 <family>Kochi Gothic</family>
100 <family>AR PL KaitiM GB</family>
101 <family>AR PL KaitiM Big5</family>
102 <family>Baekmuk Dotum</family>
103 <family>SimSun</family>
104 <family>FreeSans</family>
105 <default><family>sans-serif</family></default>
106 </alias>
107 <!--
108 Monospace faces
109 -->
110 <alias>
111 <family>Bitstream Vera Sans Mono</family>
112 <family>Courier</family>
113 <family>Courier New</family>
114 <family>Andale Mono</family>
115 <family>Luxi Mono</family>
116 <family>Cumberland AMT</family>
117 <family>Nimbus Mono L</family>
118 <family>NSimSun</family>
119 <family>FreeMono</family>
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>
139
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
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>
191
192 <match target="font">
193 <test name="family"><string>DotumChe</string></test>
194 <edit name="globaladvance"><bool>false</bool></edit>
195 </match>
196
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
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 -->
214
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>
226
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>
238
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>
250
251 <!--
252 Load per-user customization file
253 -->
254 <include ignore_missing="yes">~/.fonts.conf</include>
255
256 <!--
257 Load local system customization file
258 -->
259 <include ignore_missing="yes">conf.d</include>
260 <include ignore_missing="yes">local.conf</include>
261
262 <!--
263 Provide required aliases for standard names
264 -->
265 <alias>
266 <family>serif</family>
267 <prefer>
268 <family>Bitstream Vera Serif</family>
269 <family>Times New Roman</family>
270 <family>Thorndale AMT</family>
271 <family>Luxi Serif</family>
272 <family>Nimbus Roman No9 L</family>
273 <family>Times</family>
274 <family>Frank Ruehl</family>
275 <family>Kochi Mincho</family>
276 <family>AR PL SungtiL GB</family>
277 <family>AR PL Mingti2L Big5</family>
278 <family>Baekmuk Batang</family>
279 <family>FreeSerif</family>
280 </prefer>
281 </alias>
282 <alias>
283 <family>sans-serif</family>
284 <prefer>
285 <family>Bitstream Vera Sans</family>
286 <family>Verdana</family>
287 <family>Arial</family>
288 <family>Albany AMT</family>
289 <family>Luxi Sans</family>
290 <family>Nimbus Sans L</family>
291 <family>Helvetica</family>
292 <family>Nachlieli</family>
293 <family>Kochi Gothic</family>
294 <family>AR PL KaitiM GB</family>
295 <family>AR PL KaitiM Big5</family>
296 <family>Baekmuk Dotum</family>
297 <family>SimSun</family>
298 <family>FreeSans</family>
299 </prefer>
300 </alias>
301 <alias>
302 <family>monospace</family>
303 <prefer>
304 <family>Bitstream Vera Sans Mono</family>
305 <family>Andale Mono</family>
306 <family>Courier New</family>
307 <family>Cumberland AMT</family>
308 <family>Luxi Mono</family>
309 <family>Nimbus Mono L</family>
310 <family>Courier</family>
311 <family>Miriam Mono</family>
312 <family>Kochi Gothic</family>
313 <family>AR PL KaitiM GB</family>
314 <family>Baekmuk Dotum</family>
315 <family>FreeMono</family>
316 </prefer>
317 </alias>
318
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 -->
325 <test name="slant">
326 <const>roman</const>
327 </test>
328 <!-- check to see if the pattern requested non-roman -->
329 <test target="pattern" name="slant" compare="not_eq">
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>
336 <matrix><double>1</double><double>0.2</double>
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
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
367 <config>
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 -->
373 <blank>
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 -->
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 -->
415 <int>0x3000</int> <!-- IDEOGRAPHIC SPACE -->
416 <int>0x3164</int> <!-- HANGUL FILLER -->
417 <int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
418 <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER -->
419 <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
420 <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
421 <int>0xfffb</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
422 </blank>
423 <!--
424 Rescan configuration every 30 seconds when FcFontSetList is called
425 -->
426 <rescan>
427 <int>30</int>
428 </rescan>
429 </config>
430
431 </fontconfig>