]> git.wh0rd.org - fontconfig.git/blob - fonts.conf.in
Disable globaladvance for gulim fonts
[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 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>
150 </match>
151
152 <match target="font">
153 <test name="family"><string>DotumChe</string></test>
154 <edit name="globaladvance"><bool>false</bool></edit>
155 </match>
156
157 <!--
158 Load per-user customization file
159 -->
160 <include ignore_missing="yes">~/.fonts.conf</include>
161
162 <!--
163 Load local system customization file
164 -->
165 <include ignore_missing="yes">local.conf</include>
166
167 <!--
168 Alias well known font names to available TrueType fonts
169 -->
170 <alias>
171 <family>Times</family>
172 <accept><family>Times New Roman</family></accept>
173 </alias>
174 <alias>
175 <family>Helvetica</family>
176 <accept><family>Verdana</family></accept>
177 </alias>
178 <alias>
179 <family>Arial</family>
180 <accept><family>Verdana</family></accept>
181 </alias>
182 <alias>
183 <family>Courier</family>
184 <accept><family>Courier New</family></accept>
185 </alias>
186
187 <!--
188 Check user preference to avoid bitmap fonts and replace
189 bitmap face names with equivalent scalable fonts
190 -->
191
192 <match target="pattern">
193 <test name="prefer_outline">
194 <bool>true</bool>
195 </test>
196 <test name="family">
197 <string>Helvetica</string>
198 </test>
199 <edit name="family" mode="prepend" binding="same">
200 <string>Arial</string>
201 </edit>
202 </match>
203
204 <match target="pattern">
205 <test name="prefer_outline">
206 <bool>true</bool>
207 </test>
208 <test name="family">
209 <string>Times</string>
210 </test>
211 <edit name="family" mode="prepend" binding="same">
212 <string>Times New Roman</string>
213 </edit>
214 </match>
215 <!--
216 Provide required aliases for standard names
217 -->
218 <alias>
219 <family>serif</family>
220 <prefer>
221 <family>Times New Roman</family>
222 <family>Nimbus Roman No9 L</family>
223 <family>Luxi Serif</family>
224 <family>Times</family>
225 <family>Kochi Mincho</family>
226 <family>AR PL SungtiL GB</family>
227 <family>AR PL Mingti2L Big5</family>
228 <family>Baekmuk Batang</family>
229 </prefer>
230 </alias>
231 <alias>
232 <family>sans-serif</family>
233 <prefer>
234 <family>Verdana</family>
235 <family>Nimbus Sans L</family>
236 <family>Luxi Sans</family>
237 <family>Arial</family>
238 <family>Helvetica</family>
239 <family>Kochi Gothic</family>
240 <family>AR PL KaitiM GB</family>
241 <family>AR PL KaitiM Big5</family>
242 <family>Baekmuk Dotum</family>
243 <family>SimSun</family>
244 </prefer>
245 </alias>
246 <alias>
247 <family>monospace</family>
248 <prefer>
249 <family>Andale Mono</family>
250 <family>Courier New</family>
251 <family>Luxi Mono</family>
252 <family>Nimbus Mono L</family>
253 <family>Kochi Gothic</family>
254 <family>AR PL KaitiM GB</family>
255 <family>Baekmuk Dotum</family>
256 </prefer>
257 </alias>
258
259 <!--
260 Artificial oblique for fonts without an italic or oblique version
261 -->
262
263 <match target="font">
264 <!-- check to see if the font is roman -->
265 <test name="slant">
266 <const>roman</const>
267 </test>
268 <!-- check to see if the pattern requested non-roman -->
269 <test target="pattern" name="slant" compare="not_eq">
270 <const>roman</const>
271 </test>
272 <!-- multiply the matrix to slant the font -->
273 <edit name="matrix" mode="assign">
274 <times>
275 <name>matrix</name>
276 <matrix><double>1</double><double>.2</double>
277 <double>0</double><double>1</double>
278 </matrix>
279 </times>
280 </edit>
281 <!-- pretend the font is oblique now -->
282 <edit name="slant" mode="assign">
283 <const>oblique</const>
284 </edit>
285 </match>
286
287 <config>
288 <!--
289 These are the default Unicode chars that are expected to be blank
290 in fonts. All other blank chars are assumed to be broken and
291 won't appear in the resulting charsets
292 -->
293 <blank>
294 <int>0x0020</int> <!-- SPACE -->
295 <int>0x00a0</int> <!-- NO-BREAK SPACE -->
296 <int>0x00ad</int> <!-- SOFT HYPHEN -->
297 <int>0x115f</int> <!-- HANGUL CHOSEONG FILLER -->
298 <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER -->
299 <int>0x1680</int> <!-- OGHAM SPACE MARK -->
300 <int>0x2000</int> <!-- EN QUAD -->
301 <int>0x2001</int> <!-- EM QUAD -->
302 <int>0x2002</int> <!-- EN SPACE -->
303 <int>0x2003</int> <!-- EM SPACE -->
304 <int>0x2004</int> <!-- THREE-PER-EM SPACE -->
305 <int>0x2005</int> <!-- FOUR-PER-EM SPACE -->
306 <int>0x2006</int> <!-- SIX-PER-EM SPACE -->
307 <int>0x2007</int> <!-- FIGURE SPACE -->
308 <int>0x2008</int> <!-- PUNCTUATION SPACE -->
309 <int>0x2009</int> <!-- THIN SPACE -->
310 <int>0x200a</int> <!-- HAIR SPACE -->
311 <int>0x200b</int> <!-- ZERO WIDTH SPACE -->
312 <int>0x200c</int> <!-- ZERO WIDTH NON-JOINER -->
313 <int>0x200d</int> <!-- ZERO WIDTH JOINER -->
314 <int>0x200e</int> <!-- LEFT-TO-RIGHT MARK -->
315 <int>0x200f</int> <!-- RIGHT-TO-LEFT MARK -->
316 <int>0x2028</int> <!-- LINE SEPARATOR -->
317 <int>0x2029</int> <!-- PARAGRAPH SEPARATOR -->
318 <int>0x202a</int> <!-- LEFT-TO-RIGHT EMBEDDING -->
319 <int>0x202b</int> <!-- RIGHT-TO-LEFT EMBEDDING -->
320 <int>0x202c</int> <!-- POP DIRECTIONAL FORMATTING -->
321 <int>0x202d</int> <!-- LEFT-TO-RIGHT OVERRIDE -->
322 <int>0x202e</int> <!-- RIGHT-TO-LEFT OVERRIDE -->
323 <int>0x202f</int> <!-- NARROW NO-BREAK SPACE -->
324 <int>0x205f</int> <!-- MEDIUM MATHEMATICAL SPACE -->
325 <int>0x2060</int> <!-- WORD JOINER -->
326 <int>0x2061</int> <!-- FUNCTION APPLICATION -->
327 <int>0x2062</int> <!-- INVISIBLE TIMES -->
328 <int>0x2063</int> <!-- INVISIBLE SEPARATOR -->
329 <int>0x206A</int> <!-- INHIBIT SYMMETRIC SWAPPING -->
330 <int>0x206B</int> <!-- ACTIVATE SYMMETRIC SWAPPING -->
331 <int>0x206C</int> <!-- INHIBIT ARABIC FORM SHAPING -->
332 <int>0x206D</int> <!-- ACTIVATE ARABIC FORM SHAPING -->
333 <int>0x206E</int> <!-- NATIONAL DIGIT SHAPES -->
334 <int>0x206F</int> <!-- NOMINAL DIGIT SHAPES -->
335 <int>0x3000</int> <!-- IDEOGRAPHIC SPACE -->
336 <int>0x3164</int> <!-- HANGUL FILLER -->
337 <int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE -->
338 <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER -->
339 <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR -->
340 <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR -->
341 <int>0xfffb</int> <!-- INTERLINEAR ANNOTATION TERMINATOR -->
342 </blank>
343 <!--
344 Rescan configuration every 30 seconds when FcFontSetList is called
345 -->
346 <rescan>
347 <int>30</int>
348 </rescan>
349 </config>
350
351 </fontconfig>