OXYGENHUB
◆ main openmsx / build / 3rdparty / freetype-2.13.3.diff
8.6 KiB · Diff · last changed chore(): initial commit 1 month ago source blame history raw
1
diff -ur freetype-2.13.3.orig/include/freetype/config/ftoption.h freetype-2.13.3/include/freetype/config/ftoption.h
2
--- freetype-2.13.3.orig/include/freetype/config/ftoption.h	2024-07-18 09:14:58.000000000 +0200
3
+++ freetype-2.13.3/include/freetype/config/ftoption.h	2024-10-01 00:51:24.574539971 +0200
4
@@ -180,7 +180,7 @@
5
    *
6
    *   Define this macro if you want to enable this 'feature'.
7
    */
8
-#define FT_CONFIG_OPTION_USE_LZW
9
+/* #define FT_CONFIG_OPTION_USE_LZW */
10
 
11
 
12
   /**************************************************************************
13
@@ -195,7 +195,7 @@
14
    *   Define this macro if you want to enable this 'feature'.  See also the
15
    *   macro `FT_CONFIG_OPTION_SYSTEM_ZLIB` below.
16
    */
17
-#define FT_CONFIG_OPTION_USE_ZLIB
18
+/* #define FT_CONFIG_OPTION_USE_ZLIB */
19
 
20
 
21
   /**************************************************************************
22
@@ -331,7 +331,7 @@
23
    *   You would normally undefine this configuration macro when building a
24
    *   version of FreeType that doesn't contain a Type~1 or CFF driver.
25
    */
26
-#define FT_CONFIG_OPTION_POSTSCRIPT_NAMES
27
+#undef FT_CONFIG_OPTION_POSTSCRIPT_NAMES
28
 
29
 
30
   /**************************************************************************
31
@@ -348,7 +348,7 @@
32
    *   in your 'psnames' module.  The Type~1 driver will not be able to
33
    *   synthesize a Unicode charmap out of the glyphs found in the fonts.
34
    */
35
-#define FT_CONFIG_OPTION_ADOBE_GLYPH_LIST
36
+#undef FT_CONFIG_OPTION_ADOBE_GLYPH_LIST
37
 
38
 
39
   /**************************************************************************
40
@@ -361,7 +361,7 @@
41
    *
42
    *   Note that the 'FOND' resource isn't checked.
43
    */
44
-#define FT_CONFIG_OPTION_MAC_FONTS
45
+/* #define FT_CONFIG_OPTION_MAC_FONTS */
46
 
47
 
48
   /**************************************************************************
49
@@ -538,7 +538,7 @@
50
    *
51
    *   More details on the hooks can be found in file `otsvg.h`.
52
    */
53
-#define FT_CONFIG_OPTION_SVG
54
+#undef FT_CONFIG_OPTION_SVG
55
 
56
 
57
   /**************************************************************************
58
@@ -569,7 +569,7 @@
59
    * embedded bitmaps in all formats using the 'sfnt' module (namely
60
    * TrueType~& OpenType).
61
    */
62
-#define TT_CONFIG_OPTION_EMBEDDED_BITMAPS
63
+/* #define TT_CONFIG_OPTION_EMBEDDED_BITMAPS */
64
 
65
 
66
   /**************************************************************************
67
@@ -593,7 +593,7 @@
68
    *
69
    * (By default, the module uses 'psnames' to extract glyph names.)
70
    */
71
-#define TT_CONFIG_OPTION_POSTSCRIPT_NAMES
72
+#undef TT_CONFIG_OPTION_POSTSCRIPT_NAMES
73
 
74
 
75
   /**************************************************************************
76
@@ -607,7 +607,7 @@
77
    * Accessing SFNT names is done through the functions declared in
78
    * `ftsnames.h`.
79
    */
80
-#define TT_CONFIG_OPTION_SFNT_NAMES
81
+/* #define TT_CONFIG_OPTION_SFNT_NAMES */
82
 
83
 
84
   /**************************************************************************
85
@@ -736,7 +736,7 @@
86
    * Define `TT_CONFIG_OPTION_BDF` if you want to include support for an
87
    * embedded 'BDF~' table within SFNT-based bitmap formats.
88
    */
89
-#define TT_CONFIG_OPTION_BDF
90
+/* #define TT_CONFIG_OPTION_BDF */
91
 
92
 
93
   /**************************************************************************
94
@@ -816,7 +816,7 @@
95
    * into an existing face.  Note that if set, the Type~1 driver will be
96
    * unable to produce kerning distances.
97
    */
98
-#undef T1_CONFIG_OPTION_NO_AFM
99
+#define T1_CONFIG_OPTION_NO_AFM
100
 
101
 
102
   /**************************************************************************
103
diff -ur freetype-2.13.3.orig/modules.cfg freetype-2.13.3/modules.cfg
104
--- freetype-2.13.3.orig/modules.cfg	2024-07-18 09:14:59.000000000 +0200
105
+++ freetype-2.13.3/modules.cfg	2024-10-01 00:48:16.229254426 +0200
106
@@ -37,35 +37,35 @@
107
 # PostScript Type 1 font driver.
108
 #
109
 # This driver needs the `psaux', `pshinter', and `psnames' modules.
110
-FONT_MODULES += type1
111
+#FONT_MODULES += type1
112
 
113
 # CFF/OpenType font driver.
114
 #
115
 # This driver needs the `sfnt', `psaux', `pshinter', and `psnames' modules.
116
-FONT_MODULES += cff
117
+#FONT_MODULES += cff
118
 
119
 # Type 1 CID-keyed font driver.
120
 #
121
 # This driver needs the `psaux', `pshinter', and `psnames' modules.
122
-FONT_MODULES += cid
123
+#FONT_MODULES += cid
124
 
125
 # PFR/TrueDoc font driver.  See optional extension ftpfr.c below also.
126
-FONT_MODULES += pfr
127
+#FONT_MODULES += pfr
128
 
129
 # PostScript Type 42 font driver.
130
 #
131
 # This driver needs the `truetype' and `psaux' modules.
132
-FONT_MODULES += type42
133
+#FONT_MODULES += type42
134
 
135
 # Windows FONT/FNT font driver.  See optional extension ftwinfnt.c below
136
 # also.
137
-FONT_MODULES += winfonts
138
+#FONT_MODULES += winfonts
139
 
140
 # PCF font driver.  If debugging and tracing is enabled, needs `ftbitmap.c'.
141
-FONT_MODULES += pcf
142
+#FONT_MODULES += pcf
143
 
144
 # BDF font driver.  See optional extension ftbdf.c below also.
145
-FONT_MODULES += bdf
146
+#FONT_MODULES += bdf
147
 
148
 # SFNT files support.  If used without `truetype' or `cff', it supports
149
 # bitmap-only fonts within an SFNT wrapper.
150
@@ -79,10 +79,10 @@
151
 ####
152
 
153
 # FreeType's auto hinter.
154
-HINTING_MODULES += autofit
155
+#HINTING_MODULES += autofit
156
 
157
 # PostScript hinter.
158
-HINTING_MODULES += pshinter
159
+#HINTING_MODULES += pshinter
160
 
161
 # The TrueType hinting engine doesn't have a module of its own but is
162
 # controlled in file include/freetype/config/ftoption.h
163
@@ -97,13 +97,13 @@
164
 RASTER_MODULES += smooth
165
 
166
 # Monochrome rasterizer.
167
-RASTER_MODULES += raster
168
+#RASTER_MODULES += raster
169
 
170
 # OT-SVG.
171
-RASTER_MODULES += svg
172
+#RASTER_MODULES += svg
173
 
174
 # Signed distance field rasterizer.
175
-RASTER_MODULES += sdf
176
+#RASTER_MODULES += sdf
177
 
178
 
179
 ####
180
@@ -113,7 +113,7 @@
181
 # FreeType's cache sub-system (quite stable but still in beta -- this means
182
 # that its public API is subject to change if necessary).  See
183
 # include/freetype/ftcache.h.  Needs `ftglyph.c'.
184
-AUX_MODULES += cache
185
+#AUX_MODULES += cache
186
 
187
 # TrueType GX/AAT table validation.  Needs `ftgxval.c' below.
188
 #
189
@@ -127,12 +127,12 @@
190
 # Support for streams compressed with LZW (files with suffix .Z).
191
 #
192
 # See include/freetype/ftlzw.h for the API.
193
-AUX_MODULES += lzw
194
+#AUX_MODULES += lzw
195
 
196
 # Support for streams compressed with bzip2 (files with suffix .bz2).
197
 #
198
 # See include/freetype/ftbzip2.h for the API.
199
-AUX_MODULES += bzip2
200
+#AUX_MODULES += bzip2
201
 
202
 # OpenType table validation.  Needs `ftotval.c' below.
203
 #
204
@@ -141,13 +141,13 @@
205
 # Auxiliary PostScript driver component to share common code.
206
 #
207
 # This module depends on `psnames'.
208
-AUX_MODULES += psaux
209
+#AUX_MODULES += psaux
210
 
211
 # Support for PostScript glyph names.
212
 #
213
 # This module can be controlled in ftconfig.h
214
 # (FT_CONFIG_OPTION_POSTSCRIPT_NAMES).
215
-AUX_MODULES += psnames
216
+#AUX_MODULES += psnames
217
 
218
 
219
 ####
220
@@ -157,12 +157,12 @@
221
 # Exact bounding box calculation.
222
 #
223
 # See include/freetype/ftbbox.h for the API.
224
-BASE_EXTENSIONS += ftbbox.c
225
+#BASE_EXTENSIONS += ftbbox.c
226
 
227
 # Access BDF-specific strings.  Needs BDF font driver.
228
 #
229
 # See include/freetype/ftbdf.h for the API.
230
-BASE_EXTENSIONS += ftbdf.c
231
+#BASE_EXTENSIONS += ftbdf.c
232
 
233
 # Utility functions for converting 1bpp, 2bpp, 4bpp, and 8bpp bitmaps into
234
 # 8bpp format, and for emboldening of bitmap glyphs.
235
@@ -173,17 +173,17 @@
236
 # Access CID font information.
237
 #
238
 # See include/freetype/ftcid.h for the API.
239
-BASE_EXTENSIONS += ftcid.c
240
+#BASE_EXTENSIONS += ftcid.c
241
 
242
 # Access FSType information.  Needs `fttype1.c'.
243
 #
244
 # See include/freetype/freetype.h for the API.
245
-BASE_EXTENSIONS += ftfstype.c
246
+#BASE_EXTENSIONS += ftfstype.c
247
 
248
 # Support for GASP table queries.
249
 #
250
 # See include/freetype/ftgasp.h for the API.
251
-BASE_EXTENSIONS += ftgasp.c
252
+#BASE_EXTENSIONS += ftgasp.c
253
 
254
 # Convenience functions to handle glyphs.  Needs `ftbitmap.c'.
255
 #
256
@@ -193,7 +193,7 @@
257
 # Interface for gxvalid module.
258
 #
259
 # See include/freetype/ftgxval.h for the API.
260
-BASE_EXTENSIONS += ftgxval.c
261
+#BASE_EXTENSIONS += ftgxval.c
262
 
263
 # Multiple Master font interface.
264
 #
265
@@ -203,17 +203,17 @@
266
 # Interface for otvalid module.
267
 #
268
 # See include/freetype/ftotval.h for the API.
269
-BASE_EXTENSIONS += ftotval.c
270
+#BASE_EXTENSIONS += ftotval.c
271
 
272
 # Support for FT_Face_CheckTrueTypePatents.
273
 #
274
 # See include/freetype/freetype.h for the API.
275
-BASE_EXTENSIONS += ftpatent.c
276
+#BASE_EXTENSIONS += ftpatent.c
277
 
278
 # Interface for accessing PFR-specific data.  Needs PFR font driver.
279
 #
280
 # See include/freetype/ftpfr.h for the API.
281
-BASE_EXTENSIONS += ftpfr.c
282
+#BASE_EXTENSIONS += ftpfr.c
283
 
284
 # Path stroker.  Needs `ftglyph.c'.
285
 #
286
@@ -230,13 +230,13 @@
287
 # fonts.
288
 #
289
 # See include/freetype/t1tables.h for the API.
290
-BASE_EXTENSIONS += fttype1.c
291
+#BASE_EXTENSIONS += fttype1.c
292
 
293
 # Interface for accessing data specific to Windows FNT files.  Needs winfnt
294
 # driver.
295
 #
296
 # See include/freetype/ftwinfnt.h for the API.
297
-BASE_EXTENSIONS += ftwinfnt.c
298
+#BASE_EXTENSIONS += ftwinfnt.c
299
 
300
 ####
301
 #### The components `ftsystem.c' (for memory allocation and stream I/O