OLD | NEW |
1 <?xml version="1.0"?> | 1 <?xml version="1.0"?> |
2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | 2 <!DOCTYPE fontconfig SYSTEM "fonts.dtd"> |
3 <!-- /etc/fonts/fonts.conf file to configure system font access --> | 3 <!-- /etc/fonts/fonts.conf file to configure system font access --> |
4 <fontconfig> | 4 <fontconfig> |
5 <match target="font"> | 5 <match target="font"> |
6 <edit name="embeddedbitmap" mode="assign"><bool>false</bool></edit> | 6 <edit name="embeddedbitmap" mode="assign"><bool>false</bool></edit> |
7 </match> | 7 </match> |
8 | 8 |
9 <match target="pattern"> | 9 <match target="pattern"> |
10 <test qual="any" name="family"> | 10 <test qual="any" name="family"> |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 <match target="pattern"> | 242 <match target="pattern"> |
243 <!-- See comments above --> | 243 <!-- See comments above --> |
244 <test name="family" compare="eq"> | 244 <test name="family" compare="eq"> |
245 <string>SubpixelPositioningAhem</string> | 245 <string>SubpixelPositioningAhem</string> |
246 </test> | 246 </test> |
247 <edit name="family" mode="assign"> | 247 <edit name="family" mode="assign"> |
248 <string>ahem</string> | 248 <string>ahem</string> |
249 </edit> | 249 </edit> |
250 </match> | 250 </match> |
251 | 251 |
| 252 <!-- When we encounter a character that the current font doesn't |
| 253 support, gfx::GetFallbackFontForChar() returns the first font |
| 254 that does have a glyph for the character. The list of fonts is |
| 255 sorted by a pattern that includes the current locale, but doesn't |
| 256 include a font family (which means that the fallback font depends |
| 257 on the locale but not on the current font). |
| 258 |
| 259 DejaVu Sans is commonly the only font that supports some |
| 260 characters, such as "⇧", and even when other candidates are |
| 261 available, DejaVu Sans is commonly first among them, because of |
| 262 the way Fontconfig is ordinarily configured. For example, the |
| 263 configuration in the Fonconfig source lists DejaVu Sans under the |
| 264 sans-serif generic family, and appends sans-serif to patterns |
| 265 that don't already include a generic family (such as the pattern |
| 266 in gfx::GetFallbackFontForChar()). |
| 267 |
| 268 To get the same fallback font in the layout tests, we could |
| 269 duplicate this configuration here, or more directly, simply |
| 270 append DejaVu Sans to all patterns. --> |
| 271 <match target="pattern"> |
| 272 <edit name="family" mode="append_last"> |
| 273 <string>DejaVu Sans</string> |
| 274 </edit> |
| 275 </match> |
| 276 |
252 </fontconfig> | 277 </fontconfig> |
OLD | NEW |