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