]> git.wh0rd.org Git - fontconfig.git/blob - fonts.conf.in
a0a4107714a6ea0da0f4d02ee6a30a5c2fc3ccc8
[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 <!-- FONTPATH_START -->
7
8 <!-- 
9   Common X11R6 font directories
10 -->
11
12         <dir>/usr/X11R6/lib/X11/fonts/truetype</dir>
13         <dir>/usr/X11R6/lib/X11/fonts/Type1</dir>
14         <dir>/usr/X11R6/lib/X11/fonts/TrueType</dir>
15
16 <!-- FONTPATH_END -->
17
18 <!--
19   Accept deprecated 'mono' alias, replacing it with 'monospace'
20 -->
21         <match target="pattern">
22                 <test qual="any" name="family">
23                         <string>mono</string>
24                 </test>
25                 <edit name="family" mode="assign">
26                         <string>monospace</string>
27                 </edit>
28         </match>
29
30 <!--
31   Accept deprecated 'sans' alias, replacing it with 'sans-serif'
32 -->
33         <match target="pattern">
34                 <test qual="any" name="family">
35                         <string>sans</string>
36                 </test>
37                 <edit name="family" mode="assign">
38                         <string>sans-serif</string>
39                 </edit>
40         </match>
41
42 <!--
43   Mark common families with their generics so we'll get
44   something reasonable
45 -->
46
47 <!--
48   Serif faces
49  -->
50         <alias>
51                 <family>Times</family>
52                 <family>Times New Roman</family>
53                 <family>Nimbus Roman No9 L</family>
54                 <family>Luxi Serif</family>
55                 <family>Kochi Mincho</family>
56                 <family>AR PL SungtiL GB</family>
57                 <family>Baekmuk Batang</family>                 
58                 <default><family>serif</family></default>
59         </alias>
60 <!--
61   Sans-serif faces
62  -->
63         <alias>
64                 <family>Helvetica</family>
65                 <family>Arial</family>
66                 <family>Verdana</family>
67                 <family>Nimbus Sans L</family>
68                 <family>Luxi Sans</family>
69                 <family>Kochi Gothic</family>
70                 <family>AR PL KaitiM GB</family>
71                 <family>Baekmuk Dotum</family>
72                 <default><family>sans-serif</family></default>
73         </alias>
74 <!--
75   Monospace faces
76  -->
77         <alias>
78                 <family>Courier</family>
79                 <family>Courier New</family>
80                 <family>Andale Mono</family>
81                 <family>Luxi Mono</family>
82                 <family>Nimbus Mono L</family>
83                 <default><family>monospace</family></default>
84         </alias>
85 <!--
86   If the font still has no generic name, add sans-serif
87  -->
88         <match target="pattern">
89                 <test qual="all" name="family" compare="not_eq">
90                         <string>sans-serif</string>
91                 </test>
92                 <test qual="all" name="family" compare="not_eq">
93                         <string>serif</string>
94                 </test>
95                 <test qual="all" name="family" compare="not_eq">
96                         <string>monospace</string>
97                 </test>
98                 <edit name="family" mode="append_last">
99                         <string>sans-serif</string>
100                 </edit>
101         </match>
102         
103 <!--
104   Load per-user customization file
105 -->
106         <include ignore_missing="yes">~/.fonts.conf</include>
107
108 <!--
109   Alias well known font names to available TrueType fonts
110 -->
111         <alias>
112                 <family>Times</family>
113                 <accept><family>Times New Roman</family></accept>
114         </alias>
115         <alias>
116                 <family>Helvetica</family>
117                 <accept><family>Verdana</family></accept>
118         </alias>
119         <alias>
120                 <family>Arial</family>
121                 <accept><family>Verdana</family></accept>
122         </alias>
123         <alias>
124                 <family>Courier</family>
125                 <accept><family>Courier New</family></accept>
126         </alias>
127
128 <!--
129   Provide required aliases for standard names
130 -->
131         <alias>
132                 <family>serif</family>
133                 <prefer>
134                         <family>Times New Roman</family>
135                         <family>Nimbus Roman No9 L</family>
136                         <family>Luxi Serif</family>
137                         <family>Times</family>
138                         <family>Kochi Mincho</family>
139                         <family>AR PL SungtiL GB</family>
140                         <family>Baekmuk Batang</family>                 
141                 </prefer>
142         </alias>
143         <alias>
144                 <family>sans-serif</family>
145                 <prefer>
146                         <family>Verdana</family>
147                         <family>Nimbus Sans L</family>
148                         <family>Luxi Sans</family>
149                         <family>Arial</family>
150                         <family>Helvetica</family>
151                         <family>Kochi Gothic</family>
152                         <family>AR PL KaitiM GB</family>
153                         <family>Baekmuk Dotum</family>
154                 </prefer>
155         </alias>
156         <alias>
157                 <family>monospace</family>
158                 <prefer>
159                         <family>Andale Mono</family>
160                         <family>Courier New</family>
161                         <family>Luxi Mono</family>
162                         <family>Nimbus Mono L</family>
163                         <family>Kochi Gothic</family>
164                         <family>AR PL KaitiM GB</family>
165                         <family>Baekmuk Dotum</family>
166                 </prefer>
167         </alias>
168
169 <!-- 
170  Artificial oblique for fonts without an italic or oblique version
171  -->
172  
173         <match target="font">
174                 <!-- check to see if the font is roman -->
175                 <test qual="first" name="slant">
176                         <const>roman</const>
177                 </test>
178                 <!-- check to see if the pattern requested non-roman -->
179                 <test qual="not_first" name="slant" compare="not_eq">
180                         <const>roman</const>
181                 </test>
182                 <!-- multiply the matrix to slant the font -->
183                 <edit name="matrix" mode="assign">
184                         <times>
185                                 <name>matrix</name>
186                                 <matrix><double>1</double><double>.2</double>
187                                         <double>0</double><double>1</double>
188                                 </matrix>
189                         </times>
190                 </edit>
191                 <!-- pretend the font is oblique now -->
192                 <edit name="slant" mode="assign">
193                         <const>oblique</const>
194                 </edit>
195         </match>
196
197         <config>
198 <!--
199   These are the default Unicode chars that are expected to be blank
200   in fonts.  All other blank chars are assumed to be broken and
201   won't appear in the resulting charsets
202  -->
203                 <blank>
204                         <int>0x20</int>         <!-- space -->
205                         <int>0xa0</int>         <!-- nsbp  -->
206                         <int>0x2000</int>       <!-- general punctuation spaces -->
207                         <int>0x2001</int>
208                         <int>0x2002</int>
209                         <int>0x2003</int>
210                         <int>0x2004</int>
211                         <int>0x2005</int>
212                         <int>0x2005</int>
213                         <int>0x2006</int>
214                         <int>0x2007</int>
215                         <int>0x2008</int>
216                         <int>0x2009</int>
217                         <int>0x200a</int>
218                         <int>0x200b</int>
219                         <int>0x3000</int>       <!-- CJK space -->
220                 </blank>
221 <!--
222   Rescan configuration every 30 seconds when FcFontSetList is called
223  -->
224                 <rescan>
225                         <int>30</int>
226                 </rescan>
227         </config>
228
229 </fontconfig>