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 | |
5e23020b MW |
8 | After many half-hearted attempts to make this work properly, I'm |
9 | finally settling on this approach: define MiscFixed6x13 as a | |
10 | magic name for the right font, and then hack configuration files | |
11 | as necessary to make them use it. | |
12 | --> | |
7872c6d6 MW |
13 | <selectfont> |
14 | <acceptfont> | |
15 | <pattern> | |
16 | <patelt name="family"><string>Fixed</string></patelt> | |
17 | <patelt name="width"><int>87</int></patelt> | |
18 | </pattern> | |
19 | </acceptfont> | |
20 | <rejectfont> | |
21 | <pattern> | |
22 | <patelt name="scalable"><bool>false</bool></patelt> | |
23 | </pattern> | |
24 | </rejectfont> | |
25 | </selectfont> | |
5e23020b MW |
26 | <match target="pattern"> |
27 | <test name="family"><string>MiscFixed6x13</string></test> | |
7872c6d6 MW |
28 | <!-- edit name="size"><double>12</double></edit --> |
29 | <edit name="width"><int>87</int></edit> | |
5e23020b MW |
30 | <edit name="family"><string>Fixed</string></edit> |
31 | <edit name="foundry"><string>Misc</string></edit> | |
32 | <edit name="dpi"><int>75</int></edit> | |
d6b18bd9 | 33 | <edit mode="assign" name="pixelsize"><double>13</double></edit> |
5e23020b MW |
34 | </match> |
35 | ||
36 | <!-- Hacking for the symbol font. | |
774362e0 | 37 | |
5e23020b MW |
38 | This seems to be necessary to get Iceweasel/Firefox to do the |
39 | right thing with MathML and suchlike. | |
40 | --> | |
41 | <match target="pattern"> | |
d6b18bd9 | 42 | <test name="family"><string>symbol</string></test> |
5e23020b MW |
43 | <edit binding="strong" mode="append" name="family"> |
44 | <string>Standard Symbols L</string> | |
45 | </edit> | |
46 | </match> | |
47 | ||
48 | <!-- KDE put this here, but it seems worthwhile. | |
774362e0 | 49 | |
5e23020b MW |
50 | Modified so as to force slight hinting rather than medium, |
51 | because that actually seems to produce more legible characters. | |
52 | --> | |
53 | <match target="font"> | |
7c52b576 | 54 | <test name="scalable"><bool>true</bool></test> |
5e23020b MW |
55 | <edit mode="assign" name="rgba"><const>none</const></edit> |
56 | <edit mode="assign" name="hinting"><bool>true</bool></edit> | |
57 | <edit mode="assign" name="hintstyle"><const>hintslight</const></edit> | |
58 | <edit mode="assign" name="antialias"><bool>true</bool></edit> | |
59 | </match> | |
60 | </fontconfig> |