1 --- fontconfig-2.5.0.orig/fontconfig/fontconfig.h
2 +++ fontconfig-2.5.0/fontconfig/fontconfig.h
4 #define FC_EMBOLDEN "embolden" /* Bool - true if emboldening needed*/
5 #define FC_EMBEDDED_BITMAP "embeddedbitmap" /* Bool - true to enable embedded bitmaps */
6 #define FC_DECORATIVE "decorative" /* Bool - true if style is a decorative variant */
7 +#define FC_ANY_METRICS "anymetrics" /* Bool - true to allow metrics which do not match the requested font */
9 #define FC_CACHE_SUFFIX ".cache-"FC_CACHE_VERSION
10 #define FC_DIR_CACHE_FILE "fonts.cache-"FC_CACHE_VERSION
12 --- fontconfig-2.5.0.orig/conf.d/60-latin.conf
13 +++ fontconfig-2.5.0/conf.d/60-latin.conf
16 <family>serif</family>
18 - <family>Bitstream Vera Serif</family>
19 <family>DejaVu Serif</family>
20 + <family>Bitstream Vera Serif</family>
21 <family>Times New Roman</family>
22 <family>Thorndale AMT</family>
23 <family>Luxi Serif</family>
26 <family>sans-serif</family>
28 - <family>Bitstream Vera Sans</family>
29 <family>DejaVu Sans</family>
30 + <family>Bitstream Vera Sans</family>
31 <family>Verdana</family>
32 <family>Arial</family>
33 <family>Albany AMT</family>
36 <family>monospace</family>
38 - <family>Bitstream Vera Sans Mono</family>
39 <family>DejaVu Sans Mono</family>
40 + <family>Bitstream Vera Sans Mono</family>
41 <family>Andale Mono</family>
42 <family>Courier New</family>
43 <family>Cumberland AMT</family>
44 --- fontconfig-2.5.0.orig/conf.d/30-metric-aliases.conf
45 +++ fontconfig-2.5.0/conf.d/30-metric-aliases.conf
48 3) Alias each generic to its specifics.
49 eg. Arial to Liberation Sans, Albany, and Albany AMT
51 + However, the AMT fonts are quite ugly and do not
52 + render well on-screen, so we avoid matching them if
53 + the application said `anymetrics'; in that case, a
54 + more generic font with different metrics but better
55 + appearance will be used.
58 <!-- Map specifics to generics -->
61 <family>Liberation Sans</family>
62 <family>Albany</family>
63 - <family>Albany AMT</family>
64 + <!-- <family>Albany AMT</family> -->
70 <family>Liberation Serif</family>
71 <family>Thorndale</family>
72 - <family>Thorndale AMT</family>
73 + <!-- <family>Thorndale AMT</family> -->
79 <family>Liberation Mono</family>
80 <family>Cumberland</family>
81 - <family>Cumberland AMT</family>
82 + <!-- <family>Cumberland AMT</family> -->
86 + <match target="pattern">
87 + <test name="family">
88 + <string>Times New Roman</string>
90 + <test name="anymetrics" qual="all" compare="not_eq">
93 + <edit name="family" mode="append">
94 + <string>Thorndale AMT</string>
97 + <match target="pattern">
98 + <test name="family">
99 + <string>Arial</string>
101 + <test name="anymetrics" qual="all" compare="not_eq">
104 + <edit name="family" mode="append">
105 + <string>Albany AMT</string>
108 + <match target="pattern">
109 + <test name="family">
110 + <string>Courier New</string>
112 + <test name="anymetrics" qual="all" compare="not_eq">
115 + <edit name="family" mode="append">
116 + <string>Cumberland AMT</string>
121 --- fontconfig-2.5.0.orig/conf.d/30-urw-aliases.conf
122 +++ fontconfig-2.5.0/conf.d/30-urw-aliases.conf
124 URW provides metric and shape compatible fonts for some Adobe families.
125 Helvetica, Courier, and Times are handled in 30-metric-aliases.conf.
129 + However, these fonts are quite ugly and do not render well on-screen,
130 + so we avoid matching them if the application said `anymetrics'; in that
131 + case, a more generic font with different metrics but better appearance
134 <alias binding="same">
135 <family>Avant Garde</family>
136 <accept><family>URW Gothic L</family></accept>
138 <family>Zapf Dingbats</family>
139 <accept><family>Dingbats</family></accept>
143 + <match target="pattern">
144 + <test name="family">
145 + <string>Avant Garde</string>
147 + <test name="anymetrics" qual="all" compare="not_eq">
150 + <edit name="family" mode="append">
151 + <string>URW Gothic L</string>
154 + <match target="pattern">
155 + <test name="family">
156 + <string>Bookman</string>
158 + <test name="anymetrics" qual="all" compare="not_eq">
161 + <edit name="family" mode="append">
162 + <string>URW Bookman L</string>
165 + <match target="pattern">
166 + <test name="family">
167 + <string>Courier</string>
169 + <test name="anymetrics" qual="all" compare="not_eq">
172 + <edit name="family" mode="append">
173 + <string>Nimbus Mono L</string>
176 + <match target="pattern">
177 + <test name="family">
178 + <string>Helvetica</string>
180 + <test name="anymetrics" qual="all" compare="not_eq">
183 + <edit name="family" mode="append">
184 + <string>Nimbus Sans L</string>
187 + <match target="pattern">
188 + <test name="family">
189 + <string>New Century Schoolbook</string>
191 + <test name="anymetrics" qual="all" compare="not_eq">
194 + <edit name="family" mode="append">
195 + <string>Century Schoolbook L</string>
198 + <match target="pattern">
199 + <test name="family">
200 + <string>Palatino</string>
202 + <test name="anymetrics" qual="all" compare="not_eq">
205 + <edit name="family" mode="append">
206 + <string>URW Palladio L</string>
209 + <match target="pattern">
210 + <test name="family">
211 + <string>Times</string>
213 + <test name="anymetrics" qual="all" compare="not_eq">
216 + <edit name="family" mode="append">
217 + <string>Nimbus Roman No9 L</string>
220 + <match target="pattern">
221 + <test name="family">
222 + <string>Zapf Chancery</string>
224 + <test name="anymetrics" qual="all" compare="not_eq">
227 + <edit name="family" mode="append">
228 + <string>URW Chancery L</string>
231 + <match target="pattern">
232 + <test name="family">
233 + <string>Zapf Dingbats</string>
235 + <test name="anymetrics" qual="all" compare="not_eq">
238 + <edit name="family" mode="append">
239 + <string>Dingbats</string>
244 <match target="pattern">
246 <string>Symbol</string>
247 --- fontconfig-2.5.0.orig/conf.d/Makefile.am
248 +++ fontconfig-2.5.0/conf.d/Makefile.am
253 + 10-antialias.conf \
256 + 10-hinting-full.conf \
257 + 10-hinting-medium.conf \
258 + 10-hinting-slight.conf \
259 10-no-sub-pixel.conf \
260 10-sub-pixel-bgr.conf \
261 10-sub-pixel-rgb.conf \
266 + 53-monospace-lcd-filter.conf \
268 65-fonts-persian.conf \
274 + 10-antialias.conf \
276 + 10-hinting-medium.conf \
277 + 10-no-sub-pixel.conf \
278 20-fix-globaladvance.conf \
279 20-unhint-small-vera.conf \
280 30-urw-aliases.conf \
285 + 53-monospace-lcd-filter.conf \
287 65-fonts-persian.conf \
289 --- fontconfig-2.5.0.orig/conf.d/40-nonlatin.conf
290 +++ fontconfig-2.5.0/conf.d/40-nonlatin.conf
292 <family>Baekmuk Dotum</family>
293 <family>SimSun</family>
294 <family>MgOpen Modata</family>
295 + <family>MgOpen Moderna</family>
296 <family>Sazanami Gothic</family>
297 <family>AR PL ShanHeiSun Uni</family>
298 <family>ZYSong18030</family>
299 --- fontconfig-2.5.0.orig/conf.d/Makefile.in
300 +++ fontconfig-2.5.0/conf.d/Makefile.in
302 target_alias = @target_alias@
305 + 10-antialias.conf \
308 + 10-hinting-full.conf \
309 + 10-hinting-medium.conf \
310 + 10-hinting-slight.conf \
311 10-no-sub-pixel.conf \
312 10-sub-pixel-bgr.conf \
313 10-sub-pixel-rgb.conf \
318 + 53-monospace-lcd-filter.conf \
320 65-fonts-persian.conf \
326 + 10-antialias.conf \
328 + 10-hinting-medium.conf \
329 + 10-no-sub-pixel.conf \
330 20-fix-globaladvance.conf \
331 20-unhint-small-vera.conf \
332 30-urw-aliases.conf \
337 + 53-monospace-lcd-filter.conf \
339 65-fonts-persian.conf \
341 --- fontconfig-2.5.0.orig/src/fcname.c
342 +++ fontconfig-2.5.0/src/fcname.c
344 { FC_FONTFORMAT, FcTypeString },
345 { FC_EMBOLDEN, FcTypeBool },
346 { FC_EMBEDDED_BITMAP, FcTypeBool },
347 - { FC_DECORATIVE, FcTypeBool }, /* 40 */
348 + { FC_DECORATIVE, FcTypeBool },
349 + { FC_ANY_METRICS, FcTypeBool }, /* 41 */
352 #define NUM_OBJECT_TYPES (sizeof _FcBaseObjectTypes / sizeof _FcBaseObjectTypes[0])