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