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