blob: 0831205fe8b94f4c13d1dd90b2934af78dcdd6b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
|
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<!--
Weitian LI <liweitianux@gmail.com>
2014/04/06
-->
<!--
system wide: /etc/fonts/local.conf
per-user configuration: $XDG_CONFIG_HOME/fontconfig/fonts.conf
(~/.config/fontconfig/fonts.conf)
-->
<!-- private font directory -->
<dir prefix="xdg">fonts</dir>
<!-- default settings: smoothed and hinted -->
<match target="font">
<edit mode="assign" name="autohint">
<bool>true</bool>
</edit>
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
<edit mode="assign" name="hintstyle">
<const>hintmedium</const>
</edit>
<edit mode="assign" name="lcdfilter">
<const>lcddefault</const>
</edit>
<edit mode="assign" name="rgba">
<const>rgb</const>
</edit>
<!-- enable embedded bitmap -->
<edit mode="assign" name="embeddedbitmap">
<bool>true</bool>
</edit>
</match>
<!-- DPI -->
<!--
<match target="pattern">
<edit name="dpi" mode="assign">
<double>96</double>
</edit>
</match>
-->
<!-- For point size less equal than 6: only smoothed -->
<!--
<match target="font" >
<test name="size" compare="less_eq">
<double>6</double>
</test>
<edit name="antialias" mode="assign">
<bool>true</bool>
</edit>
<edit name="autohint" mode="assign">
<bool>false</bool>
</edit>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
-->
<!-- font families -->
<!--
Names not including any well known alias are given 'sans-serif'
-->
<match target="pattern">
<test compare="not_eq" qual="all" name="family">
<string>sans-serif</string>
</test>
<test compare="not_eq" qual="all" name="family">
<string>serif</string>
</test>
<test compare="not_eq" qual="all" name="family">
<string>monospace</string>
</test>
<edit mode="append_last" name="family">
<string>sans-serif</string>
</edit>
</match>
<!--
Alias well known font names to available TrueType fonts.
These substitute TrueType faces for similar Type1
faces to improve screen appearance.
-->
<alias>
<family>Times</family>
<prefer>
<family>Times New Roman</family>
</prefer>
<default>
<family>serif</family>
</default>
</alias>
<alias>
<family>Helvetica</family>
<prefer>
<family>Arial</family>
</prefer>
<default>
<family>sans-serif</family>
</default>
</alias>
<alias>
<family>Courier</family>
<prefer>
<family>Courier New</family>
</prefer>
<default>
<family>monospace</family>
</default>
</alias>
<!--
The example of the requirements of OR operator;
If the 'family' contains 'Courier New' OR 'Courier'
add 'monospace' as the alternative
-->
<match target="pattern">
<test compare="eq" name="family">
<string>Courier New</string>
</test>
<edit mode="prepend" name="family">
<string>monospace</string>
</edit>
</match>
<match target="pattern">
<test compare="eq" name="family">
<string>Courier</string>
</test>
<edit mode="prepend" name="family">
<string>monospace</string>
</edit>
</match>
<!-- use WenQuanYi font when serif is requested for Chinese -->
<match>
<!--
If you don't want to use WenQuanYi Zen Hei font for zh-tw etc,
you can use zh-cn instead of zh.
Please note, even if you set zh-cn, it still matches zh.
if you don't like it, you can use compare="eq"
instead of compare="contains".
-->
<test compare="contains" name="lang">
<string>zh</string>
</test>
<test name="family">
<string>serif</string>
</test>
<edit mode="prepend" name="family">
<string>WenQuanYi Micro Hei</string>
<string>WenQuanYi Zen Hei</string>
</edit>
</match>
<!-- font family preferences -->
<match>
<test name="family">
<string>serif</string>
</test>
<edit mode="prepend" name="family">
<string>DejaVu Serif</string>
<string>Liberation Serif</string>
<string>Linux Libertine</string>
<string>Linux Libertine O</string>
<string>Bitstream Vera Serif</string>
<string>Droid Serif</string>
<string>AR PL UMing CN</string>
<string>AR PL UMing TW</string>
<string>AR PL UMing HK</string>
<string>AR PL SungtiL GB</string>
</edit>
</match>
<match>
<test name="family">
<string>sans-serif</string>
</test>
<edit mode="prepend" name="family">
<string>DejaVu Sans</string>
<string>Liberation Sans</string>
<string>Linux Biolinum</string>
<string>Linux Biolinum O</string>
<string>Source Sans Pro</string>
<string>Droid Sans</string>
<string>WenQuanYi Micro Hei</string>
<string>WenQuanYi Zen Hei</string>
<string>Droid Sans Fallback</string>
<string>AR PL UKai CN</string>
<string>AR PL UKai TW</string>
<string>AR PL UKai HK</string>
<string>AR PL KaitiM GB</string>
<string>AR PL KaitiM Big5</string>
</edit>
</match>
<match>
<test name="family">
<string>monospace</string>
</test>
<edit mode="prepend" name="family">
<string>DejaVu Sans Mono</string>
<string>Liberation Mono</string>
<string>Source Code Pro</string>
<string>Inconsolata</string>
<string>Bitstream Vera Sans Mono</string>
<string>Droid Sans Mono</string>
<string>WenQuanYi Micro Hei Mono</string>
<string>WenQuanYi Zen Hei Mono</string>
</edit>
</match>
<!-- reorder the serif, sans-serif and monospace family -->
<alias>
<family>serif</family>
<prefer>
<family>DejaVu Serif</family>
<family>Liberation Serif</family>
<family>Linux Libertine</family>
<family>Linux Libertine O</family>
<family>Bitstream Vera Serif</family>
<family>Droid Serif</family>
<family>AR PL UMing CN</family>
<family>AR PL UMing TW</family>
<family>AR PL UMing HK</family>
<family>AR PL SungtiL GB</family>
</prefer>
</alias>
<alias>
<family>sans-serif</family>
<prefer>
<family>DejaVu Sans</family>
<family>Liberation Sans</family>
<family>Linux Biolinum</family>
<family>Linux Biolinum O</family>
<family>Source Sans Pro</family>
<family>Bitstream Vera Sans</family>
<family>Droid Sans</family>
<family>WenQuanYi Micro Hei</family>
<family>WenQuanYi Zen Hei</family>
<family>Droid Sans Fallback</family>
<family>AR PL UKai CN</family>
<family>AR PL UKai TW</family>
<family>AR PL UKai HK</family>
<family>AR PL KaitiM GB</family>
<family>AR PL KaitiM Big5</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>DejaVu Sans Mono</family>
<family>Liberation Mono</family>
<family>Source Code Pro</family>
<family>Inconsolata</family>
<family>Bitstream Vera Sans Mono</family>
<family>Droid Sans Mono</family>
<family>WenQuanYi Micro Hei Mono</family>
<family>WenQuanYi Zen Hei Mono</family>
</prefer>
</alias>
<!-- end reorder fonts -->
<match target="font">
<edit mode="assign" name="rgba">
<const>none</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hinting">
<bool>true</bool>
</edit>
</match>
<match target="font">
<edit mode="assign" name="hintstyle">
<const>hintmedium</const>
</edit>
</match>
<match target="font">
<edit mode="assign" name="antialias">
<bool>true</bool>
</edit>
</match>
<dir>~/.fonts</dir>
</fontconfig>
|