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