Commit | Line | Data |
---|---|---|
5e23020b MW |
1 | <?xml version='1.0'?> |
2 | <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | |
3 | ||
4 | <fontconfig> | |
5 | ||
6 | <!-- Hacking for the fixed font. | |
774362e0 | 7 | |
a6780078 MW |
8 | Firstly, make sure that Fixed fonts aren't filtered out when building |
9 | the font cache. Secondly, arrange that requests for Fixed find the | |
10 | Trad version by preference. | |
5e23020b | 11 | --> |
7872c6d6 MW |
12 | <selectfont> |
13 | <acceptfont> | |
14 | <pattern> | |
15 | <patelt name="family"><string>Fixed</string></patelt> | |
7872c6d6 MW |
16 | </pattern> |
17 | </acceptfont> | |
18 | <rejectfont> | |
19 | <pattern> | |
20 | <patelt name="scalable"><bool>false</bool></patelt> | |
21 | </pattern> | |
22 | </rejectfont> | |
23 | </selectfont> | |
703257f9 | 24 | <match target="pattern"> |
a6780078 MW |
25 | <test name="family"><string>Fixed</string></test> |
26 | <edit name="dpi" mode="prepend_first"><int>75</int></edit> | |
703257f9 MW |
27 | </match> |
28 | <match target="pattern"> | |
a6780078 MW |
29 | <test name="family"><string>Fixed</string></test> |
30 | <test name="size" compare="more_eq"><double>12</double></test> | |
31 | <test name="size" compare="less_eq"><double>14</double></test> | |
32 | <edit name="foundry" mode="prepend_first"><string>Trad</string></edit> | |
33 | <edit name="size"><double>13</double></edit> | |
34 | <edit name="pixelsize"><double>13</double></edit> | |
35 | <edit name="width"><const>semicondensed</const></edit> | |
703257f9 | 36 | </match> |
5e23020b | 37 | <match target="pattern"> |
a6780078 MW |
38 | <test name="family"><string>Fixed</string></test> |
39 | <test name="pixelsize" compare="more_eq"><double>10</double></test> | |
40 | <test name="pixelsize" compare="less_eq"><double>14</double></test> | |
41 | <edit name="foundry" mode="prepend_first"><string>Trad</string></edit> | |
42 | <edit name="size"><double>13</double></edit> | |
43 | <edit name="pixelsize"><double>13</double></edit> | |
44 | <edit name="width"><const>semicondensed</const></edit> | |
9774991d MW |
45 | </match> |
46 | ||
5e23020b | 47 | <!-- Hacking for the symbol font. |
774362e0 | 48 | |
5e23020b MW |
49 | This seems to be necessary to get Iceweasel/Firefox to do the |
50 | right thing with MathML and suchlike. | |
51 | --> | |
52 | <match target="pattern"> | |
0920c561 MW |
53 | <test name="family"><string>Symbol</string></test> |
54 | <edit name="foundry"><string>urw</string></edit> | |
5e23020b MW |
55 | <edit binding="strong" mode="append" name="family"> |
56 | <string>Standard Symbols L</string> | |
57 | </edit> | |
58 | </match> | |
59 | ||
baa398b6 | 60 | <match target="pattern"> |
38c47239 MW |
61 | <test name="family"><string>Geneva</string></test> |
62 | <edit mode="append" name="family"><string>FreeSans</string></edit> | |
63 | </match> | |
64 | ||
5e23020b | 65 | <!-- KDE put this here, but it seems worthwhile. |
774362e0 | 66 | |
5e23020b MW |
67 | Modified so as to force slight hinting rather than medium, |
68 | because that actually seems to produce more legible characters. | |
69 | --> | |
70 | <match target="font"> | |
7c52b576 | 71 | <test name="scalable"><bool>true</bool></test> |
5e23020b MW |
72 | <edit mode="assign" name="rgba"><const>none</const></edit> |
73 | <edit mode="assign" name="hinting"><bool>true</bool></edit> | |
74 | <edit mode="assign" name="hintstyle"><const>hintslight</const></edit> | |
75 | <edit mode="assign" name="antialias"><bool>true</bool></edit> | |
76 | </match> | |
77 | </fontconfig> |