OSDN Git Service

6eb057ecde7573287305aa857cb44657c8db0721
[android-x86/external-webkit.git] / WebKitTools / DumpRenderTree / gtk / fonts / fonts.conf
1 <?xml version="1.0"?>
2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3 <fontconfig>
4
5     <!-- The sans-serif font should be Liberation Serif -->
6     <match target="pattern">
7         <test qual="any" name="family">
8             <string>serif</string>
9         </test>
10         <edit name="family" mode="assign">
11             <string>Liberation Serif</string>
12         </edit>
13     </match>
14     <match target="pattern">
15         <test qual="any" name="family">
16             <string>Times</string>
17         </test>
18         <edit name="family" mode="assign">
19             <string>Liberation Serif</string>
20         </edit>
21     </match>
22     <match target="pattern">
23         <test qual="any" name="family">
24             <string>Times New Roman</string>
25         </test>
26         <edit name="family" mode="assign">
27             <string>Liberation Serif</string>
28         </edit>
29     </match>
30
31     <!-- Until we find good fonts to use for cursive and fantasy
32          just use our serif font. -->
33     <match target="pattern">
34         <test qual="any" name="family">
35             <string>cursive</string>
36         </test>
37         <edit name="family" mode="assign">
38             <string>Liberation Serif</string>
39         </edit>
40     </match>
41     <match target="pattern">
42         <test qual="any" name="family">
43             <string>fantasy</string>
44         </test>
45         <edit name="family" mode="assign">
46             <string>Liberation Serif</string>
47         </edit>
48     </match>
49
50     <!-- The sans-serif font should be Liberation Sans -->
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>Liberation Sans</string>
57         </edit>
58     </match>
59     <match target="pattern">
60         <test qual="any" name="family">
61             <string>sans</string>
62         </test>
63         <edit name="family" mode="assign">
64             <string>Liberation Sans</string>
65         </edit>
66     </match>
67     <!-- We need to ensure that layout tests that use "Helvetica" don't
68         fall back to the default serif font -->
69     <match target="pattern">
70       <test qual="any" name="family">
71         <string>Helvetica</string>
72       </test>
73       <edit name="family" mode="assign">
74         <string>Liberation Sans</string>
75       </edit>
76     </match>
77     <match target="pattern">
78       <test qual="any" name="family">
79         <string>Arial</string>
80       </test>
81       <edit name="family" mode="assign">
82         <string>Liberation Sans</string>
83       </edit>
84     </match>
85     <match target="pattern">
86       <test qual="any" name="family">
87         <string>Lucida Grande</string>
88       </test>
89       <edit name="family" mode="assign">
90         <string>Liberation Sans</string>
91       </edit>
92     </match>
93
94     <!-- The Monospace font should be Liberation Mono -->
95     <match target="pattern">
96         <test qual="any" name="family">
97             <string>monospace</string>
98         </test>
99         <edit name="family" mode="assign">
100             <string>Liberation Mono</string>
101         </edit>
102     </match>
103     <match target="pattern">
104         <test qual="any" name="family">
105             <string>mono</string>
106         </test>
107         <edit name="family" mode="assign">
108             <string>Liberation Mono</string>
109         </edit>
110     </match>
111     <!-- We need to ensure that layout tests that use "Courier", "Courier New",
112          and "Monaco" (all monospace fonts) don't fall back to the default
113          serif font -->
114     <match target="pattern">
115       <test qual="any" name="family">
116         <string>Courier</string>
117       </test>
118       <edit name="family" mode="assign">
119         <string>Liberation Mono</string>
120       </edit>
121     </match>
122     <match target="pattern">
123       <test qual="any" name="family">
124         <string>Courier New</string>
125       </test>
126       <edit name="family" mode="assign">
127         <string>Liberation Mono</string>
128       </edit>
129     </match>
130     <match target="pattern">
131       <test qual="any" name="family">
132         <string>Monaco</string>
133       </test>
134       <edit name="family" mode="assign">
135         <string>Liberation Mono</string>
136       </edit>
137     </match>
138
139     <!-- The following hinting specializations are adapted from those in the
140          Chromium test_shell.  We try to duplicate their incredibly thorough
141          testing here -->
142     <match target="pattern">
143         <test name="family" compare="eq">
144             <string>NonAntiAliasedSans</string>
145         </test>
146         <edit name="family" mode="assign">
147             <string>Liberation Sans</string>
148         </edit>
149         <edit name="antialias" mode="assign">
150             <bool>false</bool>
151         </edit>
152     </match>
153     
154     <match target="pattern">
155         <test name="family" compare="eq">
156             <string>SlightHintedSerif</string>
157         </test>
158         <edit name="family" mode="assign">
159             <string>Liberation Serif</string>
160         </edit>
161         <edit name="hintstyle" mode="assign">
162             <const>hintslight</const>
163         </edit>
164     </match>
165     
166     <match target="pattern">
167         <test name="family" compare="eq">
168             <string>NonHintedSans</string>
169         </test>
170         <edit name="family" mode="assign">
171             <string>Liberation Sans</string>
172         </edit>
173         <!-- These deliberately contradict each other. The 'hinting' preference
174              should take priority -->
175         <edit name="hintstyle" mode="assign">
176             <const>hintfull</const>
177         </edit>
178      <edit name="hinting" mode="assign">
179             <bool>false</bool>
180         </edit>
181     </match>
182     
183     <match target="pattern">
184         <test name="family" compare="eq">
185             <string>AutohintedSerif</string>
186         </test>
187         <edit name="family" mode="assign">
188             <string>Liberation Serif</string>
189         </edit>
190         <edit name="autohint" mode="assign">
191             <bool>true</bool>
192         </edit>
193         <edit name="hintstyle" mode="assign">
194             <const>hintmedium</const>
195         </edit>
196     </match>
197     
198     <match target="pattern">
199         <test name="family" compare="eq">
200             <string>HintedSerif</string>
201         </test>
202         <edit name="family" mode="assign">
203             <string>Liberation Serif</string>
204         </edit>
205         <edit name="autohint" mode="assign">
206             <bool>false</bool>
207         </edit>
208         <edit name="hintstyle" mode="assign">
209             <const>hintmedium</const>
210         </edit>
211     </match>
212     
213     <match target="pattern">
214         <test name="family" compare="eq">
215             <string>FullAndAutoHintedSerif</string>
216         </test>
217         <edit name="family" mode="assign">
218             <string>Liberation Serif</string>
219         </edit>
220         <edit name="autohint" mode="assign">
221             <bool>true</bool>
222         </edit>
223         <edit name="hintstyle" mode="assign">
224             <const>hintfull</const>
225         </edit>
226     </match>
227     
228     <match target="pattern">
229         <test name="family" compare="eq">
230             <string>SubpixelEnabledSans</string>
231         </test>
232         <edit name="family" mode="assign">
233             <string>Liberation Sans</string>
234         </edit>
235         <edit name="rgba" mode="assign">
236             <const>rgb</const>
237         </edit>
238     </match>
239     
240     <match target="pattern">
241         <test name="family" compare="eq">
242             <string>SubpixelDisabledSans</string>
243         </test>
244         <edit name="family" mode="assign">
245             <string>Liberation Sans</string>
246         </edit>
247         <edit name="rgba" mode="assign">
248             <const>none</const>
249         </edit>
250     </match>
251
252     <!-- We need to enable simulated bold to for DejaVu Serif to ensure that we interpret
253          this property correctly in: platform/gtk/fonts/fontconfig-synthetic-bold.html -->
254     <match target="font">
255         <test qual="any" name="family">
256             <string>DejaVu Serif</string>
257         </test>
258         <test name="weight" compare="less_eq">
259             <const>medium</const>
260         </test>
261         <test target="pattern" name="weight" compare="more">
262             <const>medium</const>
263         </test>
264         <edit name="embolden" mode="assign">
265             <bool>true</bool>
266         </edit>
267         <edit name="weight" mode="assign">
268             <const>bold</const>
269         </edit>
270     </match>
271
272     <!-- We need to enable simulated oblique to for DejaVu Serif to ensure that we interpret
273          this property correctly in: platform/gtk/fonts/fontconfig-synthetic-oblique.html -->
274     <match target="font">
275         <test qual="any" name="family">
276             <string>DejaVu Serif</string>
277         </test>
278         <test name="slant">
279             <const>roman</const>
280         </test>
281         <test target="pattern" name="slant" compare="not_eq">
282             <const>roman</const>
283         </test>
284         <edit name="matrix" mode="assign">
285             <times>
286                 <name>matrix</name>
287                 <matrix><double>1</double><double>0.2</double>
288                     <double>0</double><double>1</double>
289                 </matrix>
290             </times>
291         </edit>
292         <edit name="slant" mode="assign">
293             <const>oblique</const>
294         </edit>
295         <edit name="embeddedbitmap" mode="assign">
296             <bool>false</bool>
297         </edit>
298     </match>
299
300     <config>
301         <!-- These are the default Unicode chars that are expected to be blank
302              in fonts. All other blank chars are assumed to be broken and won't
303              appear in the resulting charsets -->
304         <blank>
305             <int>0x0020</int>    <!-- SPACE -->
306             <int>0x00A0</int>    <!-- NO-BREAK SPACE -->
307             <int>0x00AD</int>    <!-- SOFT HYPHEN -->
308             <int>0x034F</int>    <!-- COMBINING GRAPHEME JOINER -->
309             <int>0x0600</int>    <!-- ARABIC NUMBER SIGN -->
310             <int>0x0601</int>    <!-- ARABIC SIGN SANAH -->
311             <int>0x0602</int>    <!-- ARABIC FOOTNOTE MARKER -->
312             <int>0x0603</int>    <!-- ARABIC SIGN SAFHA -->
313             <int>0x06DD</int>    <!-- ARABIC END OF AYAH -->
314             <int>0x070F</int>    <!-- SYRIAC ABBREVIATION MARK -->
315             <int>0x115F</int>    <!-- HANGUL CHOSEONG FILLER -->
316             <int>0x1160</int>    <!-- HANGUL JUNGSEONG FILLER -->
317             <int>0x1680</int>    <!-- OGHAM SPACE MARK -->
318             <int>0x17B4</int>    <!-- KHMER VOWEL INHERENT AQ -->
319             <int>0x17B5</int>    <!-- KHMER VOWEL INHERENT AA -->
320             <int>0x180E</int>    <!-- MONGOLIAN VOWEL SEPARATOR -->
321             <int>0x2000</int>    <!-- EN QUAD -->
322             <int>0x2001</int>    <!-- EM QUAD -->
323             <int>0x2002</int>    <!-- EN SPACE -->
324             <int>0x2003</int>    <!-- EM SPACE -->
325             <int>0x2004</int>    <!-- THREE-PER-EM SPACE -->
326             <int>0x2005</int>    <!-- FOUR-PER-EM SPACE -->
327             <int>0x2006</int>    <!-- SIX-PER-EM SPACE -->
328             <int>0x2007</int>    <!-- FIGURE SPACE -->
329             <int>0x2008</int>    <!-- PUNCTUATION SPACE -->
330             <int>0x2009</int>    <!-- THIN SPACE -->
331             <int>0x200A</int>    <!-- HAIR SPACE -->
332             <int>0x200B</int>    <!-- ZERO WIDTH SPACE -->
333             <int>0x200C</int>    <!-- ZERO WIDTH NON-JOINER -->
334             <int>0x200D</int>    <!-- ZERO WIDTH JOINER -->
335             <int>0x200E</int>    <!-- LEFT-TO-RIGHT MARK -->
336             <int>0x200F</int>    <!-- RIGHT-TO-LEFT MARK -->
337             <int>0x2028</int>    <!-- LINE SEPARATOR -->
338             <int>0x2029</int>    <!-- PARAGRAPH SEPARATOR -->
339             <int>0x202A</int>    <!-- LEFT-TO-RIGHT EMBEDDING -->
340             <int>0x202B</int>    <!-- RIGHT-TO-LEFT EMBEDDING -->
341             <int>0x202C</int>    <!-- POP DIRECTIONAL FORMATTING -->
342             <int>0x202D</int>    <!-- LEFT-TO-RIGHT OVERRIDE -->
343             <int>0x202E</int>    <!-- RIGHT-TO-LEFT OVERRIDE -->
344             <int>0x202F</int>    <!-- NARROW NO-BREAK SPACE -->
345             <int>0x205F</int>    <!-- MEDIUM MATHEMATICAL SPACE -->
346             <int>0x2060</int>    <!-- WORD JOINER -->
347             <int>0x2061</int>    <!-- FUNCTION APPLICATION -->
348             <int>0x2062</int>    <!-- INVISIBLE TIMES -->
349             <int>0x2063</int>    <!-- INVISIBLE SEPARATOR -->
350             <int>0x206A</int>    <!-- INHIBIT SYMMETRIC SWAPPING -->
351             <int>0x206B</int>    <!-- ACTIVATE SYMMETRIC SWAPPING -->
352             <int>0x206C</int>    <!-- INHIBIT ARABIC FORM SHAPING -->
353             <int>0x206D</int>    <!-- ACTIVATE ARABIC FORM SHAPING -->
354             <int>0x206E</int>    <!-- NATIONAL DIGIT SHAPES -->
355             <int>0x206F</int>    <!-- NOMINAL DIGIT SHAPES -->
356             <int>0x3000</int>    <!-- IDEOGRAPHIC SPACE -->
357             <int>0x3164</int>    <!-- HANGUL FILLER -->
358             <int>0xFEFF</int>    <!-- ZERO WIDTH NO-BREAK SPACE -->
359             <int>0xFFA0</int>    <!-- HALFWIDTH HANGUL FILLER -->
360             <int>0xFFF9</int>    <!-- INTERLINEAR ANNOTATION ANCHOR -->
361             <int>0xFFFA</int>    <!-- INTERLINEAR ANNOTATION SEPARATOR -->
362             <int>0xFFFB</int>    <!-- INTERLINEAR ANNOTATION TERMINATOR -->
363         </blank>
364     </config>
365 </fontconfig>