]>
Commit | Line | Data |
---|---|---|
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 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 | ||
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> | |
82 | <family>Times New Roman</family> | |
83 | <family>Nimbus Roman No9 L</family> | |
84 | <family>Luxi Serif</family> | |
85 | <family>Kochi Mincho</family> | |
86 | <family>AR PL SungtiL GB</family> | |
87 | <family>AR PL Mingti2L Big5</family> | |
88 | <family>Baekmuk Batang</family> | |
89 | <default><family>serif</family></default> | |
90 | </alias> | |
91 | <!-- | |
92 | Sans-serif faces | |
93 | --> | |
94 | <alias> | |
95 | <family>Helvetica</family> | |
96 | <family>Arial</family> | |
97 | <family>Verdana</family> | |
98 | <family>Nimbus Sans L</family> | |
99 | <family>Luxi Sans</family> | |
100 | <family>Kochi Gothic</family> | |
101 | <family>AR PL KaitiM GB</family> | |
102 | <family>AR PL KaitiM Big5</family> | |
103 | <family>Baekmuk Dotum</family> | |
104 | <family>SimSun</family> | |
105 | <default><family>sans-serif</family></default> | |
106 | </alias> | |
107 | <!-- | |
108 | Monospace faces | |
109 | --> | |
110 | <alias> | |
111 | <family>Courier</family> | |
112 | <family>Courier New</family> | |
113 | <family>Andale Mono</family> | |
114 | <family>Luxi Mono</family> | |
115 | <family>Nimbus Mono L</family> | |
116 | <family>NSimSun</family> | |
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 | ||
142 | <!-- | |
143 | Load local system customization file | |
144 | --> | |
145 | <include ignore_missing="yes">local.conf</include> | |
146 | ||
147 | <!-- | |
148 | Alias well known font names to available TrueType fonts | |
149 | --> | |
150 | <alias> | |
151 | <family>Times</family> | |
152 | <accept><family>Times New Roman</family></accept> | |
153 | </alias> | |
154 | <alias> | |
155 | <family>Helvetica</family> | |
156 | <accept><family>Verdana</family></accept> | |
157 | </alias> | |
158 | <alias> | |
159 | <family>Arial</family> | |
160 | <accept><family>Verdana</family></accept> | |
161 | </alias> | |
162 | <alias> | |
163 | <family>Courier</family> | |
164 | <accept><family>Courier New</family></accept> | |
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> | |
177 | <family>Kochi Mincho</family> | |
178 | <family>AR PL SungtiL GB</family> | |
179 | <family>AR PL Mingti2L Big5</family> | |
180 | <family>Baekmuk Batang</family> | |
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> | |
191 | <family>Kochi Gothic</family> | |
192 | <family>AR PL KaitiM GB</family> | |
193 | <family>AR PL KaitiM Big5</family> | |
194 | <family>Baekmuk Dotum</family> | |
195 | <family>SimSun</family> | |
196 | </prefer> | |
197 | </alias> | |
198 | <alias> | |
199 | <family>monospace</family> | |
200 | <prefer> | |
201 | <family>Andale Mono</family> | |
202 | <family>Courier New</family> | |
203 | <family>Luxi Mono</family> | |
204 | <family>Nimbus Mono L</family> | |
205 | <family>Kochi Gothic</family> | |
206 | <family>AR PL KaitiM GB</family> | |
207 | <family>Baekmuk Dotum</family> | |
208 | </prefer> | |
209 | </alias> | |
210 | ||
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 --> | |
217 | <test name="slant"> | |
218 | <const>roman</const> | |
219 | </test> | |
220 | <!-- check to see if the pattern requested non-roman --> | |
221 | <test target="pattern" name="slant" compare="not_eq"> | |
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 | ||
239 | <config> | |
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 | --> | |
245 | <blank> | |
246 | <int>0x0020</int> <!-- SPACE --> | |
247 | <int>0x00a0</int> <!-- NO-BREAK SPACE --> | |
248 | <int>0x00ad</int> <!-- SOFT HYPHEN --> | |
249 | <int>0x115f</int> <!-- HANGUL CHOSEONG FILLER --> | |
250 | <int>0x1160</int> <!-- HANGUL JUNGSEONG FILLER --> | |
251 | <int>0x1680</int> <!-- OGHAM SPACE MARK --> | |
252 | <int>0x2000</int> <!-- EN QUAD --> | |
253 | <int>0x2001</int> <!-- EM QUAD --> | |
254 | <int>0x2002</int> <!-- EN SPACE --> | |
255 | <int>0x2003</int> <!-- EM SPACE --> | |
256 | <int>0x2004</int> <!-- THREE-PER-EM SPACE --> | |
257 | <int>0x2005</int> <!-- FOUR-PER-EM SPACE --> | |
258 | <int>0x2006</int> <!-- SIX-PER-EM SPACE --> | |
259 | <int>0x2007</int> <!-- FIGURE SPACE --> | |
260 | <int>0x2008</int> <!-- PUNCTUATION SPACE --> | |
261 | <int>0x2009</int> <!-- THIN SPACE --> | |
262 | <int>0x200a</int> <!-- HAIR SPACE --> | |
263 | <int>0x200b</int> <!-- ZERO WIDTH SPACE --> | |
264 | <int>0x200c</int> <!-- ZERO WIDTH NON-JOINER --> | |
265 | <int>0x200d</int> <!-- ZERO WIDTH JOINER --> | |
266 | <int>0x200e</int> <!-- LEFT-TO-RIGHT MARK --> | |
267 | <int>0x200f</int> <!-- RIGHT-TO-LEFT MARK --> | |
268 | <int>0x2028</int> <!-- LINE SEPARATOR --> | |
269 | <int>0x2029</int> <!-- PARAGRAPH SEPARATOR --> | |
270 | <int>0x202a</int> <!-- LEFT-TO-RIGHT EMBEDDING --> | |
271 | <int>0x202b</int> <!-- RIGHT-TO-LEFT EMBEDDING --> | |
272 | <int>0x202c</int> <!-- POP DIRECTIONAL FORMATTING --> | |
273 | <int>0x202d</int> <!-- LEFT-TO-RIGHT OVERRIDE --> | |
274 | <int>0x202e</int> <!-- RIGHT-TO-LEFT OVERRIDE --> | |
275 | <int>0x202f</int> <!-- NARROW NO-BREAK SPACE --> | |
276 | <int>0x205f</int> <!-- MEDIUM MATHEMATICAL SPACE --> | |
277 | <int>0x2060</int> <!-- WORD JOINER --> | |
278 | <int>0x2061</int> <!-- FUNCTION APPLICATION --> | |
279 | <int>0x2062</int> <!-- INVISIBLE TIMES --> | |
280 | <int>0x2063</int> <!-- INVISIBLE SEPARATOR --> | |
281 | <int>0x3000</int> <!-- IDEOGRAPHIC SPACE --> | |
282 | <int>0x3164</int> <!-- HANGUL FILLER --> | |
283 | <int>0xfeff</int> <!-- ZERO WIDTH NO-BREAK SPACE --> | |
284 | <int>0xffa0</int> <!-- HALFWIDTH HANGUL FILLER --> | |
285 | <int>0xfff9</int> <!-- INTERLINEAR ANNOTATION ANCHOR --> | |
286 | <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION SEPARATOR --> | |
287 | <int>0xfffa</int> <!-- INTERLINEAR ANNOTATION TERMINATOR --> | |
288 | </blank> | |
289 | <!-- | |
290 | Rescan configuration every 30 seconds when FcFontSetList is called | |
291 | --> | |
292 | <rescan> | |
293 | <int>30</int> | |
294 | </rescan> | |
295 | </config> | |
296 | ||
297 | </fontconfig> |