Merge branch 'upstream' into tizen
[platform/upstream/fontconfig.git] / fonts.conf.in
1 <?xml version="1.0"?>
2 <!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
3 <!-- /etc/fonts/fonts.conf file to configure system font access -->
4 <fontconfig>
5         <description>Default configuration file</description>
6
7 <!--
8         DO NOT EDIT THIS FILE.
9         IT WILL BE REPLACED WHEN FONTCONFIG IS UPDATED.
10         LOCAL CHANGES BELONG IN 'local.conf'.
11
12         The intent of this standard configuration file is to be adequate for
13         most environments.  If you have a reasonably normal environment and
14         have found problems with this configuration, they are probably
15         things that others will also want fixed.  Please submit any problems
16         to the fontconfig issue tracking system located at fontconfig.org
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 -->
26
27 @FC_DEFAULT_FONTS@
28         @FC_FONTPATH@
29         <dir prefix="xdg">fonts</dir>
30         <!-- the following element will be removed in the future -->
31         <dir>~/share/fonts</dir>
32
33 <!--
34   Accept deprecated 'mono' alias, replacing it with 'monospace'
35 -->
36         <match target="pattern">
37                 <test qual="any" name="family">
38                         <string>mono</string>
39                 </test>
40                 <edit name="family" mode="assign" binding="same">
41                         <string>monospace</string>
42                 </edit>
43         </match>
44
45 <!--
46   Accept alternate 'sans serif' spelling, replacing it with 'sans-serif'
47 -->
48         <match target="pattern">
49                 <test qual="any" name="family">
50                         <string>sans serif</string>
51                 </test>
52                 <edit name="family" mode="assign" binding="same">
53                         <string>sans-serif</string>
54                 </edit>
55         </match>
56
57 <!--
58   Accept deprecated 'sans' alias, replacing it with 'sans-serif'
59 -->
60         <match target="pattern">
61                 <test qual="any" name="family">
62                         <string>sans</string>
63                 </test>
64                 <edit name="family" mode="assign" binding="same">
65                         <string>sans-serif</string>
66                 </edit>
67         </match>
68 <!--
69   Accept alternate 'system ui' spelling, replacing it with 'system-ui'
70 -->
71         <match target="pattern">
72                 <test qual="any" name="family">
73                         <string>system ui</string>
74                 </test>
75                 <edit name="family" mode="assign" binding="same">
76                         <string>system-ui</string>
77                 </edit>
78         </match>
79
80 <!--
81   Load local system customization file
82 -->
83         <include ignore_missing="yes">@CONFIGDIR@</include>
84
85 <!-- Font cache directory list -->
86
87         <cachedir>@FC_CACHEDIR@</cachedir>
88         <cachedir prefix="xdg">fontconfig</cachedir>
89         <!-- the following element will be removed in the future -->
90         <cachedir>~/.cache/fontconfig</cachedir>
91
92         <config>
93 <!--
94   Rescan configuration every 30 seconds when FcFontSetList is called
95  -->
96                 <rescan>
97                         <int>30</int>
98                 </rescan>
99         </config>
100
101 </fontconfig>