-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpixelperfect.conf
262 lines (233 loc) · 11.9 KB
/
pixelperfect.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<description>Disables antialiasing for perfectly hinted glyphs</description>
<!-- Beware this can break metric compatibility. -->
<!-- Fonts with embedded bitmaps, e.g. GNU Unifont, Wine's Tahoma & Courier,
Fixedsys Excelsior, Terminus (TTF), etc., don't need this for sizes
with embedded bitmaps if "embeddedbitmap" is enabled globally.
But that can break fonts in subtle ways, e.g. for Anonymouse Pro. -->
<!-- When there's no italic or bold font for a specified typeface, this
disables antialiasing for auto-generated italics and bolds. FIXME#7 -->
<!-- Alegreya from Huerta Tipografica. The well-hinted version only. -->
<match target="font">
<test name="family"><string>Alegreya</string></test>
<test name="fontversion" compare="eq"><double>65733</double></test>
<test name="weight" compare="less"><double>100</double></test>
<test compare="less" name="pixelsize"><double>20.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Sol Mata's Bitter typeface. The hinted TTFs only. -->
<match target="font">
<test name="family"><string>Bitter</string></test>
<test name="foundry"><string>PYRS</string></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>14.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Pablo Impallari's Cabin hinted TTFs. The hinted TTFs only. -->
<match target="font">
<test name="family"><string>Cabin</string></test>
<test name="fontversion" compare="eq"><double>65864</double></test>
<test name="slant" compare="eq"><double>0</double></test>
<test name="weight" compare="less"><double>200</double></test>
<test compare="less" name="pixelsize"><double>17.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<match target="font">
<!-- No italics. -->
<test name="family"><string>Cabin Condensed</string></test>
<test name="fontversion" compare="eq"><double>65929</double></test>
<test name="weight" compare="less"><double>200</double></test>
<test compare="less" name="pixelsize"><double>17.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Jan Fromm's CamingoCode monospaced typeface. -->
<match target="font">
<test name="family"><string>CamingoCode</string></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>19.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Omnibus-Type's Chivo. The well-hinted version only. -->
<match target="font">
<test name="family"><string>Chivo</string></test>
<test name="fontversion" compare="eq"><double>65602</double></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>15.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- DejaVu Serif. The only DejaVu typeface with tolerable hinting. -->
<match target="font">
<test name="family"><string>DejaVu Serif</string></test>
<test name="style"><string>Book</string></test>
<test name="width" compare="eq"><double>100</double></test>
<test compare="less" name="pixelsize"><double>16.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Droid Serif. The only Droid typeface with tolerable hinting. -->
<match target="font">
<test name="family"><string>Droid Serif</string></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>13.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Felipa by Javier Alcaraz. No bold or italic. -->
<match target="font">
<test name="family"><string>Felipa</string></test>
<test compare="less" name="pixelsize"><double>16.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Lobster Two, the ubiquitous typeface from Pablo Impallari. -->
<match target="font">
<test name="family"><string>Lobster Two</string></test>
<test name="slant" compare="eq"><double>0</double></test>
<test compare="less" name="pixelsize"><double>13.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Inconsolata. The hinted TTF only. No italics. -->
<match target="font">
<test name="family"><string>Inconsolata</string></test>
<test name="fontversion" compare="eq"><double>66257</double></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>22.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Liberation version 1.07.5 (without Liberation Narrow). -->
<match target="font">
<test name="family"><string>Liberation Mono</string></test>
<test name="style"><string>Regular</string></test>
<test name="fontversion" compare="eq"><double>70123</double></test>
<test compare="less" name="pixelsize"><double>17.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>Liberation Sans</string></test>
<test name="style"><string>Regular</string></test>
<test name="fontversion" compare="eq"><double>70123</double></test>
<test compare="less" name="pixelsize"><double>17.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>Liberation Serif</string></test>
<test name="style"><string>Regular</string></test>
<test name="fontversion" compare="eq"><double>70123</double></test>
<test compare="less" name="pixelsize"><double>17.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Andrew Kensler's Luculent monospaced typeface. -->
<match target="font">
<test name="family"><string>Luculent</string></test>
<test name="slant" compare="eq"><double>0</double></test>
<test compare="less" name="pixelsize"><double>19.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!--Andreas Larsen's Monoid monospaced typeface (at size 9 only). -->
<match target="font">
<test name="family"><string>Monoid</string></test>
<test name="style"><string>Regular</string></test>
<test compare="eq" name="pixelsize"><double>12</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Noto Mono. The other Noto fonts are poorly hinted, if at all.
Seems to be a slightly improved version of Droid Sans Mono.
No bold or italic. Similar, but not identical, to Noto *Sans* Mono. -->
<match target="font">
<test name="family"><string>Noto Mono</string></test>
<test compare="less" name="pixelsize"><double>13.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Jovanny Lemonad's Philosopher. -->
<match target="font">
<test name="family"><string>Philosopher</string></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>17.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- ParaType's PT fonts. -->
<match target="font">
<!-- No italics. -->
<test name="family"><string>PT Mono</string></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>18.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>PT Sans</string></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>18.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<match target="font">
<!-- No italics. -->
<test name="family"><string>PT Sans Caption</string></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>16.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<match target="font">
<!-- No italics. -->
<test name="family"><string>PT Sans Narrow</string></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>19.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>PT Serif</string></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>16.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<match target="font">
<!-- No bolds. -->
<test name="family"><string>PT Serif Caption</string></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>14.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Signika by Anna Giedrys. The well-hinted version only. No italics. -->
<match target="font">
<test name="family"><string>Signika</string></test>
<test name="fontversion" compare="eq"><double>65602</double></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>13.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Simonetta by Gayaneh Bagdasarya. -->
<match target="font">
<test name="family"><string>Simonetta</string></test>
<test name="weight" compare="eq"><double>80</double></test>
<test compare="less" name="pixelsize"><double>19.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- Ubuntu's trademark typefaces. -->
<match target="font">
<!-- Targetting only Ubuntu Regular. -->
<test name="family" compare="eq"><string>Ubuntu</string></test>
<test name="slant" compare="eq"><double>0</double></test>
<test name="weight" compare="eq"><double>80</double></test>
<test compare="less" name="pixelsize"><double>18.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<match target="font">
<!-- No bold or italic. -->
<test name="family"><string>Ubuntu Condensed</string></test>
<test compare="less" name="pixelsize"><double>18.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<match target="font">
<test name="family"><string>Ubuntu Mono</string></test>
<test name="style"><string>Regular</string></test>
<test compare="less" name="pixelsize"><double>18.49</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
<!-- GNU Unifont TrueType font. Has embedded bitmaps for one size, where
disabling antialiasing is not needed. However, looks better when doing
it for the other sizes too. Do not disable it for pixelsize 16 though,
it can break rendering of diagonals for: 3, S, V, X, g, s, v, x. -->
<match target="font">
<test name="family"><string>Unifont</string></test>
<test compare="not_eq" name="pixelsize"><double>16</double></test>
<edit name="antialias"><bool>false</bool></edit>
</match>
</fontconfig>