2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3 <!-- /etc/fonts/fonts.conf file to configure system font access -->
8 IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
9 LOCAL CHANGES BELONG IN 'local.conf'.
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 send any suggested
15 changes to fonts@xfree86.org so that future releases can include
18 Note that the normal 'make install' procedure for fontconfig is to
19 replace any existing fonts.conf file with the new version. Place
20 any local customizations in local.conf which this file references.
25 <!-- Font directory list configured on @FC_FONTDATE@ -->
27 <dir>@FC_DEFAULT_FONTS@</dir>
32 Enable sub-pixel rendering
34 <test qual="all" name="rgba">
35 <const>unknown</const>
37 <edit name="rgba" mode="assign"><const>rgb</const></edit>
42 Accept deprecated 'mono' alias, replacing it with 'monospace'
44 <match target="pattern">
45 <test qual="any" name="family">
48 <edit name="family" mode="assign">
49 <string>monospace</string>
54 Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
56 <match target="pattern">
57 <test qual="any" name="family">
58 <string>sans serif</string>
60 <edit name="family" mode="assign">
61 <string>sans-serif</string>
66 Accept deprecated 'sans' alias, replacing it with 'sans-serif'
68 <match target="pattern">
69 <test qual="any" name="family">
72 <edit name="family" mode="assign">
73 <string>sans-serif</string>
78 Mark common families with their generics so we'll get
86 <family>Times</family>
87 <family>Times New Roman</family>
88 <family>Nimbus Roman No9 L</family>
89 <family>Luxi Serif</family>
90 <family>Kochi Mincho</family>
91 <family>AR PL SungtiL GB</family>
92 <family>AR PL Mingti2L Big5</family>
93 <family>Baekmuk Batang</family>
94 <default><family>serif</family></default>
100 <family>Helvetica</family>
101 <family>Arial</family>
102 <family>Verdana</family>
103 <family>Nimbus Sans L</family>
104 <family>Luxi Sans</family>
105 <family>Kochi Gothic</family>
106 <family>AR PL KaitiM GB</family>
107 <family>AR PL KaitiM Big5</family>
108 <family>Baekmuk Dotum</family>
109 <family>SimSun</family>
110 <default><family>sans-serif</family></default>
116 <family>Courier</family>
117 <family>Courier New</family>
118 <family>Andale Mono</family>
119 <family>Luxi Mono</family>
120 <family>Nimbus Mono L</family>
121 <family>NSimSun</family>
122 <default><family>monospace</family></default>
125 If the font still has no generic name, add sans-serif
127 <match target="pattern">
128 <test qual="all" name="family" compare="not_eq">
129 <string>sans-serif</string>
131 <test qual="all" name="family" compare="not_eq">
132 <string>serif</string>
134 <test qual="all" name="family" compare="not_eq">
135 <string>monospace</string>
137 <edit name="family" mode="append_last">
138 <string>sans-serif</string>
143 Some Asian fonts misadvertise themselves as monospaced when
144 in fact they are dual-spaced (half and full). This makes
145 FreeType very confused as it forces all widths to match.
146 Undo this magic by disabling the width forcing code -->
147 <match target="font">
148 <test name="family"><string>GulimChe</string></test>
149 <edit name="globaladvance"><bool>false</bool></edit>
152 <match target="font">
153 <test name="family"><string>DotumChe</string></test>
154 <edit name="globaladvance"><bool>false</bool></edit>
157 <match target="font">
158 <test name="family"><string>BatangChe</string></test>
159 <edit name="globaladvance"><bool>false</bool></edit>
162 <match target="font">
163 <test name="family"><string>GungsuhChe</string></test>
164 <edit name="globaladvance"><bool>false</bool></edit>
168 Load per-user customization file
170 <include ignore_missing="yes">~/.fonts.conf</include>
173 Load local system customization file
175 <include ignore_missing="yes">local.conf</include>
178 Alias well known font names to available TrueType fonts
181 <family>Times</family>
182 <accept><family>Times New Roman</family></accept>
185 <family>Helvetica</family>
186 <accept><family>Verdana</family></accept>
189 <family>Arial</family>
190 <accept><family>Verdana</family></accept>
193 <family>Courier</family>
194 <accept><family>Courier New</family></accept>
198 Check user preference to avoid bitmap fonts and replace
199 bitmap face names with equivalent scalable fonts
202 <match target="pattern">
203 <test name="prefer_outline">
207 <string>Helvetica</string>
209 <edit name="family" mode="prepend" binding="same">
210 <string>Arial</string>
214 <match target="pattern">
215 <test name="prefer_outline">
219 <string>Times</string>
221 <edit name="family" mode="prepend" binding="same">
222 <string>Times New Roman</string>
226 Provide required aliases for standard names
229 <family>serif</family>
231 <family>Times New Roman</family>
232 <family>Nimbus Roman No9 L</family>
233 <family>Luxi Serif</family>
234 <family>Times</family>
235 <family>Kochi Mincho</family>
236 <family>AR PL SungtiL GB</family>
237 <family>AR PL Mingti2L Big5</family>
238 <family>Baekmuk Batang</family>
242 <family>sans-serif</family>
244 <family>Verdana</family>
245 <family>Nimbus Sans L</family>
246 <family>Luxi Sans</family>
247 <family>Arial</family>
248 <family>Helvetica</family>
249 <family>Kochi Gothic</family>
250 <family>AR PL KaitiM GB</family>
251 <family>AR PL KaitiM Big5</family>
252 <family>Baekmuk Dotum</family>
253 <family>SimSun</family>
257 <family>monospace</family>
259 <family>Andale Mono</family>
260 <family>Courier New</family>
261 <family>Luxi Mono</family>
262 <family>Nimbus Mono L</family>
263 <family>Kochi Gothic</family>
264 <family>AR PL KaitiM GB</family>
265 <family>Baekmuk Dotum</family>
270 Artificial oblique for fonts without an italic or oblique version
273 <match target="font">
274 <!-- check to see if the font is roman -->
278 <!-- check to see if the pattern requested non-roman -->
279 <test target="pattern" name="slant" compare="not_eq">
282 <!-- multiply the matrix to slant the font -->
283 <edit name="matrix" mode="assign">
286 <matrix><double>1</double><double>.2</double>
287 <double>0</double><double>1</double>
291 <!-- pretend the font is oblique now -->
292 <edit name="slant" mode="assign">
293 <const>oblique</const>
299 These are the default Unicode chars that are expected to be blank
300 in fonts. All other blank chars are assumed to be broken and
301 won't appear in the resulting charsets
304 <int>0x0020</int> <!-- SPACE -->
305 <int>0x00a0</int> <!-- NO-BREAK SPACE -->
306 <int>0x00ad</int> <!-- SOFT HYPHEN -->
307 <int>0x115f</int> <!-- HANGUL CHOSEONG FILLER -->
308 <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER -->
309 <int>0x1680</int> <!-- OGHAM SPACE MARK -->
310 <int>0x2000</int> <!-- EN QUAD -->
311 <int>0x2001</int> <!-- EM QUAD -->
312 <int>0x2002</int> <!-- EN SPACE -->
313 <int>0x2003</int> <!-- EM SPACE -->
314 <int>0x2004</int> <!-- THREE-PER-EM SPACE -->
315 <int>0x2005</int> <!-- FOUR-PER-EM SPACE -->
316 <int>0x2006</int> <!-- SIX-PER-EM SPACE -->
317 <int>0x2007</int> <!-- FIGURE SPACE -->
318 <int>0x2008</int> <!-- PUNCTUATION SPACE -->
319 <int>0x2009</int> <!-- THIN SPACE -->
320 <int>0x200a</int> <!-- HAIR SPACE -->
321 <int>0x200b</int> <!-- ZERO WIDTH SPACE -->
322 <int>0x200c</int> <!-- ZERO WIDTH NON-JOINER -->
323 <int>0x200d</int> <!-- ZERO WIDTH JOINER -->
324 <int>0x200e</int> <!-- LEFT-TO-RIGHT MARK -->
325 <int>0x200f</int> <!-- RIGHT-TO-LEFT MARK -->
326 <int>0x2028</int> <!-- LINE SEPARATOR -->
327 <int>0x2029</int> <!-- PARAGRAPH SEPARATOR -->
328 <int>0x202a</int> <!-- LEFT-TO-RIGHT EMBEDDING -->
329 <int>0x202b</int> <!-- RIGHT-TO-LEFT EMBEDDING -->
330 <int>0x202c</int> <!-- POP DIRECTIONAL FORMATTING -->
331 <int>0x202d</int> <!-- LEFT-TO-RIGHT OVERRIDE -->
332 <int>0x202e</int> <!-- RIGHT-TO-LEFT OVERRIDE -->
333 <int>0x202f</int> <!-- NARROW NO-BREAK SPACE -->
334 <int>0x205f</int> <!-- MEDIUM MATHEMATICAL SPACE -->
335 <int>0x2060</int> <!-- WORD JOINER -->
336 <int>0x2061</int> <!-- FUNCTION APPLICATION -->
337 <int>0x2062</int> <!-- INVISIBLE TIMES -->
338 <int>0x2063</int> <!-- INVISIBLE SEPARATOR -->
339 <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING -->
340 <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING -->
341 <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING -->
342 <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING -->
343 <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES -->
344 <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES -->
345 <int>0x3000</int> <!-- IDEOGRAPHIC SPACE -->
346 <int>0x3164</int> <!-- HANGUL FILLER -->
347 <int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
348 <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER -->
349 <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
350 <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
351 <int>0xfffb</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
354 Rescan configuration every 30 seconds when FcFontSetList is called