]>
Commit | Line | Data |
---|---|---|
24330d27 KP |
1 | <?xml version="1.0"?> |
2 | <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
3 | <!-- /etc/fonts.conf file to configure system font access --> | |
4 | <fontconfig> | |
5 | ||
a6531d8c KP |
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 | ||
24330d27 KP |
17 | <!-- FONTPATH_START --> |
18 | ||
19 | <!-- | |
20 | Common X11R6 font directories | |
21 | --> | |
22 | ||
6fff2cda KP |
23 | <dir>/usr/X11R6/lib/X11/fonts</dir> |
24 | <dir>/usr/share/fonts</dir> | |
a6531d8c | 25 | <dir>~/.fonts</dir> |
24330d27 KP |
26 | |
27 | <!-- FONTPATH_END --> | |
28 | ||
6fff2cda KP |
29 | <!-- |
30 | Enable sub-pixel rendering | |
31 | <match target="font"> | |
32 | <edit name="rgba" mode="assign"><const>rgb</const></edit> | |
33 | </match> | |
34 | --> | |
35 | ||
24330d27 KP |
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> | |
24330d27 | 70 | <family>Times New Roman</family> |
fb9545b1 KP |
71 | <family>Nimbus Roman No9 L</family> |
72 | <family>Luxi Serif</family> | |
06a48f20 KP |
73 | <family>Kochi Mincho</family> |
74 | <family>AR PL SungtiL GB</family> | |
899e3526 | 75 | <family>AR PL Mingti2L Big5</family> |
06a48f20 | 76 | <family>Baekmuk Batang</family> |
24330d27 KP |
77 | <default><family>serif</family></default> |
78 | </alias> | |
79 | <!-- | |
80 | Sans-serif faces | |
81 | --> | |
82 | <alias> | |
83 | <family>Helvetica</family> | |
24330d27 | 84 | <family>Arial</family> |
24330d27 | 85 | <family>Verdana</family> |
fb9545b1 KP |
86 | <family>Nimbus Sans L</family> |
87 | <family>Luxi Sans</family> | |
06a48f20 KP |
88 | <family>Kochi Gothic</family> |
89 | <family>AR PL KaitiM GB</family> | |
899e3526 | 90 | <family>AR PL KaitiM Big5</family> |
06a48f20 | 91 | <family>Baekmuk Dotum</family> |
899e3526 | 92 | <family>SimSun</family> |
24330d27 KP |
93 | <default><family>sans-serif</family></default> |
94 | </alias> | |
95 | <!-- | |
96 | Monospace faces | |
97 | --> | |
98 | <alias> | |
99 | <family>Courier</family> | |
24330d27 | 100 | <family>Courier New</family> |
24330d27 | 101 | <family>Andale Mono</family> |
fb9545b1 | 102 | <family>Luxi Mono</family> |
06a48f20 | 103 | <family>Nimbus Mono L</family> |
899e3526 | 104 | <family>NSimSun</family> |
24330d27 KP |
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 | ||
938bc633 KP |
130 | <!-- |
131 | Load local system customization file | |
132 | --> | |
133 | <include ignore_missing="yes">local.conf</include> | |
134 | ||
24330d27 KP |
135 | <!-- |
136 | Alias well known font names to available TrueType fonts | |
137 | --> | |
138 | <alias> | |
139 | <family>Times</family> | |
fb9545b1 | 140 | <accept><family>Times New Roman</family></accept> |
24330d27 KP |
141 | </alias> |
142 | <alias> | |
143 | <family>Helvetica</family> | |
fb9545b1 | 144 | <accept><family>Verdana</family></accept> |
24330d27 KP |
145 | </alias> |
146 | <alias> | |
147 | <family>Arial</family> | |
fb9545b1 | 148 | <accept><family>Verdana</family></accept> |
24330d27 KP |
149 | </alias> |
150 | <alias> | |
151 | <family>Courier</family> | |
fb9545b1 | 152 | <accept><family>Courier New</family></accept> |
24330d27 KP |
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> | |
06a48f20 KP |
165 | <family>Kochi Mincho</family> |
166 | <family>AR PL SungtiL GB</family> | |
899e3526 | 167 | <family>AR PL Mingti2L Big5</family> |
06a48f20 | 168 | <family>Baekmuk Batang</family> |
24330d27 KP |
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> | |
06a48f20 KP |
179 | <family>Kochi Gothic</family> |
180 | <family>AR PL KaitiM GB</family> | |
899e3526 | 181 | <family>AR PL KaitiM Big5</family> |
06a48f20 | 182 | <family>Baekmuk Dotum</family> |
899e3526 | 183 | <family>SimSun</family> |
24330d27 KP |
184 | </prefer> |
185 | </alias> | |
186 | <alias> | |
187 | <family>monospace</family> | |
188 | <prefer> | |
189 | <family>Andale Mono</family> | |
190 | <family>Courier New</family> | |
24330d27 | 191 | <family>Luxi Mono</family> |
06a48f20 KP |
192 | <family>Nimbus Mono L</family> |
193 | <family>Kochi Gothic</family> | |
194 | <family>AR PL KaitiM GB</family> | |
195 | <family>Baekmuk Dotum</family> | |
24330d27 KP |
196 | </prefer> |
197 | </alias> | |
198 | ||
c689ec22 KP |
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 --> | |
938bc633 | 205 | <test name="slant"> |
c689ec22 KP |
206 | <const>roman</const> |
207 | </test> | |
208 | <!-- check to see if the pattern requested non-roman --> | |
938bc633 | 209 | <test target="pattern" name="slant" compare="not_eq"> |
c689ec22 KP |
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 | ||
fb9545b1 | 227 | <config> |
24330d27 KP |
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 | --> | |
fb9545b1 KP |
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> | |
24330d27 KP |
258 | |
259 | </fontconfig> |