]> git.wh0rd.org - fontconfig.git/blob - fonts.conf.in
Change comments a bit in fonts.conf.in
[fontconfig.git] / fonts.conf.in
1 <?xml version="1.0"?>
2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3 <!-- /etc/fonts.conf file to configure system font access -->
4 <fontconfig>
5
6 <!--
7 The intent of this standard configuration file is to be adequate for
8 most environments. If you have a reasonably normal environment and
9 have found problems with this configuration, they are probably
10 things that others will also want fixed. Please send any suggested
11 changes to fonts@xfree86.org so that future releases can include
12 such changes.
13
14 Note that the normal 'make install' procedure for XFree86 is to
15 replace any existing fonts.conf file with the new version. Place
16 any local customizations in local.conf which this file references.
17
18 Keith Packard
19 -->
20
21 <!-- FONTPATH_START -->
22
23 <!--
24 Common X11R6 font directories
25 -->
26
27 <dir>/usr/X11R6/lib/X11/fonts</dir>
28 <dir>/usr/share/fonts</dir>
29 <dir>~/.fonts</dir>
30
31 <!-- FONTPATH_END -->
32
33 <!--
34 Enable sub-pixel rendering
35 <match target="font">
36 <test qual="all" name="rgba">
37 <const>unknown</const>
38 </test>
39 <edit name="rgba" mode="assign"><const>rgb</const></edit>
40 </match>
41 -->
42
43 <!--
44 Accept deprecated 'mono' alias, replacing it with 'monospace'
45 -->
46 <match target="pattern">
47 <test qual="any" name="family">
48 <string>mono</string>
49 </test>
50 <edit name="family" mode="assign">
51 <string>monospace</string>
52 </edit>
53 </match>
54
55 <!--
56 Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
57 -->
58 <match target="pattern">
59 <test qual="any" name="family">
60 <string>sans serif</string>
61 </test>
62 <edit name="family" mode="assign">
63 <string>sans-serif</string>
64 </edit>
65 </match>
66
67 <!--
68 Accept deprecated 'sans' alias, replacing it with 'sans-serif'
69 -->
70 <match target="pattern">
71 <test qual="any" name="family">
72 <string>sans</string>
73 </test>
74 <edit name="family" mode="assign">
75 <string>sans-serif</string>
76 </edit>
77 </match>
78
79 <!--
80 Mark common families with their generics so we'll get
81 something reasonable
82 -->
83
84 <!--
85 Serif faces
86 -->
87 <alias>
88 <family>Times</family>
89 <family>Times New Roman</family>
90 <family>Nimbus Roman No9 L</family>
91 <family>Luxi Serif</family>
92 <family>Kochi Mincho</family>
93 <family>AR PL SungtiL GB</family>
94 <family>AR PL Mingti2L Big5</family>
95 <family>Baekmuk Batang</family>
96 <default><family>serif</family></default>
97 </alias>
98 <!--
99 Sans-serif faces
100 -->
101 <alias>
102 <family>Helvetica</family>
103 <family>Arial</family>
104 <family>Verdana</family>
105 <family>Nimbus Sans L</family>
106 <family>Luxi Sans</family>
107 <family>Kochi Gothic</family>
108 <family>AR PL KaitiM GB</family>
109 <family>AR PL KaitiM Big5</family>
110 <family>Baekmuk Dotum</family>
111 <family>SimSun</family>
112 <default><family>sans-serif</family></default>
113 </alias>
114 <!--
115 Monospace faces
116 -->
117 <alias>
118 <family>Courier</family>
119 <family>Courier New</family>
120 <family>Andale Mono</family>
121 <family>Luxi Mono</family>
122 <family>Nimbus Mono L</family>
123 <family>NSimSun</family>
124 <default><family>monospace</family></default>
125 </alias>
126 <!--
127 If the font still has no generic name, add sans-serif
128 -->
129 <match target="pattern">
130 <test qual="all" name="family" compare="not_eq">
131 <string>sans-serif</string>
132 </test>
133 <test qual="all" name="family" compare="not_eq">
134 <string>serif</string>
135 </test>
136 <test qual="all" name="family" compare="not_eq">
137 <string>monospace</string>
138 </test>
139 <edit name="family" mode="append_last">
140 <string>sans-serif</string>
141 </edit>
142 </match>
143
144 <!--
145 Load per-user customization file
146 -->
147 <include ignore_missing="yes">~/.fonts.conf</include>
148
149 <!--
150 Load local system customization file
151 -->
152 <include ignore_missing="yes">local.conf</include>
153
154 <!--
155 Alias well known font names to available TrueType fonts
156 -->
157 <alias>
158 <family>Times</family>
159 <accept><family>Times New Roman</family></accept>
160 </alias>
161 <alias>
162 <family>Helvetica</family>
163 <accept><family>Verdana</family></accept>
164 </alias>
165 <alias>
166 <family>Arial</family>
167 <accept><family>Verdana</family></accept>
168 </alias>
169 <alias>
170 <family>Courier</family>
171 <accept><family>Courier New</family></accept>
172 </alias>
173
174 <!--
175 Provide required aliases for standard names
176 -->
177 <alias>
178 <family>serif</family>
179 <prefer>
180 <family>Times New Roman</family>
181 <family>Nimbus Roman No9 L</family>
182 <family>Luxi Serif</family>
183 <family>Times</family>
184 <family>Kochi Mincho</family>
185 <family>AR PL SungtiL GB</family>
186 <family>AR PL Mingti2L Big5</family>
187 <family>Baekmuk Batang</family>
188 </prefer>
189 </alias>
190 <alias>
191 <family>sans-serif</family>
192 <prefer>
193 <family>Verdana</family>
194 <family>Nimbus Sans L</family>
195 <family>Luxi Sans</family>
196 <family>Arial</family>
197 <family>Helvetica</family>
198 <family>Kochi Gothic</family>
199 <family>AR PL KaitiM GB</family>
200 <family>AR PL KaitiM Big5</family>
201 <family>Baekmuk Dotum</family>
202 <family>SimSun</family>
203 </prefer>
204 </alias>
205 <alias>
206 <family>monospace</family>
207 <prefer>
208 <family>Andale Mono</family>
209 <family>Courier New</family>
210 <family>Luxi Mono</family>
211 <family>Nimbus Mono L</family>
212 <family>Kochi Gothic</family>
213 <family>AR PL KaitiM GB</family>
214 <family>Baekmuk Dotum</family>
215 </prefer>
216 </alias>
217
218 <!--
219 Artificial oblique for fonts without an italic or oblique version
220 -->
221
222 <match target="font">
223 <!-- check to see if the font is roman -->
224 <test name="slant">
225 <const>roman</const>
226 </test>
227 <!-- check to see if the pattern requested non-roman -->
228 <test target="pattern" name="slant" compare="not_eq">
229 <const>roman</const>
230 </test>
231 <!-- multiply the matrix to slant the font -->
232 <edit name="matrix" mode="assign">
233 <times>
234 <name>matrix</name>
235 <matrix><double>1</double><double>.2</double>
236 <double>0</double><double>1</double>
237 </matrix>
238 </times>
239 </edit>
240 <!-- pretend the font is oblique now -->
241 <edit name="slant" mode="assign">
242 <const>oblique</const>
243 </edit>
244 </match>
245
246 <config>
247 <!--
248 These are the default Unicode chars that are expected to be blank
249 in fonts. All other blank chars are assumed to be broken and
250 won't appear in the resulting charsets
251 -->
252 <blank>
253 <int>0x0020</int> <!-- SPACE -->
254 <int>0x00a0</int> <!-- NO-BREAK SPACE -->
255 <int>0x00ad</int> <!-- SOFT HYPHEN -->
256 <int>0x115f</int> <!-- HANGUL CHOSEONG FILLER -->
257 <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER -->
258 <int>0x1680</int> <!-- OGHAM SPACE MARK -->
259 <int>0x2000</int> <!-- EN QUAD -->
260 <int>0x2001</int> <!-- EM QUAD -->
261 <int>0x2002</int> <!-- EN SPACE -->
262 <int>0x2003</int> <!-- EM SPACE -->
263 <int>0x2004</int> <!-- THREE-PER-EM SPACE -->
264 <int>0x2005</int> <!-- FOUR-PER-EM SPACE -->
265 <int>0x2006</int> <!-- SIX-PER-EM SPACE -->
266 <int>0x2007</int> <!-- FIGURE SPACE -->
267 <int>0x2008</int> <!-- PUNCTUATION SPACE -->
268 <int>0x2009</int> <!-- THIN SPACE -->
269 <int>0x200a</int> <!-- HAIR SPACE -->
270 <int>0x200b</int> <!-- ZERO WIDTH SPACE -->
271 <int>0x200c</int> <!-- ZERO WIDTH NON-JOINER -->
272 <int>0x200d</int> <!-- ZERO WIDTH JOINER -->
273 <int>0x200e</int> <!-- LEFT-TO-RIGHT MARK -->
274 <int>0x200f</int> <!-- RIGHT-TO-LEFT MARK -->
275 <int>0x2028</int> <!-- LINE SEPARATOR -->
276 <int>0x2029</int> <!-- PARAGRAPH SEPARATOR -->
277 <int>0x202a</int> <!-- LEFT-TO-RIGHT EMBEDDING -->
278 <int>0x202b</int> <!-- RIGHT-TO-LEFT EMBEDDING -->
279 <int>0x202c</int> <!-- POP DIRECTIONAL FORMATTING -->
280 <int>0x202d</int> <!-- LEFT-TO-RIGHT OVERRIDE -->
281 <int>0x202e</int> <!-- RIGHT-TO-LEFT OVERRIDE -->
282 <int>0x202f</int> <!-- NARROW NO-BREAK SPACE -->
283 <int>0x205f</int> <!-- MEDIUM MATHEMATICAL SPACE -->
284 <int>0x2060</int> <!-- WORD JOINER -->
285 <int>0x2061</int> <!-- FUNCTION APPLICATION -->
286 <int>0x2062</int> <!-- INVISIBLE TIMES -->
287 <int>0x2063</int> <!-- INVISIBLE SEPARATOR -->
288 <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING -->
289 <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING -->
290 <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING -->
291 <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING -->
292 <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES -->
293 <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES -->
294 <int>0x3000</int> <!-- IDEOGRAPHIC SPACE -->
295 <int>0x3164</int> <!-- HANGUL FILLER -->
296 <int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
297 <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER -->
298 <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
299 <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
300 <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
301 </blank>
302 <!--
303 Rescan configuration every 30 seconds when FcFontSetList is called
304 -->
305 <rescan>
306 <int>30</int>
307 </rescan>
308 </config>
309
310 </fontconfig>