]>
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 | ||
fa244f3d KP |
48 | <!-- |
49 | Accept alternate 'sans serif' spelling, replacing it with 'sans-serif' | |
50 | --> | |
51 | <match target="pattern"> | |
52 | <test qual="any" name="family"> | |
53 | <string>sans serif</string> | |
54 | </test> | |
55 | <edit name="family" mode="assign"> | |
56 | <string>sans-serif</string> | |
57 | </edit> | |
58 | </match> | |
59 | ||
24330d27 KP |
60 | <!-- |
61 | Accept deprecated 'sans' alias, replacing it with 'sans-serif' | |
62 | --> | |
63 | <match target="pattern"> | |
64 | <test qual="any" name="family"> | |
65 | <string>sans</string> | |
66 | </test> | |
67 | <edit name="family" mode="assign"> | |
68 | <string>sans-serif</string> | |
69 | </edit> | |
70 | </match> | |
71 | ||
72 | <!-- | |
73 | Mark common families with their generics so we'll get | |
74 | something reasonable | |
75 | --> | |
76 | ||
77 | <!-- | |
78 | Serif faces | |
79 | --> | |
80 | <alias> | |
81 | <family>Times</family> | |
24330d27 | 82 | <family>Times New Roman</family> |
fb9545b1 KP |
83 | <family>Nimbus Roman No9 L</family> |
84 | <family>Luxi Serif</family> | |
06a48f20 KP |
85 | <family>Kochi Mincho</family> |
86 | <family>AR PL SungtiL GB</family> | |
899e3526 | 87 | <family>AR PL Mingti2L Big5</family> |
06a48f20 | 88 | <family>Baekmuk Batang</family> |
24330d27 KP |
89 | <default><family>serif</family></default> |
90 | </alias> | |
91 | <!-- | |
92 | Sans-serif faces | |
93 | --> | |
94 | <alias> | |
95 | <family>Helvetica</family> | |
24330d27 | 96 | <family>Arial</family> |
24330d27 | 97 | <family>Verdana</family> |
fb9545b1 KP |
98 | <family>Nimbus Sans L</family> |
99 | <family>Luxi Sans</family> | |
06a48f20 KP |
100 | <family>Kochi Gothic</family> |
101 | <family>AR PL KaitiM GB</family> | |
899e3526 | 102 | <family>AR PL KaitiM Big5</family> |
06a48f20 | 103 | <family>Baekmuk Dotum</family> |
899e3526 | 104 | <family>SimSun</family> |
24330d27 KP |
105 | <default><family>sans-serif</family></default> |
106 | </alias> | |
107 | <!-- | |
108 | Monospace faces | |
109 | --> | |
110 | <alias> | |
111 | <family>Courier</family> | |
24330d27 | 112 | <family>Courier New</family> |
24330d27 | 113 | <family>Andale Mono</family> |
fb9545b1 | 114 | <family>Luxi Mono</family> |
06a48f20 | 115 | <family>Nimbus Mono L</family> |
899e3526 | 116 | <family>NSimSun</family> |
24330d27 KP |
117 | <default><family>monospace</family></default> |
118 | </alias> | |
119 | <!-- | |
120 | If the font still has no generic name, add sans-serif | |
121 | --> | |
122 | <match target="pattern"> | |
123 | <test qual="all" name="family" compare="not_eq"> | |
124 | <string>sans-serif</string> | |
125 | </test> | |
126 | <test qual="all" name="family" compare="not_eq"> | |
127 | <string>serif</string> | |
128 | </test> | |
129 | <test qual="all" name="family" compare="not_eq"> | |
130 | <string>monospace</string> | |
131 | </test> | |
132 | <edit name="family" mode="append_last"> | |
133 | <string>sans-serif</string> | |
134 | </edit> | |
135 | </match> | |
136 | ||
137 | <!-- | |
138 | Load per-user customization file | |
139 | --> | |
140 | <include ignore_missing="yes">~/.fonts.conf</include> | |
141 | ||
938bc633 KP |
142 | <!-- |
143 | Load local system customization file | |
144 | --> | |
145 | <include ignore_missing="yes">local.conf</include> | |
146 | ||
24330d27 KP |
147 | <!-- |
148 | Alias well known font names to available TrueType fonts | |
149 | --> | |
150 | <alias> | |
151 | <family>Times</family> | |
fb9545b1 | 152 | <accept><family>Times New Roman</family></accept> |
24330d27 KP |
153 | </alias> |
154 | <alias> | |
155 | <family>Helvetica</family> | |
fb9545b1 | 156 | <accept><family>Verdana</family></accept> |
24330d27 KP |
157 | </alias> |
158 | <alias> | |
159 | <family>Arial</family> | |
fb9545b1 | 160 | <accept><family>Verdana</family></accept> |
24330d27 KP |
161 | </alias> |
162 | <alias> | |
163 | <family>Courier</family> | |
fb9545b1 | 164 | <accept><family>Courier New</family></accept> |
24330d27 KP |
165 | </alias> |
166 | ||
167 | <!-- | |
168 | Provide required aliases for standard names | |
169 | --> | |
170 | <alias> | |
171 | <family>serif</family> | |
172 | <prefer> | |
173 | <family>Times New Roman</family> | |
174 | <family>Nimbus Roman No9 L</family> | |
175 | <family>Luxi Serif</family> | |
176 | <family>Times</family> | |
06a48f20 KP |
177 | <family>Kochi Mincho</family> |
178 | <family>AR PL SungtiL GB</family> | |
899e3526 | 179 | <family>AR PL Mingti2L Big5</family> |
06a48f20 | 180 | <family>Baekmuk Batang</family> |
24330d27 KP |
181 | </prefer> |
182 | </alias> | |
183 | <alias> | |
184 | <family>sans-serif</family> | |
185 | <prefer> | |
186 | <family>Verdana</family> | |
187 | <family>Nimbus Sans L</family> | |
188 | <family>Luxi Sans</family> | |
189 | <family>Arial</family> | |
190 | <family>Helvetica</family> | |
06a48f20 KP |
191 | <family>Kochi Gothic</family> |
192 | <family>AR PL KaitiM GB</family> | |
899e3526 | 193 | <family>AR PL KaitiM Big5</family> |
06a48f20 | 194 | <family>Baekmuk Dotum</family> |
899e3526 | 195 | <family>SimSun</family> |
24330d27 KP |
196 | </prefer> |
197 | </alias> | |
198 | <alias> | |
199 | <family>monospace</family> | |
200 | <prefer> | |
201 | <family>Andale Mono</family> | |
202 | <family>Courier New</family> | |
24330d27 | 203 | <family>Luxi Mono</family> |
06a48f20 KP |
204 | <family>Nimbus Mono L</family> |
205 | <family>Kochi Gothic</family> | |
206 | <family>AR PL KaitiM GB</family> | |
207 | <family>Baekmuk Dotum</family> | |
24330d27 KP |
208 | </prefer> |
209 | </alias> | |
210 | ||
c689ec22 KP |
211 | <!-- |
212 | Artificial oblique for fonts without an italic or oblique version | |
213 | --> | |
214 | ||
215 | <match target="font"> | |
216 | <!-- check to see if the font is roman --> | |
938bc633 | 217 | <test name="slant"> |
c689ec22 KP |
218 | <const>roman</const> |
219 | </test> | |
220 | <!-- check to see if the pattern requested non-roman --> | |
938bc633 | 221 | <test target="pattern" name="slant" compare="not_eq"> |
c689ec22 KP |
222 | <const>roman</const> |
223 | </test> | |
224 | <!-- multiply the matrix to slant the font --> | |
225 | <edit name="matrix" mode="assign"> | |
226 | <times> | |
227 | <name>matrix</name> | |
228 | <matrix><double>1</double><double>.2</double> | |
229 | <double>0</double><double>1</double> | |
230 | </matrix> | |
231 | </times> | |
232 | </edit> | |
233 | <!-- pretend the font is oblique now --> | |
234 | <edit name="slant" mode="assign"> | |
235 | <const>oblique</const> | |
236 | </edit> | |
237 | </match> | |
238 | ||
fb9545b1 | 239 | <config> |
24330d27 KP |
240 | <!-- |
241 | These are the default Unicode chars that are expected to be blank | |
242 | in fonts. All other blank chars are assumed to be broken and | |
243 | won't appear in the resulting charsets | |
244 | --> | |
fb9545b1 KP |
245 | <blank> |
246 | <int>0x20</int> <!-- space --> | |
247 | <int>0xa0</int> <!-- nsbp --> | |
f9ad97b0 KP |
248 | <int>0x115f</int> <!-- choseong filler --> |
249 | <int>0x1160</int> <!-- jungseong filler --> | |
fb9545b1 KP |
250 | <int>0x2000</int> <!-- general punctuation spaces --> |
251 | <int>0x2001</int> | |
252 | <int>0x2002</int> | |
253 | <int>0x2003</int> | |
254 | <int>0x2004</int> | |
255 | <int>0x2005</int> | |
256 | <int>0x2005</int> | |
257 | <int>0x2006</int> | |
258 | <int>0x2007</int> | |
259 | <int>0x2008</int> | |
260 | <int>0x2009</int> | |
261 | <int>0x200a</int> | |
262 | <int>0x200b</int> | |
f9ad97b0 KP |
263 | <int>0x200c</int> |
264 | <int>0x200d</int> | |
265 | <int>0x200e</int> | |
266 | <int>0x200f</int> | |
267 | <int>0x202a</int> | |
268 | <int>0x202b</int> | |
269 | <int>0x202c</int> | |
270 | <int>0x202d</int> | |
271 | <int>0x202e</int> | |
272 | <int>0x202f</int> | |
fb9545b1 | 273 | <int>0x3000</int> <!-- CJK space --> |
f9ad97b0 KP |
274 | <int>0x3164</int> <!-- HANGUL FILLER --> |
275 | <int>0xfeff</int> <!-- zero width no-break space --> | |
10bac9b5 KP |
276 | <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER --> |
277 | <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR --> | |
278 | <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR --> | |
279 | <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION TERMINATOR --> | |
fb9545b1 KP |
280 | </blank> |
281 | <!-- | |
282 | Rescan configuration every 30 seconds when FcFontSetList is called | |
283 | --> | |
284 | <rescan> | |
285 | <int>30</int> | |
286 | </rescan> | |
287 | </config> | |
24330d27 KP |
288 | |
289 | </fontconfig> |