]> git.wh0rd.org - fontconfig.git/blame - fonts.conf.in
*** empty log message ***
[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
20fa60c9 24<!-- Font directory list configured on @FC_FONTDATE@ -->
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>
75 <family>Times</family>
24330d27 76 <family>Times New Roman</family>
fb9545b1
KP
77 <family>Nimbus Roman No9 L</family>
78 <family>Luxi Serif</family>
06a48f20
KP
79 <family>Kochi Mincho</family>
80 <family>AR PL SungtiL GB</family>
899e3526 81 <family>AR PL Mingti2L Big5</family>
06a48f20 82 <family>Baekmuk Batang</family>
24330d27
KP
83 <default><family>serif</family></default>
84 </alias>
85<!--
86 Sans-serif faces
87 -->
88 <alias>
89 <family>Helvetica</family>
24330d27 90 <family>Arial</family>
24330d27 91 <family>Verdana</family>
fb9545b1
KP
92 <family>Nimbus Sans L</family>
93 <family>Luxi Sans</family>
06a48f20
KP
94 <family>Kochi Gothic</family>
95 <family>AR PL KaitiM GB</family>
899e3526 96 <family>AR PL KaitiM Big5</family>
06a48f20 97 <family>Baekmuk Dotum</family>
899e3526 98 <family>SimSun</family>
24330d27
KP
99 <default><family>sans-serif</family></default>
100 </alias>
101<!--
102 Monospace faces
103 -->
104 <alias>
105 <family>Courier</family>
24330d27 106 <family>Courier New</family>
24330d27 107 <family>Andale Mono</family>
fb9545b1 108 <family>Luxi Mono</family>
06a48f20 109 <family>Nimbus Mono L</family>
899e3526 110 <family>NSimSun</family>
24330d27
KP
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
cc168fa6
KP
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
df43986c
KP
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
24330d27
KP
156<!--
157 Load per-user customization file
158-->
159 <include ignore_missing="yes">~/.fonts.conf</include>
160
938bc633
KP
161<!--
162 Load local system customization file
163-->
164 <include ignore_missing="yes">local.conf</include>
165
24330d27
KP
166<!--
167 Alias well known font names to available TrueType fonts
168-->
169 <alias>
170 <family>Times</family>
fb9545b1 171 <accept><family>Times New Roman</family></accept>
24330d27
KP
172 </alias>
173 <alias>
174 <family>Helvetica</family>
fb9545b1 175 <accept><family>Verdana</family></accept>
24330d27
KP
176 </alias>
177 <alias>
178 <family>Arial</family>
fb9545b1 179 <accept><family>Verdana</family></accept>
24330d27
KP
180 </alias>
181 <alias>
182 <family>Courier</family>
fb9545b1 183 <accept><family>Courier New</family></accept>
24330d27
KP
184 </alias>
185
b7a2e1e2
KP
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>
24330d27
KP
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>
06a48f20
KP
224 <family>Kochi Mincho</family>
225 <family>AR PL SungtiL GB</family>
899e3526 226 <family>AR PL Mingti2L Big5</family>
06a48f20 227 <family>Baekmuk Batang</family>
24330d27
KP
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>
06a48f20
KP
238 <family>Kochi Gothic</family>
239 <family>AR PL KaitiM GB</family>
899e3526 240 <family>AR PL KaitiM Big5</family>
06a48f20 241 <family>Baekmuk Dotum</family>
899e3526 242 <family>SimSun</family>
24330d27
KP
243 </prefer>
244 </alias>
245 <alias>
246 <family>monospace</family>
247 <prefer>
248 <family>Andale Mono</family>
249 <family>Courier New</family>
24330d27 250 <family>Luxi Mono</family>
06a48f20
KP
251 <family>Nimbus Mono L</family>
252 <family>Kochi Gothic</family>
253 <family>AR PL KaitiM GB</family>
254 <family>Baekmuk Dotum</family>
24330d27
KP
255 </prefer>
256 </alias>
257
c689ec22
KP
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 -->
938bc633 264 <test name="slant">
c689ec22
KP
265 <const>roman</const>
266 </test>
267 <!-- check to see if the pattern requested non-roman -->
938bc633 268 <test target="pattern" name="slant" compare="not_eq">
c689ec22
KP
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>
ddde1797 275 <matrix><double>1</double><double>0.2</double>
c689ec22
KP
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
fb9545b1 286 <config>
24330d27
KP
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 -->
fb9545b1 292 <blank>
9cc93576
KP
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 -->
ce50587c
KP
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 -->
9cc93576 334 <int>0x3000</int> <!-- IDEOGRAPHIC SPACE -->
f9ad97b0 335 <int>0x3164</int> <!-- HANGUL FILLER -->
9cc93576 336 <int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
10bac9b5
KP
337 <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER -->
338 <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
339 <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
3d72cadd 340 <int>0xfffb</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
fb9545b1
KP
341 </blank>
342<!--
343 Rescan configuration every 30 seconds when FcFontSetList is called
344 -->
345 <rescan>
346 <int>30</int>
347 </rescan>
348 </config>
24330d27
KP
349
350</fontconfig>