[GTK][WPE] Bump webkitgtk-test-fonts to 0.0.8
[WebKit-https.git] / Tools / WebKitTestRunner / gtk / fonts / fonts.conf
1 <?xml version="1.0"?>
2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd">
3 <fontconfig>
4
5     <!-- This system may have turned off selection of bitmap fonts, but
6          we must turn it on again, because we want to be able to test that
7          bitmap fonts with no valid encodings are *never* selected regardless
8          of the Fontconfig settings. So force Fontconfig to select our cruddy
9          bitmap font -->
10     <selectfont>
11         <acceptfont>
12             <pattern>
13                 <patelt name="family">
14                     <string>FontWithNoValidEncoding</string>
15                 </patelt>
16             </pattern>
17         </acceptfont>
18     </selectfont>
19
20     <!-- The sans-serif font should be Liberation Serif -->
21     <match target="pattern">
22         <test qual="any" name="family">
23             <string>serif</string>
24         </test>
25         <edit name="family" mode="assign">
26             <string>Liberation Serif</string>
27         </edit>
28     </match>
29     <match target="pattern">
30         <test qual="any" name="family">
31             <string>Times</string>
32         </test>
33         <edit name="family" mode="assign">
34             <string>Liberation Serif</string>
35         </edit>
36     </match>
37     <match target="pattern">
38         <test qual="any" name="family">
39             <string>Times New Roman</string>
40         </test>
41         <edit name="family" mode="assign">
42             <string>Liberation Serif</string>
43         </edit>
44     </match>
45
46     <!-- Until we find good fonts to use for cursive and fantasy
47          just use our serif font. -->
48     <match target="pattern">
49         <test qual="any" name="family">
50             <string>cursive</string>
51         </test>
52         <edit name="family" mode="assign">
53             <string>Liberation Serif</string>
54         </edit>
55     </match>
56     <match target="pattern">
57         <test qual="any" name="family">
58             <string>fantasy</string>
59         </test>
60         <edit name="family" mode="assign">
61             <string>Liberation Serif</string>
62         </edit>
63     </match>
64
65     <!-- The sans-serif font should be Liberation Sans -->
66     <match target="pattern">
67         <test qual="any" name="family">
68             <string>sans serif</string>
69         </test>
70         <edit name="family" mode="assign">
71             <string>Liberation Sans</string>
72         </edit>
73     </match>
74     <match target="pattern">
75         <test qual="any" name="family">
76             <string>sans</string>
77         </test>
78         <edit name="family" mode="assign">
79             <string>Liberation Sans</string>
80         </edit>
81     </match>
82     <!-- We need to ensure that layout tests that use "Helvetica" don't
83         fall back to the default serif font -->
84     <match target="pattern">
85       <test qual="any" name="family">
86         <string>Helvetica</string>
87       </test>
88       <edit name="family" mode="assign">
89         <string>Liberation Sans</string>
90       </edit>
91     </match>
92     <match target="pattern">
93       <test qual="any" name="family">
94         <string>Arial</string>
95       </test>
96       <edit name="family" mode="assign">
97         <string>Liberation Sans</string>
98       </edit>
99     </match>
100     <match target="pattern">
101       <test qual="any" name="family">
102         <string>Lucida Grande</string>
103       </test>
104       <edit name="family" mode="assign">
105         <string>Liberation Sans</string>
106       </edit>
107     </match>
108
109     <!-- The Monospace font should be Liberation Mono -->
110     <match target="pattern">
111         <test qual="any" name="family">
112             <string>monospace</string>
113         </test>
114         <edit name="family" mode="assign">
115             <string>Liberation Mono</string>
116         </edit>
117     </match>
118     <match target="pattern">
119         <test qual="any" name="family">
120             <string>mono</string>
121         </test>
122         <edit name="family" mode="assign">
123             <string>Liberation Mono</string>
124         </edit>
125     </match>
126     <!-- We need to ensure that layout tests that use "Courier", "Courier New",
127          and "Monaco" (all monospace fonts) don't fall back to the default
128          serif font -->
129     <match target="pattern">
130       <test qual="any" name="family">
131         <string>Courier</string>
132       </test>
133       <edit name="family" mode="assign">
134         <string>Liberation Mono</string>
135       </edit>
136     </match>
137     <match target="pattern">
138       <test qual="any" name="family">
139         <string>Courier New</string>
140       </test>
141       <edit name="family" mode="assign">
142         <string>Liberation Mono</string>
143       </edit>
144     </match>
145     <match target="pattern">
146       <test qual="any" name="family">
147         <string>Monaco</string>
148       </test>
149       <edit name="family" mode="assign">
150         <string>Liberation Mono</string>
151       </edit>
152     </match>
153
154     <!-- Apple Color Emoji should be Noto Color Emoji -->
155     <match target="pattern">
156       <test qual="any" name="family">
157         <string>Apple Color Emoji</string>
158       </test>
159       <edit name="family" mode="assign">
160         <string>Noto Color Emoji</string>
161       </edit>
162     </match>
163
164     <!-- The following hinting specializations are adapted from those in the
165          Chromium test_shell.  We try to duplicate their incredibly thorough
166          testing here -->
167     <match target="pattern">
168         <test name="family" compare="eq">
169             <string>NonAntiAliasedSans</string>
170         </test>
171         <edit name="family" mode="assign">
172             <string>Liberation Sans</string>
173         </edit>
174         <edit name="antialias" mode="assign">
175             <bool>false</bool>
176         </edit>
177     </match>
178     
179     <match target="pattern">
180         <test name="family" compare="eq">
181             <string>SlightHintedSerif</string>
182         </test>
183         <edit name="family" mode="assign">
184             <string>Liberation Serif</string>
185         </edit>
186         <edit name="hinting" mode="assign">
187             <bool>true</bool>
188         </edit>
189         <edit name="hintstyle" mode="assign">
190             <const>hintslight</const>
191         </edit>
192     </match>
193     
194     <match target="pattern">
195         <test name="family" compare="eq">
196             <string>NonHintedSans</string>
197         </test>
198         <edit name="family" mode="assign">
199             <string>Liberation Sans</string>
200         </edit>
201         <!-- These deliberately contradict each other. The 'hinting' preference
202              should take priority -->
203         <edit name="hintstyle" mode="assign">
204             <const>hintfull</const>
205         </edit>
206         <edit name="hinting" mode="assign">
207             <bool>false</bool>
208         </edit>
209     </match>
210     
211     <match target="pattern">
212         <test name="family" compare="eq">
213             <string>AutohintedSerif</string>
214         </test>
215         <edit name="family" mode="assign">
216             <string>Liberation Serif</string>
217         </edit>
218         <edit name="hinting" mode="assign">
219             <bool>true</bool>
220         </edit>
221         <edit name="autohint" mode="assign">
222             <bool>true</bool>
223         </edit>
224         <edit name="hintstyle" mode="assign">
225             <const>hintmedium</const>
226         </edit>
227     </match>
228     
229     <match target="pattern">
230         <test name="family" compare="eq">
231             <string>HintedSerif</string>
232         </test>
233         <edit name="family" mode="assign">
234             <string>Liberation Serif</string>
235         </edit>
236         <edit name="hinting" mode="assign">
237             <bool>true</bool>
238         </edit>
239         <edit name="autohint" mode="assign">
240             <bool>false</bool>
241         </edit>
242         <edit name="hintstyle" mode="assign">
243             <const>hintmedium</const>
244         </edit>
245     </match>
246     
247     <match target="pattern">
248         <test name="family" compare="eq">
249             <string>FullAndAutoHintedSerif</string>
250         </test>
251         <edit name="family" mode="assign">
252             <string>Liberation Serif</string>
253         </edit>
254         <edit name="hinting" mode="assign">
255             <bool>true</bool>
256         </edit>
257         <edit name="autohint" mode="assign">
258             <bool>true</bool>
259         </edit>
260         <edit name="hintstyle" mode="assign">
261             <const>hintfull</const>
262         </edit>
263     </match>
264     
265     <match target="pattern">
266         <test name="family" compare="eq">
267             <string>SubpixelEnabledSans</string>
268         </test>
269         <edit name="family" mode="assign">
270             <string>Liberation Sans</string>
271         </edit>
272         <edit name="rgba" mode="assign">
273             <const>rgb</const>
274         </edit>
275     </match>
276     
277     <match target="pattern">
278         <test name="family" compare="eq">
279             <string>SubpixelDisabledSans</string>
280         </test>
281         <edit name="family" mode="assign">
282             <string>Liberation Sans</string>
283         </edit>
284         <edit name="rgba" mode="assign">
285             <const>none</const>
286         </edit>
287     </match>
288
289     <!-- We need to enable simulated bold to for DejaVu Serif to ensure that we interpret
290          this property correctly in: platform/gtk/fonts/fontconfig-synthetic-bold.html -->
291     <match target="font">
292         <test qual="any" name="family">
293             <string>DejaVu Serif</string>
294         </test>
295         <test name="weight" compare="less_eq">
296             <const>medium</const>
297         </test>
298         <test target="pattern" name="weight" compare="more">
299             <const>medium</const>
300         </test>
301         <edit name="embolden" mode="assign">
302             <bool>true</bool>
303         </edit>
304         <edit name="weight" mode="assign">
305             <const>bold</const>
306         </edit>
307     </match>
308
309     <!-- We need to enable simulated oblique to for DejaVu Serif to ensure that we interpret
310          this property correctly in: platform/gtk/fonts/fontconfig-synthetic-oblique.html -->
311     <match target="font">
312         <test qual="any" name="family">
313             <string>DejaVu Serif</string>
314         </test>
315         <test name="slant">
316             <const>roman</const>
317         </test>
318         <test target="pattern" name="slant" compare="not_eq">
319             <const>roman</const>
320         </test>
321         <edit name="matrix" mode="assign">
322             <times>
323                 <name>matrix</name>
324                 <matrix><double>1</double><double>0.2</double>
325                     <double>0</double><double>1</double>
326                 </matrix>
327             </times>
328         </edit>
329         <edit name="slant" mode="assign">
330             <const>oblique</const>
331         </edit>
332         <edit name="embeddedbitmap" mode="assign">
333             <bool>false</bool>
334         </edit>
335     </match>
336
337     <!-- These fonts should be treated as identical by CSS font fallback. -->
338     <alias binding="same">
339       <family>FamilyStrongAliasedToFreeMono</family>
340       <accept>
341         <family>FreeMono</family>
342       </accept>
343     </alias>
344
345     <!-- These fonts should NOT be treated as identical by CSS font fallback. -->
346     <alias>
347       <family>FamilyWeakAliasedToFreeMono</family>
348       <accept>
349         <family>FreeMono</family>
350       </accept>
351     </alias>
352
353     <!-- If this font doesn't have a family name we are falling back. The fallback
354          font will certainly be one of the DejaVu fonts that we have in our
355          collection since they have a wide range of characters. Fontconfig might
356          choose DejaVu Sans or DejaVu Serif depending on the system, so we force
357          the use of DejaVu Sans in these situations to maintain consistency. -->
358     <match target="pattern">
359         <test qual="all" name="family" compare="eq">
360             <string></string>
361         </test>
362         <edit name="family" mode="append_last">
363             <string>DejaVu Sans</string>
364         </edit>
365     </match>
366
367 </fontconfig>