chiark / gitweb /
el/dot-emacs.el (mdw-fontify-rust): Fix integer literal syntax.
[profile] / dot / fonts.conf
1 <?xml version='1.0'?>
2 <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
3
4 <fontconfig>
5
6   <!-- Hacking for the fixed font.
7
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.
11     -->
12   <selectfont>
13     <acceptfont>
14       <pattern>
15         <patelt name="family"><string>Fixed</string></patelt>
16       </pattern>
17     </acceptfont>
18     <rejectfont>
19       <pattern>
20         <patelt name="scalable"><bool>false</bool></patelt>
21       </pattern>
22     </rejectfont>
23   </selectfont>
24   <match target="pattern">
25     <test name="family"><string>Fixed</string></test>
26     <edit name="dpi" mode="prepend_first"><int>75</int></edit>
27   </match>
28   <match target="pattern">
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>
36   </match>
37   <match target="pattern">
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>
45   </match>
46
47   <!-- Hacking for the symbol font.
48
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">
53     <test name="family"><string>Symbol</string></test>
54     <edit name="foundry"><string>urw</string></edit>
55     <edit binding="strong" mode="append" name="family">
56       <string>Standard Symbols L</string>
57     </edit>
58   </match>
59
60   <match target="pattern">
61     <test name="family"><string>Geneva</string></test>
62     <edit mode="append" name="family"><string>FreeSans</string></edit>
63   </match>
64
65   <!-- KDE put this here, but it seems worthwhile.
66
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">
71     <test name="scalable"><bool>true</bool></test>
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>