]> git.wh0rd.org - fontconfig.git/blob - fonts.conf.in
Switch to automake
[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 send any suggested
15 changes to fonts@xfree86.org so that future releases can include
16 such changes.
17
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.
21
22 Keith Packard
23 -->
24
25 <!-- Font directory list configured on @FC_FONTDATE@ -->
26
27 <dir>@FC_DEFAULT_FONTS@</dir>
28 @FC_FONTPATH@
29 <dir>~/.fonts</dir>
30
31 <!--
32 Enable sub-pixel rendering
33 <match target="font">
34 <test qual="all" name="rgba">
35 <const>unknown</const>
36 </test>
37 <edit name="rgba" mode="assign"><const>rgb</const></edit>
38 </match>
39 -->
40
41 <!--
42 Accept deprecated 'mono' alias, replacing it with 'monospace'
43 -->
44 <match target="pattern">
45 <test qual="any" name="family">
46 <string>mono</string>
47 </test>
48 <edit name="family" mode="assign">
49 <string>monospace</string>
50 </edit>
51 </match>
52
53 <!--
54 Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
55 -->
56 <match target="pattern">
57 <test qual="any" name="family">
58 <string>sans serif</string>
59 </test>
60 <edit name="family" mode="assign">
61 <string>sans-serif</string>
62 </edit>
63 </match>
64
65 <!--
66 Accept deprecated 'sans' alias, replacing it with 'sans-serif'
67 -->
68 <match target="pattern">
69 <test qual="any" name="family">
70 <string>sans</string>
71 </test>
72 <edit name="family" mode="assign">
73 <string>sans-serif</string>
74 </edit>
75 </match>
76
77 <!--
78 Mark common families with their generics so we'll get
79 something reasonable
80 -->
81
82 <!--
83 Serif faces
84 -->
85 <alias>
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>
95 </alias>
96 <!--
97 Sans-serif faces
98 -->
99 <alias>
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>
111 </alias>
112 <!--
113 Monospace faces
114 -->
115 <alias>
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>
123 </alias>
124 <!--
125 If the font still has no generic name, add sans-serif
126 -->
127 <match target="pattern">
128 <test qual="all" name="family" compare="not_eq">
129 <string>sans-serif</string>
130 </test>
131 <test qual="all" name="family" compare="not_eq">
132 <string>serif</string>
133 </test>
134 <test qual="all" name="family" compare="not_eq">
135 <string>monospace</string>
136 </test>
137 <edit name="family" mode="append_last">
138 <string>sans-serif</string>
139 </edit>
140 </match>
141
142 <!--
143 Load per-user customization file
144 -->
145 <include ignore_missing="yes">~/.fonts.conf</include>
146
147 <!--
148 Load local system customization file
149 -->
150 <include ignore_missing="yes">local.conf</include>
151
152 <!--
153 Alias well known font names to available TrueType fonts
154 -->
155 <alias>
156 <family>Times</family>
157 <accept><family>Times New Roman</family></accept>
158 </alias>
159 <alias>
160 <family>Helvetica</family>
161 <accept><family>Verdana</family></accept>
162 </alias>
163 <alias>
164 <family>Arial</family>
165 <accept><family>Verdana</family></accept>
166 </alias>
167 <alias>
168 <family>Courier</family>
169 <accept><family>Courier New</family></accept>
170 </alias>
171
172 <!--
173 Check user preference to avoid bitmap fonts and replace
174 bitmap face names with equivalent scalable fonts
175 -->
176
177 <match target="pattern">
178 <test name="prefer_outline">
179 <bool>true</bool>
180 </test>
181 <test name="family">
182 <string>Helvetica</string>
183 </test>
184 <edit name="family" mode="prepend" binding="same">
185 <string>Arial</string>
186 </edit>
187 </match>
188
189 <match target="pattern">
190 <test name="prefer_outline">
191 <bool>true</bool>
192 </test>
193 <test name="family">
194 <string>Times</string>
195 </test>
196 <edit name="family" mode="prepend" binding="same">
197 <string>Times New Roman</string>
198 </edit>
199 </match>
200 <!--
201 Provide required aliases for standard names
202 -->
203 <alias>
204 <family>serif</family>
205 <prefer>
206 <family>Times New Roman</family>
207 <family>Nimbus Roman No9 L</family>
208 <family>Luxi Serif</family>
209 <family>Times</family>
210 <family>Kochi Mincho</family>
211 <family>AR PL SungtiL GB</family>
212 <family>AR PL Mingti2L Big5</family>
213 <family>Baekmuk Batang</family>
214 </prefer>
215 </alias>
216 <alias>
217 <family>sans-serif</family>
218 <prefer>
219 <family>Verdana</family>
220 <family>Nimbus Sans L</family>
221 <family>Luxi Sans</family>
222 <family>Arial</family>
223 <family>Helvetica</family>
224 <family>Kochi Gothic</family>
225 <family>AR PL KaitiM GB</family>
226 <family>AR PL KaitiM Big5</family>
227 <family>Baekmuk Dotum</family>
228 <family>SimSun</family>
229 </prefer>
230 </alias>
231 <alias>
232 <family>monospace</family>
233 <prefer>
234 <family>Andale Mono</family>
235 <family>Courier New</family>
236 <family>Luxi Mono</family>
237 <family>Nimbus Mono L</family>
238 <family>Kochi Gothic</family>
239 <family>AR PL KaitiM GB</family>
240 <family>Baekmuk Dotum</family>
241 </prefer>
242 </alias>
243
244 <!--
245 Artificial oblique for fonts without an italic or oblique version
246 -->
247
248 <match target="font">
249 <!-- check to see if the font is roman -->
250 <test name="slant">
251 <const>roman</const>
252 </test>
253 <!-- check to see if the pattern requested non-roman -->
254 <test target="pattern" name="slant" compare="not_eq">
255 <const>roman</const>
256 </test>
257 <!-- multiply the matrix to slant the font -->
258 <edit name="matrix" mode="assign">
259 <times>
260 <name>matrix</name>
261 <matrix><double>1</double><double>.2</double>
262 <double>0</double><double>1</double>
263 </matrix>
264 </times>
265 </edit>
266 <!-- pretend the font is oblique now -->
267 <edit name="slant" mode="assign">
268 <const>oblique</const>
269 </edit>
270 </match>
271
272 <config>
273 <!--
274 These are the default Unicode chars that are expected to be blank
275 in fonts. All other blank chars are assumed to be broken and
276 won't appear in the resulting charsets
277 -->
278 <blank>
279 <int>0x0020</int> <!-- SPACE -->
280 <int>0x00a0</int> <!-- NO-BREAK SPACE -->
281 <int>0x00ad</int> <!-- SOFT HYPHEN -->
282 <int>0x115f</int> <!-- HANGUL CHOSEONG FILLER -->
283 <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER -->
284 <int>0x1680</int> <!-- OGHAM SPACE MARK -->
285 <int>0x2000</int> <!-- EN QUAD -->
286 <int>0x2001</int> <!-- EM QUAD -->
287 <int>0x2002</int> <!-- EN SPACE -->
288 <int>0x2003</int> <!-- EM SPACE -->
289 <int>0x2004</int> <!-- THREE-PER-EM SPACE -->
290 <int>0x2005</int> <!-- FOUR-PER-EM SPACE -->
291 <int>0x2006</int> <!-- SIX-PER-EM SPACE -->
292 <int>0x2007</int> <!-- FIGURE SPACE -->
293 <int>0x2008</int> <!-- PUNCTUATION SPACE -->
294 <int>0x2009</int> <!-- THIN SPACE -->
295 <int>0x200a</int> <!-- HAIR SPACE -->
296 <int>0x200b</int> <!-- ZERO WIDTH SPACE -->
297 <int>0x200c</int> <!-- ZERO WIDTH NON-JOINER -->
298 <int>0x200d</int> <!-- ZERO WIDTH JOINER -->
299 <int>0x200e</int> <!-- LEFT-TO-RIGHT MARK -->
300 <int>0x200f</int> <!-- RIGHT-TO-LEFT MARK -->
301 <int>0x2028</int> <!-- LINE SEPARATOR -->
302 <int>0x2029</int> <!-- PARAGRAPH SEPARATOR -->
303 <int>0x202a</int> <!-- LEFT-TO-RIGHT EMBEDDING -->
304 <int>0x202b</int> <!-- RIGHT-TO-LEFT EMBEDDING -->
305 <int>0x202c</int> <!-- POP DIRECTIONAL FORMATTING -->
306 <int>0x202d</int> <!-- LEFT-TO-RIGHT OVERRIDE -->
307 <int>0x202e</int> <!-- RIGHT-TO-LEFT OVERRIDE -->
308 <int>0x202f</int> <!-- NARROW NO-BREAK SPACE -->
309 <int>0x205f</int> <!-- MEDIUM MATHEMATICAL SPACE -->
310 <int>0x2060</int> <!-- WORD JOINER -->
311 <int>0x2061</int> <!-- FUNCTION APPLICATION -->
312 <int>0x2062</int> <!-- INVISIBLE TIMES -->
313 <int>0x2063</int> <!-- INVISIBLE SEPARATOR -->
314 <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING -->
315 <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING -->
316 <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING -->
317 <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING -->
318 <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES -->
319 <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES -->
320 <int>0x3000</int> <!-- IDEOGRAPHIC SPACE -->
321 <int>0x3164</int> <!-- HANGUL FILLER -->
322 <int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
323 <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER -->
324 <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
325 <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
326 <int>0xfffb</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
327 </blank>
328 <!--
329 Rescan configuration every 30 seconds when FcFontSetList is called
330 -->
331 <rescan>
332 <int>30</int>
333 </rescan>
334 </config>
335
336 </fontconfig>