chiark / gitweb /
Use Ian Jackson's `trad' versions of 6x13 for general display.
[profile] / dot / fonts.conf
CommitLineData
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>
703257f9
MW
26 <match target="pattern">
27 <test name="family"><string>MiscFixed6x13</string></test>
28 <test name="slant" compare="more_eq"><int>10</int></test>
29 <!-- edit name="size"><double>12</double></edit -->
30 <edit name="style"><string>Oblique SemiCondensed</string></edit>
31 <edit name="width"><int>87</int></edit>
32 <edit name="family"><string>Fixed</string></edit>
caa63513 33 <edit name="foundry"><string>Trad</string></edit>
703257f9
MW
34 <edit name="dpi"><int>75</int></edit>
35 <edit mode="assign" name="pixelsize"><double>13</double></edit>
36 </match>
37 <match target="pattern">
38 <test name="family"><string>MiscFixed6x13</string></test>
39 <test name="weight" compare="more_eq"><int>150</int></test>
40 <!-- edit name="size"><double>12</double></edit -->
41 <edit name="style"><string>Bold SemiCondensed</string></edit>
42 <edit name="width"><int>87</int></edit>
43 <edit name="family"><string>Fixed</string></edit>
caa63513 44 <edit name="foundry"><string>Trad</string></edit>
703257f9
MW
45 <edit name="dpi"><int>75</int></edit>
46 <edit mode="assign" name="pixelsize"><double>13</double></edit>
47 </match>
5e23020b
MW
48 <match target="pattern">
49 <test name="family"><string>MiscFixed6x13</string></test>
7872c6d6 50 <!-- edit name="size"><double>12</double></edit -->
2cff2e13 51 <edit name="style"><string>SemiCondensed</string></edit>
7872c6d6 52 <edit name="width"><int>87</int></edit>
5e23020b 53 <edit name="family"><string>Fixed</string></edit>
caa63513 54 <edit name="foundry"><string>Trad</string></edit>
5e23020b 55 <edit name="dpi"><int>75</int></edit>
d6b18bd9 56 <edit mode="assign" name="pixelsize"><double>13</double></edit>
5e23020b
MW
57 </match>
58
9774991d
MW
59 <match target="pattern">
60 <test name="family"><string>Symbol</string></test>
61 <edit name="foundry"><string>urw</string></edit>
62 </match>
63
5e23020b 64 <!-- Hacking for the symbol font.
774362e0 65
5e23020b
MW
66 This seems to be necessary to get Iceweasel/Firefox to do the
67 right thing with MathML and suchlike.
68 -->
69 <match target="pattern">
d6b18bd9 70 <test name="family"><string>symbol</string></test>
5e23020b
MW
71 <edit binding="strong" mode="append" name="family">
72 <string>Standard Symbols L</string>
73 </edit>
74 </match>
75
38c47239
MW
76 <match targets="pattern">
77 <test name="family"><string>Geneva</string></test>
78 <edit mode="append" name="family"><string>FreeSans</string></edit>
79 </match>
80
5e23020b 81 <!-- KDE put this here, but it seems worthwhile.
774362e0 82
5e23020b
MW
83 Modified so as to force slight hinting rather than medium,
84 because that actually seems to produce more legible characters.
85 -->
86 <match target="font">
7c52b576 87 <test name="scalable"><bool>true</bool></test>
5e23020b
MW
88 <edit mode="assign" name="rgba"><const>none</const></edit>
89 <edit mode="assign" name="hinting"><bool>true</bool></edit>
90 <edit mode="assign" name="hintstyle"><const>hintslight</const></edit>
91 <edit mode="assign" name="antialias"><bool>true</bool></edit>
92 </match>
93</fontconfig>