Add an alias 'Standard Symbols L' for 'Symbol'.
[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 submit any
15         problems to the fontconfig bugzilla system located at fontconfig.org
16
17         Note that the normal 'make install' procedure for fontconfig is to
18         replace any existing fonts.conf file with the new version.  Place
19         any local customizations in local.conf which this file references.
20
21         Keith Packard
22 -->
23
24 <!-- Font directory list -->
25
26         <dir>@FC_DEFAULT_FONTS@</dir>
27         @FC_FONTPATH@
28         <dir>~/.fonts</dir>
29
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
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
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>DejaVu Serif</family>
76                 <family>Bitstream Vera Serif</family>
77                 <family>Times New Roman</family>
78                 <family>Thorndale AMT</family>
79                 <family>Times</family>
80                 <family>Nimbus Roman No9 L</family>
81                 <family>Luxi Serif</family>
82                 <family>Kochi Mincho</family>
83                 <family>AR PL SungtiL GB</family>
84                 <family>AR PL Mingti2L Big5</family>
85                 <family>MS 明朝</family>
86                 <family>Baekmuk Batang</family>
87                 <family>FreeSerif</family>
88                 <family>MgOpen Canonica</family>
89                 <default><family>serif</family></default>
90         </alias>
91 <!--
92   Sans-serif faces
93  -->
94         <alias>
95                 <family>DejaVu Sans</family>
96                 <family>Bitstream Vera Sans</family>
97                 <family>Helvetica</family>
98                 <family>Arial</family>
99                 <family>Verdana</family>
100                 <family>Albany AMT</family>
101                 <family>Nimbus Sans L</family>
102                 <family>Luxi Sans</family>
103                 <family>Kochi Gothic</family>
104                 <family>AR PL KaitiM GB</family>
105                 <family>AR PL KaitiM Big5</family>
106                 <family>MS ゴシック</family>
107                 <family>Baekmuk Dotum</family>
108                 <family>SimSun</family>
109                 <family>FreeSans</family>
110                 <family>MgOpen Modata</family>
111                 <default><family>sans-serif</family></default>
112         </alias>
113 <!--
114   Monospace faces
115  -->
116         <alias>
117                 <family>DejaVu Sans Mono</family>
118                 <family>Courier</family>
119                 <family>Courier New</family>
120                 <family>Andale Mono</family>
121                 <family>Luxi Mono</family>
122                 <family>Cumberland AMT</family>
123                 <family>Nimbus Mono L</family>
124                 <family>NSimSun</family>
125                 <family>FreeMono</family>
126                 <default><family>monospace</family></default>
127         </alias>
128 <!--
129   If the font still has no generic name, add sans-serif
130  -->
131         <match target="pattern">
132                 <test qual="all" name="family" compare="not_eq">
133                         <string>sans-serif</string>
134                 </test>
135                 <test qual="all" name="family" compare="not_eq">
136                         <string>serif</string>
137                 </test>
138                 <test qual="all" name="family" compare="not_eq">
139                         <string>monospace</string>
140                 </test>
141                 <edit name="family" mode="append_last">
142                         <string>sans-serif</string>
143                 </edit>
144         </match>
145
146 <!--
147   URW provides metric and shape compatible fonts for these 4 Adobe families.
148   -->
149         <alias>
150           <family>Times</family>
151           <accept><family>Nimbus Roman No9 L</family></accept>
152         </alias>
153         <alias>
154           <family>Helvetica</family>
155           <accept><family>Nimbus Sans L</family></accept>
156         </alias>
157         <alias>
158           <family>Courier</family>
159           <accept><family>Nimbus Mono L</family></accept>
160         </alias>
161         <alias>
162           <family>Symbol</family>
163           <accept><family>Standard Symbols L</family></accept>
164         </alias>
165
166 <!--
167  AMT provides metric and shape compatible fonts for these three web font
168  families.
169  -->
170         <alias>
171                 <family>Times New Roman</family>
172                 <accept><family>Thorndale AMT</family></accept>
173         </alias>
174         <alias>
175                 <family>Arial</family>
176                 <accept><family>Albany AMT</family></accept>
177         </alias>
178         <alias>
179                 <family>Courier New</family>
180                 <accept><family>Cumberland AMT</family></accept>
181         </alias>
182  
183 <!--
184   Some Asian fonts misadvertise themselves as monospaced when
185   in fact they are dual-spaced (half and full).  This makes
186   FreeType very confused as it forces all widths to match.
187   Undo this magic by disabling the width forcing code -->
188         <match target="font">
189                 <test name="family"><string>GulimChe</string></test>
190                 <edit name="globaladvance"><bool>false</bool></edit>
191         </match>
192
193         <match target="font">
194                 <test name="family"><string>DotumChe</string></test>
195                 <edit name="globaladvance"><bool>false</bool></edit>
196         </match>
197
198         <match target="font">
199                 <test name="family"><string>BatangChe</string></test>
200                 <edit name="globaladvance"><bool>false</bool></edit>
201         </match>
202
203         <match target="font">
204                 <test name="family"><string>GungsuhChe</string></test>
205                 <edit name="globaladvance"><bool>false</bool></edit>
206         </match>
207
208 <!-- 
209         The Bitstream Vera fonts have GASP entries suggesting that hinting be
210         disabled below 8 ppem, but FreeType ignores those, preferring to use
211         the data found in the instructed hints.  The initial Vera release
212         didn't include the right instructions in the 'prep' table. Fix this
213         by disabling hinting manually at smaller sizes (< 8ppem)
214  -->
215
216         <match target="font">
217                 <test name="family">
218                         <string>Bitstream Vera Sans</string>
219                 </test>
220                 <test name="pixelsize" compare="less">
221                         <double>7.5</double>
222                 </test>
223                 <edit name="hinting">
224                         <bool>false</bool>
225                 </edit>
226         </match>
227
228         <match target="font">
229                 <test name="family">
230                         <string>Bitstream Vera Serif</string>
231                 </test>
232                 <test name="pixelsize" compare="less">
233                         <double>7.5</double>
234                 </test>
235                 <edit name="hinting">
236                         <bool>false</bool>
237                 </edit>
238         </match>
239
240         <match target="font">
241                 <test name="family">
242                         <string>Bitstream Vera Sans Mono</string>
243                 </test>
244                 <test name="pixelsize" compare="less">
245                         <double>7.5</double>
246                 </test>
247                 <edit name="hinting">
248                         <bool>false</bool>
249                 </edit>
250         </match>
251
252 <!--
253   Load per-user customization file
254 -->
255         <include ignore_missing="yes">~/.fonts.conf</include>
256
257 <!--
258   Load local system customization file
259 -->
260         <include ignore_missing="yes">conf.d</include>
261         <include ignore_missing="yes">local.conf</include>
262
263 <!--
264   Provide required aliases for standard names
265 -->
266         <alias>
267                 <family>serif</family>
268                 <prefer>
269                         <family>DejaVu Serif</family>
270                         <family>Bitstream Vera Serif</family>
271                         <family>Times New Roman</family>
272                         <family>Thorndale AMT</family>
273                         <family>Luxi Serif</family>
274                         <family>Nimbus Roman No9 L</family>
275                         <family>Times</family>
276                         <family>Frank Ruehl</family>
277                         <family>MgOpen Canonica</family>
278                         <family>FreeSerif</family>
279                         <family>Kochi Mincho</family>
280                         <family>AR PL SungtiL GB</family>
281                         <family>AR PL Mingti2L Big5</family>
282                         <family>MS 明朝</family>
283                         <family>Baekmuk Batang</family>
284                 </prefer>
285         </alias>
286         <alias>
287                 <family>sans-serif</family>
288                 <prefer>
289                         <family>DejaVu Sans</family>
290                         <family>Bitstream Vera Sans</family>
291                         <family>Verdana</family>
292                         <family>Arial</family>
293                         <family>Albany AMT</family>
294                         <family>Luxi Sans</family>
295                         <family>Nimbus Sans L</family>
296                         <family>Helvetica</family>
297                         <family>Nachlieli</family>
298                         <family>MgOpen Modata</family>
299                         <family>FreeSans</family>
300                         <family>Kochi Gothic</family>
301                         <family>AR PL KaitiM GB</family>
302                         <family>AR PL KaitiM Big5</family>
303                         <family>MS ゴシック</family>
304                         <family>Baekmuk Dotum</family>
305                         <family>SimSun</family>
306                 </prefer>
307         </alias>
308         <alias>
309                 <family>monospace</family>
310                 <prefer>
311                         <family>DejaVu Sans Mono</family>
312                         <family>Bitstream Vera Sans Mono</family>
313                         <family>Andale Mono</family>
314                         <family>Courier New</family>
315                         <family>Cumberland AMT</family>
316                         <family>Luxi Mono</family>
317                         <family>Nimbus Mono L</family>
318                         <family>Courier</family>
319                         <family>Miriam Mono</family>
320                         <family>FreeMono</family>
321                         <family>Kochi Gothic</family>
322                         <family>AR PL KaitiM GB</family>
323                         <family>Baekmuk Dotum</family>
324                 </prefer>
325         </alias>
326
327 <!-- 
328  Artificial oblique for fonts without an italic or oblique version
329  -->
330  
331         <match target="font">
332                 <!-- check to see if the font is roman -->
333                 <test name="slant">
334                         <const>roman</const>
335                 </test>
336                 <!-- check to see if the pattern requested non-roman -->
337                 <test target="pattern" name="slant" compare="not_eq">
338                         <const>roman</const>
339                 </test>
340                 <!-- multiply the matrix to slant the font -->
341                 <edit name="matrix" mode="assign">
342                         <times>
343                                 <name>matrix</name>
344                                 <matrix><double>1</double><double>0.2</double>
345                                         <double>0</double><double>1</double>
346                                 </matrix>
347                         </times>
348                 </edit>
349                 <!-- pretend the font is oblique now -->
350                 <edit name="slant" mode="assign">
351                         <const>oblique</const>
352                 </edit>
353                 <!-- and disable embedded bitmaps for artificial oblique -->
354                 <edit name="embeddedbitmap" mode="assign">
355                         <bool>false</bool>
356                 </edit>
357         </match>
358
359 <!--
360  Synthetic emboldening for fonts that do not have bold face available
361  -->
362
363         <match target="font">
364                 <!-- check to see if the font is just regular -->
365                 <test name="weight" compare="less_eq">
366                         <const>medium</const>
367                 </test>
368                 <!-- check to see if the pattern requests bold -->
369                 <test target="pattern" name="weight" compare="more">
370                         <const>medium</const>
371                 </test>
372                 <!--
373                   set the embolden flag
374                   needed for applications using cairo, e.g. gucharmap, gedit, ...
375                 -->
376                 <edit name="embolden" mode="assign">
377                         <bool>true</bool>
378                 </edit>
379                 <!--
380                  set weight to bold
381                  needed for applications using Xft directly, e.g. Firefox, ...
382                 -->
383                 <edit name="weight" mode="assign">
384                         <const>bold</const>
385                 </edit>
386         </match>
387
388
389         <config>
390 <!--
391   These are the default Unicode chars that are expected to be blank
392   in fonts.  All other blank chars are assumed to be broken and
393   won't appear in the resulting charsets
394  -->
395                 <blank>
396                         <int>0x0020</int>       <!-- SPACE -->
397                         <int>0x00A0</int>       <!-- NO-BREAK SPACE -->
398                         <int>0x00AD</int>       <!-- SOFT HYPHEN -->
399                         <int>0x034F</int>       <!-- COMBINING GRAPHEME JOINER -->
400                         <int>0x0600</int>       <!-- ARABIC NUMBER SIGN -->
401                         <int>0x0601</int>       <!-- ARABIC SIGN SANAH -->
402                         <int>0x0602</int>       <!-- ARABIC FOOTNOTE MARKER -->
403                         <int>0x0603</int>       <!-- ARABIC SIGN SAFHA -->
404                         <int>0x06DD</int>       <!-- ARABIC END OF AYAH -->
405                         <int>0x070F</int>       <!-- SYRIAC ABBREVIATION MARK -->
406                         <int>0x115F</int>       <!-- HANGUL CHOSEONG FILLER -->
407                         <int>0x1160</int>       <!-- HANGUL JUNGSEONG FILLER -->
408                         <int>0x1680</int>       <!-- OGHAM SPACE MARK -->
409                         <int>0x17B4</int>       <!-- KHMER VOWEL INHERENT AQ -->
410                         <int>0x17B5</int>       <!-- KHMER VOWEL INHERENT AA -->
411                         <int>0x180E</int>       <!-- MONGOLIAN VOWEL SEPARATOR -->
412                         <int>0x2000</int>       <!-- EN QUAD -->
413                         <int>0x2001</int>       <!-- EM QUAD -->
414                         <int>0x2002</int>       <!-- EN SPACE -->
415                         <int>0x2003</int>       <!-- EM SPACE -->
416                         <int>0x2004</int>       <!-- THREE-PER-EM SPACE -->
417                         <int>0x2005</int>       <!-- FOUR-PER-EM SPACE -->
418                         <int>0x2006</int>       <!-- SIX-PER-EM SPACE -->
419                         <int>0x2007</int>       <!-- FIGURE SPACE -->
420                         <int>0x2008</int>       <!-- PUNCTUATION SPACE -->
421                         <int>0x2009</int>       <!-- THIN SPACE -->
422                         <int>0x200A</int>       <!-- HAIR SPACE -->
423                         <int>0x200B</int>       <!-- ZERO WIDTH SPACE -->
424                         <int>0x200C</int>       <!-- ZERO WIDTH NON-JOINER -->
425                         <int>0x200D</int>       <!-- ZERO WIDTH JOINER -->
426                         <int>0x200E</int>       <!-- LEFT-TO-RIGHT MARK -->
427                         <int>0x200F</int>       <!-- RIGHT-TO-LEFT MARK -->
428                         <int>0x2028</int>       <!-- LINE SEPARATOR -->
429                         <int>0x2029</int>       <!-- PARAGRAPH SEPARATOR -->
430                         <int>0x202A</int>       <!-- LEFT-TO-RIGHT EMBEDDING -->
431                         <int>0x202B</int>       <!-- RIGHT-TO-LEFT EMBEDDING -->
432                         <int>0x202C</int>       <!-- POP DIRECTIONAL FORMATTING -->
433                         <int>0x202D</int>       <!-- LEFT-TO-RIGHT OVERRIDE -->
434                         <int>0x202E</int>       <!-- RIGHT-TO-LEFT OVERRIDE -->
435                         <int>0x202F</int>       <!-- NARROW NO-BREAK SPACE -->
436                         <int>0x205F</int>       <!-- MEDIUM MATHEMATICAL SPACE -->
437                         <int>0x2060</int>       <!-- WORD JOINER -->
438                         <int>0x2061</int>       <!-- FUNCTION APPLICATION -->
439                         <int>0x2062</int>       <!-- INVISIBLE TIMES -->
440                         <int>0x2063</int>       <!-- INVISIBLE SEPARATOR -->
441                         <int>0x206A</int>       <!-- INHIBIT SYMMETRIC SWAPPING -->
442                         <int>0x206B</int>       <!-- ACTIVATE SYMMETRIC SWAPPING -->
443                         <int>0x206C</int>       <!-- INHIBIT ARABIC FORM SHAPING -->
444                         <int>0x206D</int>       <!-- ACTIVATE ARABIC FORM SHAPING -->
445                         <int>0x206E</int>       <!-- NATIONAL DIGIT SHAPES -->
446                         <int>0x206F</int>       <!-- NOMINAL DIGIT SHAPES -->
447                         <int>0x3000</int>       <!-- IDEOGRAPHIC SPACE -->
448                         <int>0x3164</int>       <!-- HANGUL FILLER -->
449                         <int>0xFEFF</int>       <!-- ZERO WIDTH NO-BREAK SPACE -->
450                         <int>0xFFA0</int>       <!-- HALFWIDTH HANGUL FILLER -->
451                         <int>0xFFF9</int>       <!-- INTERLINEAR ANNOTATION ANCHOR -->
452                         <int>0xFFFA</int>       <!-- INTERLINEAR ANNOTATION SEPARATOR -->
453                         <int>0xFFFB</int>       <!-- INTERLINEAR ANNOTATION TERMINATOR -->
454                 </blank>
455 <!--
456   Rescan configuration every 30 seconds when FcFontSetList is called
457  -->
458                 <rescan>
459                         <int>30</int>
460                 </rescan>
461         </config>
462
463 </fontconfig>