]> git.wh0rd.org - fontconfig.git/blame - fonts.conf.in
Actually, just add URW fonts as aliases for all of the PostScript fonts.
[fontconfig.git] / fonts.conf.in
CommitLineData
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>
b17cf498 75 <family>DejaVu Serif</family>
b1e98ed9 76 <family>Bitstream Vera Serif</family>
24330d27 77 <family>Times New Roman</family>
192296d8
KP
78 <family>Thorndale AMT</family>
79 <family>Times</family>
fb9545b1
KP
80 <family>Nimbus Roman No9 L</family>
81 <family>Luxi Serif</family>
06a48f20
KP
82 <family>Kochi Mincho</family>
83 <family>AR PL SungtiL GB</family>
899e3526 84 <family>AR PL Mingti2L Big5</family>
2ba729ed 85 <family>MS 明朝</family>
e5871b5c
KP
86 <family>Baekmuk Batang</family>
87 <family>FreeSerif</family>
328929f5 88 <family>MgOpen Canonica</family>
24330d27
KP
89 <default><family>serif</family></default>
90 </alias>
91<!--
92 Sans-serif faces
93 -->
94 <alias>
b17cf498 95 <family>DejaVu Sans</family>
b1e98ed9 96 <family>Bitstream Vera Sans</family>
24330d27 97 <family>Helvetica</family>
24330d27 98 <family>Arial</family>
24330d27 99 <family>Verdana</family>
192296d8 100 <family>Albany AMT</family>
fb9545b1
KP
101 <family>Nimbus Sans L</family>
102 <family>Luxi Sans</family>
06a48f20
KP
103 <family>Kochi Gothic</family>
104 <family>AR PL KaitiM GB</family>
899e3526 105 <family>AR PL KaitiM Big5</family>
2ba729ed 106 <family>MS ゴシック</family>
06a48f20 107 <family>Baekmuk Dotum</family>
899e3526 108 <family>SimSun</family>
e5871b5c 109 <family>FreeSans</family>
328929f5 110 <family>MgOpen Modata</family>
24330d27
KP
111 <default><family>sans-serif</family></default>
112 </alias>
113<!--
114 Monospace faces
115 -->
116 <alias>
b17cf498 117 <family>DejaVu Sans Mono</family>
24330d27 118 <family>Courier</family>
24330d27 119 <family>Courier New</family>
24330d27 120 <family>Andale Mono</family>
fb9545b1 121 <family>Luxi Mono</family>
192296d8 122 <family>Cumberland AMT</family>
06a48f20 123 <family>Nimbus Mono L</family>
899e3526 124 <family>NSimSun</family>
e5871b5c 125 <family>FreeMono</family>
24330d27
KP
126 <default><family>monospace</family></default>
127 </alias>
128<!--
129 If the font still has no generic name, add sans-serif
130 -->
131 <match target="pattern">
132 <test qual="all" name="family" compare="not_eq">
133 <string>sans-serif</string>
134 </test>
135 <test qual="all" name="family" compare="not_eq">
136 <string>serif</string>
137 </test>
138 <test qual="all" name="family" compare="not_eq">
139 <string>monospace</string>
140 </test>
141 <edit name="family" mode="append_last">
142 <string>sans-serif</string>
143 </edit>
144 </match>
e5871b5c 145
192296d8 146<!--
b43dbbdc 147 URW provides metric and shape compatible fonts for these 10 Adobe families.
192296d8 148 -->
716ac8b8 149 <alias>
b43dbbdc
PL
150 <family>Avant Garde</family>
151 <accept><family>URW Gothic L</family></accept>
152 </alias>
153 <alias>
154 <family>Bookman</family>
155 <accept><family>URW Bookman L</family></accept>
156 </alias>
157 <alias>
158 <family>Courier</family>
159 <accept><family>Nimbus Mono L</family></accept>
716ac8b8
KP
160 </alias>
161 <alias>
162 <family>Helvetica</family>
163 <accept><family>Nimbus Sans L</family></accept>
164 </alias>
165 <alias>
b43dbbdc
PL
166 <family>New Century Schoolbook</family>
167 <accept><family>Century Schoolbook L</family></accept>
168 </alias>
169 <alias>
170 <family>Palatino</family>
171 <accept><family>URW Palladio L</family></accept>
172 </alias>
ca2556f2
PL
173 <alias>
174 <family>Symbol</family>
175 <accept><family>Standard Symbols L</family></accept>
176 </alias>
b43dbbdc
PL
177 <alias>
178 <family>Times</family>
179 <accept><family>Nimbus Roman No9 L</family></accept>
180 </alias>
181 <alias>
182 <family>Zapf Chancery</family>
183 <accept><family>URW Chancery L</family></accept>
184 </alias>
185 <alias>
186 <family>Zapf Dingbats</family>
187 <accept><family>Dingbats</family></accept>
188 </alias>
192296d8
KP
189
190<!--
191 AMT provides metric and shape compatible fonts for these three web font
716ac8b8 192 families.
192296d8
KP
193 -->
194 <alias>
195 <family>Times New Roman</family>
196 <accept><family>Thorndale AMT</family></accept>
2ba729ed 197 </alias>
192296d8
KP
198 <alias>
199 <family>Arial</family>
200 <accept><family>Albany AMT</family></accept>
2ba729ed 201 </alias>
192296d8
KP
202 <alias>
203 <family>Courier New</family>
204 <accept><family>Cumberland AMT</family></accept>
2ba729ed 205 </alias>
192296d8 206
cc168fa6
KP
207<!--
208 Some Asian fonts misadvertise themselves as monospaced when
209 in fact they are dual-spaced (half and full). This makes
210 FreeType very confused as it forces all widths to match.
211 Undo this magic by disabling the width forcing code -->
212 <match target="font">
213 <test name="family"><string>GulimChe</string></test>
214 <edit name="globaladvance"><bool>false</bool></edit>
215 </match>
e5871b5c 216
cc168fa6
KP
217 <match target="font">
218 <test name="family"><string>DotumChe</string></test>
219 <edit name="globaladvance"><bool>false</bool></edit>
220 </match>
221
df43986c
KP
222 <match target="font">
223 <test name="family"><string>BatangChe</string></test>
224 <edit name="globaladvance"><bool>false</bool></edit>
225 </match>
226
227 <match target="font">
228 <test name="family"><string>GungsuhChe</string></test>
229 <edit name="globaladvance"><bool>false</bool></edit>
230 </match>
231
b1e98ed9
KP
232<!--
233 The Bitstream Vera fonts have GASP entries suggesting that hinting be
234 disabled below 8 ppem, but FreeType ignores those, preferring to use
235 the data found in the instructed hints. The initial Vera release
236 didn't include the right instructions in the 'prep' table. Fix this
237 by disabling hinting manually at smaller sizes (< 8ppem)
238 -->
e5871b5c 239
b1e98ed9
KP
240 <match target="font">
241 <test name="family">
242 <string>Bitstream Vera Sans</string>
243 </test>
244 <test name="pixelsize" compare="less">
245 <double>7.5</double>
246 </test>
247 <edit name="hinting">
248 <bool>false</bool>
249 </edit>
250 </match>
e5871b5c 251
b1e98ed9
KP
252 <match target="font">
253 <test name="family">
254 <string>Bitstream Vera Serif</string>
255 </test>
256 <test name="pixelsize" compare="less">
257 <double>7.5</double>
258 </test>
259 <edit name="hinting">
260 <bool>false</bool>
261 </edit>
262 </match>
e5871b5c 263
b1e98ed9
KP
264 <match target="font">
265 <test name="family">
266 <string>Bitstream Vera Sans Mono</string>
267 </test>
268 <test name="pixelsize" compare="less">
269 <double>7.5</double>
270 </test>
271 <edit name="hinting">
272 <bool>false</bool>
273 </edit>
274 </match>
e5871b5c 275
24330d27
KP
276<!--
277 Load per-user customization file
278-->
279 <include ignore_missing="yes">~/.fonts.conf</include>
280
938bc633
KP
281<!--
282 Load local system customization file
283-->
2d9c79c0 284 <include ignore_missing="yes">conf.d</include>
938bc633
KP
285 <include ignore_missing="yes">local.conf</include>
286
24330d27
KP
287<!--
288 Provide required aliases for standard names
289-->
290 <alias>
291 <family>serif</family>
292 <prefer>
b17cf498 293 <family>DejaVu Serif</family>
b1e98ed9 294 <family>Bitstream Vera Serif</family>
24330d27 295 <family>Times New Roman</family>
192296d8 296 <family>Thorndale AMT</family>
24330d27 297 <family>Luxi Serif</family>
192296d8 298 <family>Nimbus Roman No9 L</family>
24330d27 299 <family>Times</family>
6d3a90a4 300 <family>Frank Ruehl</family>
328929f5
PL
301 <family>MgOpen Canonica</family>
302 <family>FreeSerif</family>
06a48f20
KP
303 <family>Kochi Mincho</family>
304 <family>AR PL SungtiL GB</family>
899e3526 305 <family>AR PL Mingti2L Big5</family>
2ba729ed 306 <family>MS 明朝</family>
e5871b5c 307 <family>Baekmuk Batang</family>
24330d27
KP
308 </prefer>
309 </alias>
310 <alias>
311 <family>sans-serif</family>
312 <prefer>
b17cf498 313 <family>DejaVu Sans</family>
b1e98ed9 314 <family>Bitstream Vera Sans</family>
24330d27 315 <family>Verdana</family>
24330d27 316 <family>Arial</family>
192296d8
KP
317 <family>Albany AMT</family>
318 <family>Luxi Sans</family>
319 <family>Nimbus Sans L</family>
24330d27 320 <family>Helvetica</family>
6d3a90a4 321 <family>Nachlieli</family>
328929f5
PL
322 <family>MgOpen Modata</family>
323 <family>FreeSans</family>
06a48f20
KP
324 <family>Kochi Gothic</family>
325 <family>AR PL KaitiM GB</family>
899e3526 326 <family>AR PL KaitiM Big5</family>
2ba729ed 327 <family>MS ゴシック</family>
06a48f20 328 <family>Baekmuk Dotum</family>
899e3526 329 <family>SimSun</family>
24330d27
KP
330 </prefer>
331 </alias>
332 <alias>
333 <family>monospace</family>
334 <prefer>
b17cf498 335 <family>DejaVu Sans Mono</family>
b1e98ed9 336 <family>Bitstream Vera Sans Mono</family>
24330d27
KP
337 <family>Andale Mono</family>
338 <family>Courier New</family>
192296d8 339 <family>Cumberland AMT</family>
24330d27 340 <family>Luxi Mono</family>
06a48f20 341 <family>Nimbus Mono L</family>
192296d8 342 <family>Courier</family>
6d3a90a4 343 <family>Miriam Mono</family>
328929f5 344 <family>FreeMono</family>
06a48f20
KP
345 <family>Kochi Gothic</family>
346 <family>AR PL KaitiM GB</family>
347 <family>Baekmuk Dotum</family>
24330d27
KP
348 </prefer>
349 </alias>
350
c689ec22
KP
351<!--
352 Artificial oblique for fonts without an italic or oblique version
353 -->
354
355 <match target="font">
356 <!-- check to see if the font is roman -->
938bc633 357 <test name="slant">
c689ec22
KP
358 <const>roman</const>
359 </test>
360 <!-- check to see if the pattern requested non-roman -->
938bc633 361 <test target="pattern" name="slant" compare="not_eq">
c689ec22
KP
362 <const>roman</const>
363 </test>
364 <!-- multiply the matrix to slant the font -->
365 <edit name="matrix" mode="assign">
366 <times>
367 <name>matrix</name>
ddde1797 368 <matrix><double>1</double><double>0.2</double>
c689ec22
KP
369 <double>0</double><double>1</double>
370 </matrix>
371 </times>
372 </edit>
373 <!-- pretend the font is oblique now -->
374 <edit name="slant" mode="assign">
375 <const>oblique</const>
376 </edit>
720298e7
PL
377 <!-- and disable embedded bitmaps for artificial oblique -->
378 <edit name="embeddedbitmap" mode="assign">
379 <bool>false</bool>
380 </edit>
c689ec22
KP
381 </match>
382
46a10637
KP
383<!--
384 Synthetic emboldening for fonts that do not have bold face available
385 -->
386
387 <match target="font">
388 <!-- check to see if the font is just regular -->
389 <test name="weight" compare="less_eq">
efa9f2bd 390 <const>medium</const>
46a10637
KP
391 </test>
392 <!-- check to see if the pattern requests bold -->
efa9f2bd
PL
393 <test target="pattern" name="weight" compare="more">
394 <const>medium</const>
46a10637 395 </test>
efa9f2bd
PL
396 <!--
397 set the embolden flag
398 needed for applications using cairo, e.g. gucharmap, gedit, ...
399 -->
46a10637
KP
400 <edit name="embolden" mode="assign">
401 <bool>true</bool>
402 </edit>
efa9f2bd
PL
403 <!--
404 set weight to bold
405 needed for applications using Xft directly, e.g. Firefox, ...
406 -->
407 <edit name="weight" mode="assign">
408 <const>bold</const>
409 </edit>
46a10637
KP
410 </match>
411
412
fb9545b1 413 <config>
24330d27
KP
414<!--
415 These are the default Unicode chars that are expected to be blank
416 in fonts. All other blank chars are assumed to be broken and
417 won't appear in the resulting charsets
418 -->
fb9545b1 419 <blank>
9cc93576 420 <int>0x0020</int> <!-- SPACE -->
8759822e
KP
421 <int>0x00A0</int> <!-- NO-BREAK SPACE -->
422 <int>0x00AD</int> <!-- SOFT HYPHEN -->
423 <int>0x034F</int> <!-- COMBINING GRAPHEME JOINER -->
424 <int>0x0600</int> <!-- ARABIC NUMBER SIGN -->
425 <int>0x0601</int> <!-- ARABIC SIGN SANAH -->
426 <int>0x0602</int> <!-- ARABIC FOOTNOTE MARKER -->
427 <int>0x0603</int> <!-- ARABIC SIGN SAFHA -->
428 <int>0x06DD</int> <!-- ARABIC END OF AYAH -->
429 <int>0x070F</int> <!-- SYRIAC ABBREVIATION MARK -->
430 <int>0x115F</int> <!-- HANGUL CHOSEONG FILLER -->
9cc93576
KP
431 <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER -->
432 <int>0x1680</int> <!-- OGHAM SPACE MARK -->
8759822e
KP
433 <int>0x17B4</int> <!-- KHMER VOWEL INHERENT AQ -->
434 <int>0x17B5</int> <!-- KHMER VOWEL INHERENT AA -->
435 <int>0x180E</int> <!-- MONGOLIAN VOWEL SEPARATOR -->
9cc93576
KP
436 <int>0x2000</int> <!-- EN QUAD -->
437 <int>0x2001</int> <!-- EM QUAD -->
438 <int>0x2002</int> <!-- EN SPACE -->
439 <int>0x2003</int> <!-- EM SPACE -->
440 <int>0x2004</int> <!-- THREE-PER-EM SPACE -->
441 <int>0x2005</int> <!-- FOUR-PER-EM SPACE -->
442 <int>0x2006</int> <!-- SIX-PER-EM SPACE -->
443 <int>0x2007</int> <!-- FIGURE SPACE -->
444 <int>0x2008</int> <!-- PUNCTUATION SPACE -->
445 <int>0x2009</int> <!-- THIN SPACE -->
8759822e
KP
446 <int>0x200A</int> <!-- HAIR SPACE -->
447 <int>0x200B</int> <!-- ZERO WIDTH SPACE -->
448 <int>0x200C</int> <!-- ZERO WIDTH NON-JOINER -->
449 <int>0x200D</int> <!-- ZERO WIDTH JOINER -->
450 <int>0x200E</int> <!-- LEFT-TO-RIGHT MARK -->
451 <int>0x200F</int> <!-- RIGHT-TO-LEFT MARK -->
9cc93576
KP
452 <int>0x2028</int> <!-- LINE SEPARATOR -->
453 <int>0x2029</int> <!-- PARAGRAPH SEPARATOR -->
8759822e
KP
454 <int>0x202A</int> <!-- LEFT-TO-RIGHT EMBEDDING -->
455 <int>0x202B</int> <!-- RIGHT-TO-LEFT EMBEDDING -->
456 <int>0x202C</int> <!-- POP DIRECTIONAL FORMATTING -->
457 <int>0x202D</int> <!-- LEFT-TO-RIGHT OVERRIDE -->
458 <int>0x202E</int> <!-- RIGHT-TO-LEFT OVERRIDE -->
459 <int>0x202F</int> <!-- NARROW NO-BREAK SPACE -->
460 <int>0x205F</int> <!-- MEDIUM MATHEMATICAL SPACE -->
9cc93576
KP
461 <int>0x2060</int> <!-- WORD JOINER -->
462 <int>0x2061</int> <!-- FUNCTION APPLICATION -->
463 <int>0x2062</int> <!-- INVISIBLE TIMES -->
464 <int>0x2063</int> <!-- INVISIBLE SEPARATOR -->
ce50587c
KP
465 <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING -->
466 <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING -->
467 <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING -->
468 <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING -->
469 <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES -->
470 <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES -->
9cc93576 471 <int>0x3000</int> <!-- IDEOGRAPHIC SPACE -->
f9ad97b0 472 <int>0x3164</int> <!-- HANGUL FILLER -->
8759822e
KP
473 <int>0xFEFF</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
474 <int>0xFFA0</int> <!-- HALFWIDTH HANGUL FILLER -->
475 <int>0xFFF9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
476 <int>0xFFFA</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
477 <int>0xFFFB</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
fb9545b1
KP
478 </blank>
479<!--
480 Rescan configuration every 30 seconds when FcFontSetList is called
481 -->
482 <rescan>
483 <int>30</int>
484 </rescan>
485 </config>
24330d27
KP
486
487</fontconfig>