]> git.wh0rd.org - fontconfig.git/blob - fonts.conf.in
Fix weird first/not-first lameness in font matches, replacing with target
[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 Load local system customization file
132 -->
133 <include ignore_missing="yes">local.conf</include>
134
135 <!--
136 Alias well known font names to available TrueType fonts
137 -->
138 <alias>
139 <family>Times</family>
140 <accept><family>Times New Roman</family></accept>
141 </alias>
142 <alias>
143 <family>Helvetica</family>
144 <accept><family>Verdana</family></accept>
145 </alias>
146 <alias>
147 <family>Arial</family>
148 <accept><family>Verdana</family></accept>
149 </alias>
150 <alias>
151 <family>Courier</family>
152 <accept><family>Courier New</family></accept>
153 </alias>
154
155 <!--
156 Provide required aliases for standard names
157 -->
158 <alias>
159 <family>serif</family>
160 <prefer>
161 <family>Times New Roman</family>
162 <family>Nimbus Roman No9 L</family>
163 <family>Luxi Serif</family>
164 <family>Times</family>
165 <family>Kochi Mincho</family>
166 <family>AR PL SungtiL GB</family>
167 <family>AR PL Mingti2L Big5</family>
168 <family>Baekmuk Batang</family>
169 </prefer>
170 </alias>
171 <alias>
172 <family>sans-serif</family>
173 <prefer>
174 <family>Verdana</family>
175 <family>Nimbus Sans L</family>
176 <family>Luxi Sans</family>
177 <family>Arial</family>
178 <family>Helvetica</family>
179 <family>Kochi Gothic</family>
180 <family>AR PL KaitiM GB</family>
181 <family>AR PL KaitiM Big5</family>
182 <family>Baekmuk Dotum</family>
183 <family>SimSun</family>
184 </prefer>
185 </alias>
186 <alias>
187 <family>monospace</family>
188 <prefer>
189 <family>Andale Mono</family>
190 <family>Courier New</family>
191 <family>Luxi Mono</family>
192 <family>Nimbus Mono L</family>
193 <family>Kochi Gothic</family>
194 <family>AR PL KaitiM GB</family>
195 <family>Baekmuk Dotum</family>
196 </prefer>
197 </alias>
198
199 <!--
200 Artificial oblique for fonts without an italic or oblique version
201 -->
202
203 <match target="font">
204 <!-- check to see if the font is roman -->
205 <test name="slant">
206 <const>roman</const>
207 </test>
208 <!-- check to see if the pattern requested non-roman -->
209 <test target="pattern" name="slant" compare="not_eq">
210 <const>roman</const>
211 </test>
212 <!-- multiply the matrix to slant the font -->
213 <edit name="matrix" mode="assign">
214 <times>
215 <name>matrix</name>
216 <matrix><double>1</double><double>.2</double>
217 <double>0</double><double>1</double>
218 </matrix>
219 </times>
220 </edit>
221 <!-- pretend the font is oblique now -->
222 <edit name="slant" mode="assign">
223 <const>oblique</const>
224 </edit>
225 </match>
226
227 <config>
228 <!--
229 These are the default Unicode chars that are expected to be blank
230 in fonts. All other blank chars are assumed to be broken and
231 won't appear in the resulting charsets
232 -->
233 <blank>
234 <int>0x20</int> <!-- space -->
235 <int>0xa0</int> <!-- nsbp -->
236 <int>0x2000</int> <!-- general punctuation spaces -->
237 <int>0x2001</int>
238 <int>0x2002</int>
239 <int>0x2003</int>
240 <int>0x2004</int>
241 <int>0x2005</int>
242 <int>0x2005</int>
243 <int>0x2006</int>
244 <int>0x2007</int>
245 <int>0x2008</int>
246 <int>0x2009</int>
247 <int>0x200a</int>
248 <int>0x200b</int>
249 <int>0x3000</int> <!-- CJK space -->
250 </blank>
251 <!--
252 Rescan configuration every 30 seconds when FcFontSetList is called
253 -->
254 <rescan>
255 <int>30</int>
256 </rescan>
257 </config>
258
259 </fontconfig>