blob: bc589d9ae787503a9acaaa85821fb2c4bf29d1dd [file] [log] [blame]
Werner Lemberg4e1d6c02006-12-09 08:20:37 +000012006-12-08 Werner Lemberg <wl@gnu.org>
2
3 * builds/toplevel.mk (dist): Extract version number from freetype.h.
4
Werner Lemberg15c29502006-12-09 07:29:54 +000052006-12-08 Vladimir Volovich <vvv@vsu.ru>
6
7 * src/tools/apinames (State): Remove final comma in structure -- xlc
8 v5 under AIX 4.3 doesn't like this.
9
David Turnerdbf3b432006-12-07 21:18:09 +0000102006-12-07 David Turner <david@freetype.org>
11
Werner Lemberg256a3512006-12-08 06:49:33 +000012 * src/autofit/afloader.c (af_loader_load_g): Small adjustment
13 to the spacing of auto-fitted glyphs. This only impacts rare
14 cases (e.g., Arial Bold at rather small character sizes).
David Turnerdbf3b432006-12-07 21:18:09 +000015
Werner Lemberg11171312006-12-03 09:43:40 +0000162006-12-03 Werner Lemberg <wl@gnu.org>
17
18 * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttsbit0.c.
19
Werner Lemberg960ba592006-12-01 08:20:47 +0000202006-12-01 Werner Lemberg <wl@gnu.org>
David Turner80658e52006-11-28 08:09:20 +000021
Werner Lemberg960ba592006-12-01 08:20:47 +000022 * src/sfnt/sfobjs.c (tt_face_get_name): All Unicode strings are
23 encoded in UTF-16BE. Patch from Rajeev Pahuja <rpahuja@esri.com>.
24 (tt_name_entry_ascii_from_ucs4): Removed.
David Turner3a18c5e2006-11-28 08:38:31 +000025
David Turner80658e52006-11-28 08:09:20 +000026
Werner Lemberg960ba592006-12-01 08:20:47 +000027 * include/freetype/ftxf86.h: Fix and extend comment so that it
28 appears in the documentation.
David Turner80658e52006-11-28 08:09:20 +000029
Werner Lemberg960ba592006-12-01 08:20:47 +000030 * include/freetype/ftchapters.h: Add `font_format' section.
31
32
33 * src/tools/docmaker/tohtml.py (HtmlFormatter::index_exit): Add link
34 to TOC in index page.
35
362006-11-28 David Turner <david@freetype.org>
37
38 * src/smooth/ftgrays.c (gray_raster_render): Return 0 when we are
39 trying to render into a zero-width/height bitmap, not an error code.
40
41 * src/truetype/ttobjs.c (tt_face_init): Fix typo in previous patch.
42
43 * src/smooth/ftgrays.c: Remove hard-coded error values; use FreeType
44 ones instead.
45
46 * src/autofit/afhints.c (af_glyph_hints_dump_segments): Remove unused
47 variable.
David Turner80658e52006-11-28 08:09:20 +000048
Werner Lemberg8636c292006-11-26 22:28:13 +0000492006-11-26 Pierre Hanser <hanser@club-internet.fr>
50
51 * src/truetype/ttobjs.c (tt_face_init): Protect against NULL pointer.
52
Werner Lemberg960ba592006-12-01 08:20:47 +0000532006-11-25 David Turner <david@freetype.org>
David Turner1bd6c472006-11-25 01:30:40 +000054
Werner Lemberg960ba592006-12-01 08:20:47 +000055 * src/autofit/afhints.c (af_glyph_hints_dump_points,
56 af_glyph_hints_dump_segments, af_glyph_hints_dumpedges) [!AF_DEBUG]:
57 Add stubs to link the `ftgrid' test program when debugging is
58 disabled in the auto-hinter.
David Turner1bd6c472006-11-25 01:30:40 +000059
Werner Lemberg960ba592006-12-01 08:20:47 +0000602006-11-23 David Turner <david@freetype.org>
David Turner81e725f2006-11-23 14:49:48 +000061
62 * src/autofit/afhints.c, src/autofit/afhints.h, src/autofit/aflatin.c,
Werner Lemberg960ba592006-12-01 08:20:47 +000063 src/autofit/aftypes.h: Miscellaneous auto-hinter improvements.
64
65 * src/autofit/afhints.c (af_glyph_hints_dump_segments) [AF_DEBUG]:
66 Emit more sensible information.
67
68 * src/autofit/afhints.h (AF_SegmentRec): Add `height' member.
69
70 * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Improve
71 rounding of blue values.
72 (af_latin_hints_compute_segments): Hint segment heights.
73 (af_latin_hints_link_segments): Reduce `len_score' value.
74 (af_latin_hints_compute_edges): Increase `segment_length_threshold'
75 value and use `height' member for comparisons.
76 (af_latin_hint_edges): Extend logging message.
77 Improve handling of remaining edges.
David Turner81e725f2006-11-23 14:49:48 +000078
Werner Lemberg91959bf2006-11-22 10:36:55 +0000792006-11-22 Werner Lemberg <wl@gnu.org>
80
81 Fix Savannah bug #15553.
82
83 * src/truetype/ttgload.c (tt_loader_init): Re-execute the CVT
84 program after a change from mono to grayscaling (and vice versa).
85 Use correct constant for comparison to get `exec->grayscale'.
86
Werner Lemberg913a3652006-11-19 09:19:17 +0000872006-11-18 Werner Lemberg <wl@gnu.org>
88
89 Because FT_Load_Glyph expects CID values for CID-keyed fonts, the
David Turner81e725f2006-11-23 14:49:48 +000090 test for a valid glyph index must be deferred to the font drivers.
Werner Lemberg913a3652006-11-19 09:19:17 +000091 This patch fixes Savannah bug #18301.
92
93 * src/base/ftobjs.c (FT_Load_Glyph): Don't check `glyph_index'.
94 * src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/cff/cffgload.c
95 (cff_slot_load), src/cid/cidgload.c (cid_slot_load_glyph),
96 src/pcf/pcfdrivr.c (PCF_Glyph_Load), src/pfr/pfrobjs.c
97 (pfr_slot_load), src/truetype/ttdriver.c (Load_Glyph),
98 src/type1/t1gload.c (T1_Load_Glyph), src/winfonts/winfnt.c
99 (FNT_Load_Glyph): Check validity of `glyph_index'.
100
David Turner7bab6ae2006-11-13 11:25:06 +00001012006-11-13 David Turner <david@freetype.org>
102
Werner Lemberg0d0d78d2006-11-14 10:37:10 +0000103 * src/truetype/ttinterp.c (FIX_BYTECODE): Undefine. The interpreter
104 `enhancements' are still too buggy for general use.
David Turner7bab6ae2006-11-13 11:25:06 +0000105
Werner Lemberg0d0d78d2006-11-14 10:37:10 +0000106 * src/base/ftlcdfil.c: Add support for FT_FORCE_LIGHT_LCD_FILTER and
107 FT_FORCE_LEGACY_LCD_FILTER at compile time. Define these macros
108 when building the library to change the default LCD filter to be
109 used. This is only useful for experimentation.
David Turner29c191c2006-11-13 13:03:48 +0000110
Werner Lemberg0d0d78d2006-11-14 10:37:10 +0000111 * include/freetype/ftlcdfil.h: Update documentation.
David Turnera95e5c62006-11-13 13:24:30 +0000112
David Turner8765c712006-11-10 16:49:42 +00001132006-11-10 David Turner <david@freetype.org>
114
Werner Lemberg0d0d78d2006-11-14 10:37:10 +0000115 * src/smooth/ftsmooth.c: API change for the LCD
116 filter. The FT_LcdFilter value is an enumeration describing which
117 filter to apply, with new values FT_LCD_FILTER_LIGHT and
118 FT_LCD_FILTER_LEGACY (the latter implements the LibXft original
119 algorithm which produces strong color fringes for everything
120 except very-well hinted text).
David Turner8765c712006-11-10 16:49:42 +0000121
Werner Lemberg0d0d78d2006-11-14 10:37:10 +0000122 * include/freetype/ftlcdfil.h (FT_Library_SetLcdFilter): Change
123 second parameter to an enum type.
124
125 * src/base/ftlcdfil.c (USE_LEGACY): Define.
126 (_ft_lcd_filter): Rename to...
127 (_ft_lcd_filter_fir): This.
128 Update parameters.
129 (_ft_lcd_filter_legacy) [USE_LEGACY]: New filter function.
130 (FT_Library_Set_LcdFilter): Update parameters.
131 Handle new filter modes.
132
133 * include/internal/ftobjs.h: Include FT_LCD_FILTER_H.
134 (FT_Bitmap_LcdFilterFunc): Change third argument to `FT_Library'.
135 (FT_LibraryRec) [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Add filtering
136 callback and update other fields.
137
138 * src/smooth/ftsmooth.c (ft_smooth_render_generic)
139 [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: Update.
140 Other minor improvements.
141
142 * src/autofit/aflatin.c: Various tiny improvements that drastically
143 improve the handling of serif fonts and of LCD/LCD_V hinting modes.
144 (af_latin_hints_compute_edges): Fix typo.
145 (af_latin_compute_stem_width): Take better care of diagonal stems.
David Turner8765c712006-11-10 16:49:42 +0000146
David Turner4e9cc3c2006-11-09 16:31:52 +00001472006-11-09 David Turner <david@freetype.org>
148
Werner Lemberg49c77a82006-11-09 21:51:57 +0000149 * src/pshinter/pshalgo.c (psh_glyph_compute_inflections): Fix
150 typo which created a variable-used-before-initialized bug.
David Turner4e9cc3c2006-11-09 16:31:52 +0000151
Werner Lemberg5e430892006-11-07 09:35:03 +00001522006-11-07 Zhe Su <james.su@gmail.com>
153
154 * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Handle vertical layout
155 also.
156
Werner Lemberg111b5ae2006-11-03 09:40:12 +00001572006-11-03 Werner Lemberg <wl@gnu.org>
158
159 * src/base/ftcalc.c: Don't use `long long' but `FT_Int64'.
160
David Turner40604742006-11-02 16:37:35 +00001612006-11-02 David Turner <david@freetype.org>
162
Werner Lemberg111b5ae2006-11-03 09:40:12 +0000163 Add a few tweaks to better handle serif fonts.
164 Add more debugging messages.
David Turner91b44e62006-11-02 23:28:09 +0000165
Werner Lemberg111b5ae2006-11-03 09:40:12 +0000166 * src/autofit/aflatin.c (af_latin_hints_compute_edges): Ignore
167 segments that are less than 1.5 pixels high. This gets rid of
168 *many* corner cases with serifs.
169 (af_latin_align_linked_edge): Add logging message.
170 (af_latin_hint_edges): Use AF_HINTS_DO_BLUES.
171 Add logging messages.
172 Handle AF_EDGE_FLAG flag specially.
173
174 * src/autofit/afmodule.c [AF_DEBUG]: Add _af_debug,
175 _af_debug_disable_blue_hints, and _af_debug_hints variables.
176
177 * src/autofit/aftypes.h (AF_LOG) [AF_DEBUG]: Use _af_debug.
178 Update external declarations.
179 (af_corner_orientation, af_corner_is_flat): Replaced by...
180
181 * include/freetype/internal/ftcalc.h (ft_corner_orientation,
182 ft_corner_is_flat): These declarations.
183
184 * src/autofit/afangles.c (af_corner_orientation, af_corner_is_flat):
185 Comment out. Replaced by...
186
187 * src/base/ftcalc.h (ft_corner_orientation, ft_corner_is_flat):
188 These functions. Update all callers.
189 (FT_Add64) [!FT_LONG64]: Simplify.
190
191 * src/autofit/afhints.c: Include FT_INTERNAL_CALC_H.
192 (af_direction_compute): Add a missing FT_ABS call. This bug caused
193 production of garbage by missing lots of segments.
194
195 * src/autofit/afhints.h (AF_HINTS_DO_BLUES): New macro.
196
197 * src/autofit/afloader.c (af_loader_init, af_loader_done)
198 [AF_DEBUG]: Set _af_debug_hints.
199
200
201 * src/pshinter/pshalgo.c: Include FT_INTERNAL_CALC_H.
202 (psh_corner_is_flat, psh_corner_orientation): Use ft_corner_is_flat
203 and ft_corner_orientation.
204
205
206 * src/gzip/inftrees.c (huft_build): Remove compiler warning.
David Turner40604742006-11-02 16:37:35 +0000207
Werner Lemberge88c5262006-10-24 05:46:26 +00002082006-10-24 Werner Lemberg <wl@gnu.org>
209
210 * src/cff/cffload.c (cff_encoding_load): Remove unused variable.
211
212 * src/base/ftobjs.c (FT_Select_Charmap): Disallow FT_ENCODING_NONE
213 as argument.
214
David Turnera1861392006-10-23 16:00:59 +00002152006-10-23 Zhe Su <zsu@novell.com>
216
Werner Lemberg715e96e2006-10-24 05:28:45 +0000217 * src/base/ftoutln.c (FT_Outline_Get_Orientation): Re-implement to
218 better deal with broken Asian fonts with strange glyphs, having
219 self-intersections and other peculiarities. The used algorithm is
220 based on the nonzero winding rule.
David Turnera1861392006-10-23 16:00:59 +0000221
David Turnere140f142006-10-23 08:56:57 +00002222006-10-23 David Turner <david@freetype.org>
223
Werner Lemberg715e96e2006-10-24 05:28:45 +0000224 Speed up the CFF font loader. With some large CFF fonts,
225 FT_Open_Face is now more than three times faster.
David Turner29873a02006-10-23 10:23:17 +0000226
Werner Lemberg715e96e2006-10-24 05:28:45 +0000227 * src/cff/cffload.c (cff_get_offset): Removed.
228 (cff_new_index): Inline functionality of `cff_get_offset'.
229 (cff_charset_compute_cids, cff_charset_free_cids): New functions.
230 (cff_charset_done): Call `cff_charset_free_cids'.
231 (cff_charset_load): Call `cff_charset_compute_cids'.
232 (cff_encoding_load) <Populate>: Ditto, to replace inefficient loop.
233
234 * src/sfnt/ttmtx.c (tt_face_load_hmtx): Replace calls to FT_GET_XXX
235 with FT_NEXT_XXX.
236
237
238 Speed up the Postscript hinter, with more than 100% speed increase
239 on my machine.
240
241 * src/pshinter/pshalgo.c (psh_corner_is_flat,
242 psh_corner_orientation): New functions.
243 (psh_glyph_compute_inflections): Merge loops for efficiency.
244 Use `psh_corner_orientation'.
245 (psh_glyph_init): Use `psh_corner_is_flat'.
246 (psh_hint_table_find_strong_point): Renamed to...
247 (psh_hint_table_find_strong_points): This.
248 Rewrite, adding argument to handle all points at once.
249 Update all callers.
250 (PSH_MAX_STRONG_INTERNAL): New macro.
251 (psh_glyph_interpolate_normal_points): Rewrite for efficiency.
David Turnere140f142006-10-23 08:56:57 +0000252
Suzuki, Toshiya (鈴木俊哉)07088262006-10-15 07:15:28 +00002532006-10-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
254
255 * src/base/ftmac.c (FT_New_Face_From_FOND): Initialize variable
Werner Lembergb9e6d692006-10-15 08:58:40 +0000256 `error' with FT_Err_Ok.
Suzuki, Toshiya (鈴木俊哉)07088262006-10-15 07:15:28 +0000257
Suzuki, Toshiya (鈴木俊哉)bfe872d2006-10-14 13:08:05 +00002582006-10-14 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
259
260 * docs/INSTALL.CROSS: New document file for cross-building.
261
262 * builds/unix/configure.raw: Preliminary cross-building support.
263 Find native C compiler and pass it by CC_BUILD, and
264 find suffix for native executable and pass it by EXEEXT_BUILD.
265 Also suffix for target executable is passed by EXEEXT.
266
Werner Lembergb9e6d692006-10-15 08:58:40 +0000267 * builds/unix/unix-cc.in (CCraw_build, E_BUILD): New variables to
268 build `apinames' which runs on building system. They are set by
Suzuki, Toshiya (鈴木俊哉)bfe872d2006-10-14 13:08:05 +0000269 CC_BUILD and EXEEXT_BUILD.
270
Werner Lembergb9e6d692006-10-15 08:58:40 +0000271 * builds/exports.mk (APINAMES_EXE): Change the extension for
272 apinames from the suffix for target (E) to that for building host
273 (E_BUILD).
Suzuki, Toshiya (鈴木俊哉)bfe872d2006-10-14 13:08:05 +0000274
Werner Lemberg82a07e92006-10-12 06:20:44 +00002752006-10-12 Werner Lemberg <wl@gnu.org>
276
277 * docs/INSTALL.UNX, docs/UPGRADE.UNX: Renamed to...
278 * docs/INSTALL.UNIX, docs/UPGRADE.UNIX: This. Update all documents
279 which reference those files.
280
Suzuki, Toshiya (鈴木俊哉)9d499612006-10-12 01:35:54 +00002812006-10-12 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
282
Werner Lembergb9e6d692006-10-15 08:58:40 +0000283 * builds/unix/configure.raw (FT2_EXTRA_LIBS): New variable. It is
284 embedded in freetype2.pc and freetype-config. Use it to record
285 Carbon dependency of MacOSX.
Suzuki, Toshiya (鈴木俊哉)9d499612006-10-12 01:35:54 +0000286
287 * builds/unix/freetype2.in: Embed FT2_EXTRA_LIBS.
288
289 * builds/unix/freetype-config.in: Ditto.
290
Werner Lemberg28e17d92006-10-11 17:27:47 +00002912006-10-11 Werner Lemberg <wl@gnu.org>
292
293 * devel/ftoption.h (FT_CONFIG_OPTION_SUBPIXEL_RENDERING): Define for
294 development.
295
Jens Claudius336d2292006-10-03 08:53:37 +00002962006-10-03 Jens Claudius <jens.claudius@yahoo.com>
297
298 * include/freetype/config/ftstdlib.h: Cast away volatileness from
299 argument to ft_setjmp.
300
301 * include/freetype/internal/ftvalid.h: Add comment that
302 ft_validator_run must not be used.
303
Werner Lemberg2863cfa2006-10-01 17:04:00 +00003042006-10-01 Werner Lemberg <wl@gnu.org>
305
306 * src/base/ftbase.c: Undo change from 2006-09-30.
307
308 * src/base/rules.mk (BASE_SRC): Remove `ftlcdfil.c'.
309
3102006-09-30 David Turner <david@freetype.org>
311
Werner Lemberg046bf8b2006-10-03 08:43:42 +0000312 * include/freetype/internal/ftobjs.h (FT_Face_InternalRec):
313 s/unpatented_hinting/ignore_unpatented_hinter/.
314 Update all callers.
315
316 * src/base/ftobjs.c (FT_Load_Glyph): Refine the algorithm whether
317 auto-hinting shall be used or not.
318
319 * src/truetype/ttobjs.c (tt_face_init): Ditto.
David Turnere140f142006-10-23 08:56:57 +0000320
Werner Lemberg2863cfa2006-10-01 17:04:00 +00003212006-09-30 Werner Lemberg <wl@gnu.org>
322
Werner Lemberg1e4402e2006-09-29 22:10:36 +0000323 * src/base/rules.mk (BASE_SRC): Remove `ftapi.c' (which is no longer
324 in use).
325
326 * src/base/ftbase.c: Include `ftlcdfil.c'.
327
Werner Lemberg9b15ea32006-09-29 18:22:11 +00003282006-09-29 Werner Lemberg <wl@gnu.org>
329
330 * src/sfnt/ttcmap.c (tt_cmap4_char_map_binary): Fix algorithm for
331 overlapping segments. Bug reported by Stefan Koch.
332
David Turnerad830712006-09-27 16:20:59 +00003332006-09-28 David Turner <david@freetype.org>
334
Werner Lemberg2c002e12006-09-29 21:31:53 +0000335 Fix a bug in the automatic unpatented hinting support which prevents
336 normal bytecode hinting to work properly.
David Turnerad830712006-09-27 16:20:59 +0000337
Werner Lemberg2c002e12006-09-29 21:31:53 +0000338 * include/freetype/internal/ftobjs.h (FT_Face_InternalRec):
339 s/force_autohint/unpatented_hinting/. Update all callers.
340
341 * src/base/ftobjs.c (FT_Load_Glyph): Updated code.
342
343 * src/autofit/aftypes.h (AF_DEBUG): Undefine to get rid of traces.
David Turnerad830712006-09-27 16:20:59 +0000344
David Turner8a317cf2006-09-27 07:52:48 +00003452006-09-27 David Turner <david@freetype.org>
346
Werner Lemberg2c002e12006-09-29 21:31:53 +0000347 * include/freetype/freetype.h (FT_FREETYPE_PATCH): Set to 2.
David Turner8a317cf2006-09-27 07:52:48 +0000348
David Turner8a317cf2006-09-27 07:52:48 +0000349
David Turnere140f142006-10-23 08:56:57 +0000350 Add a new API to support color filtering of subpixel glyph bitmaps.
Werner Lemberg2c002e12006-09-29 21:31:53 +0000351 In a default build, the function `FT_Library_SetLcdFilter' returns
352 `FT_Err_Unimplemented_Feature'; you need to #define
353 FT_CONFIG_OPTION_SUBPIXEL_RENDERING in ftoption.h to compile the
354 real implementation.
David Turner8a317cf2006-09-27 07:52:48 +0000355
Werner Lemberg2c002e12006-09-29 21:31:53 +0000356 * include/freetype/ftlcdfil.h, src/base/ftlcdfil.c: New files.
David Turner8a317cf2006-09-27 07:52:48 +0000357
Werner Lemberg2c002e12006-09-29 21:31:53 +0000358 * include/freetype/internal/ftobjs.h (FT_Bitmap_LcdFilterFunc): New
359 typedef.
360 (FT_LibraryRec) [FT_CONFIG_OPTION_SUBPIXEL_RENDERING]: New members
361 `lcd_filter_weights' and `lcd_filter'.
David Turner26bb2e22006-09-27 07:58:43 +0000362
Werner Lemberg2c002e12006-09-29 21:31:53 +0000363 * src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove arguments
364 `hmul' and `vmul'.
Werner Lemberg715e96e2006-10-24 05:28:45 +0000365
Werner Lemberg2c002e12006-09-29 21:31:53 +0000366 Handle subpixel rendering.
367 Simplify function.
368 (ft_smooth_render_lcd): Use `FT_RENDER_MODE_LCD'.
369 (ft_smooth_render_lcd_v): Use `FT_RENDER_MODE_LCD_V'.
370
371 * include/freetype/config/ftheader.h (FT_LCD_FILTER_H): New macro,
372 pointing to <freetype/ftlcdfil.h>.
373
374 * src/base/Jamfile (_sources), src/base/rules.mk (BASE_SRC),
375 vms_make.com: Add `ftlcdfil.c' to the list of compiled source files.
376
377 * modules.cfg (BASE_EXTENSIONS): Add ftlcdfil.c.
David Turner87e4b332006-09-27 08:45:49 +0000378
Werner Lemberge20df4a2006-09-27 06:29:21 +00003792006-09-26 David Bustin
380
381 * src/pfr/pfrobjs.c (pfr_face_get_kerning): Skip adjustment bytes
382 correctly. Reported as Savannah bug #17843.
383
David Turner6f8c6222006-09-26 15:42:44 +00003842006-09-26 David Turner <david@freetype.org>
385
Werner Lemberg110246c2006-09-26 21:55:44 +0000386 * src/autofit/afhints.h (AF_HINTS_DO_HORIZONTAL,
387 AF_HINTS_DO_VERTICAL, AF_HINTS_DO_ADVANCE): New macros to disable
388 horizontal and vertical hinting for the purpose of debugging the
389 auto-fitter.
David Turner6f8c6222006-09-26 15:42:44 +0000390
Werner Lemberg110246c2006-09-26 21:55:44 +0000391 * src/autofit/afmodule.c (_af_debug_disable_horz_hints,
392 _af_debug_disable_vert_hints) [AF_DEBUG]: New global variables.
David Turnere3d6e942006-09-26 16:58:21 +0000393
Werner Lemberg110246c2006-09-26 21:55:44 +0000394 * src/autofit/aftypes.h [AF_DEBUG]: Declare above variables.
395
396 * include/freetype/config/ftoption.h, devel/ftoption.h
397 (FT_CONFIG_OPTION_SUBPIXEL_RENDERING): New macro to control whether
398 we want to compile LCD-optimized rendering code (à la ClearType) or
399 not. The macro *must* be disabled in default builds of the library
400 for patent reasons.
401
402 * src/smooth/ftsmooth.c (ft_smooth_render_generic): Disable
403 LCD-specific rendering when FT_CONFIG_OPTION_SUBPIXEL_RENDERING
404 isn't defined at compile time. This only changes the content of the
405 rendered glyph to match the one of normal gray-level rendering,
406 hence clients should not need to be modified.
407
408 * docs/CHANGES: Updated.
David Turnere3d6e942006-09-26 16:58:21 +0000409
Werner Lemberg745ff2c2006-09-19 05:48:02 +00004102006-09-18 Garrick Meeker <garrick@digitalanarchy.com>
411
412 * src/base/ftmac.c (FT_New_Face_From_FOND): Fall back to SFNT if
413 LWFN fails and both are available.
414
David Turnerf3050052006-09-11 12:00:32 +00004152006-09-11 David Turner <david@freetype.org>
416
Werner Lembergf9644552006-09-12 13:48:10 +0000417 * src/sfnt/sfobjs.c (tt_face_get_name): Support some fonts which
418 report their English names through an Apple Roman
419 (platform,encoding) pair, with language_id != English.
David Turnerf3050052006-09-11 12:00:32 +0000420
Werner Lembergf9644552006-09-12 13:48:10 +0000421 If the font uses another name entry with language_id == English, it
422 will be selected correctly, though.
David Turnerf3050052006-09-11 12:00:32 +0000423
Werner Lembergf9644552006-09-12 13:48:10 +0000424 * src/truetype/ttobjs.c (tt_face_init): Add unpatented hinting
425 selection for `mingli.ttf'.
David Turnerf3050052006-09-11 12:00:32 +0000426
Werner Lemberg36d2eab2006-09-05 19:24:34 +00004272006-09-05 Werner Lemberg <wl@gnu.org>
428
429 * src/truetype/ttpload.c (tt_face_load_hdmx): Handle `record_size'
Werner Lembergf9644552006-09-12 13:48:10 +0000430 values which have the upper two bytes set to 0xFF instead of 0x00
Werner Lemberg36d2eab2006-09-05 19:24:34 +0000431 (as it happens in at least two CJKV fonts, `HAN NOM A.ttf' and
432 `HAN NOM B.ttf').
433
434 * src/smooth/ftgrays.c [GRAYS_USE_GAMMA]: Really remove all code.
435
David Turner772e55d2006-09-05 09:45:15 +00004362006-09-05 David Turner <david@freetype.org>
437
Werner Lemberg36d2eab2006-09-05 19:24:34 +0000438 Minor source cleanups and optimizations.
David Turnerc7bc9b72006-09-05 12:17:38 +0000439
Werner Lemberg36d2eab2006-09-05 19:24:34 +0000440 * src/smooth/ftgrays.c (GRAYS_COMPACT): Removed.
441 (TRaster): Remove `count_ex' and `count_ey'.
442 (gray_find_cell): Remove 2nd and 3rd argument.
443 (gray_alloc_cell): Merged with `gray_find_cell'.
444 (gray_record_cell): Simplify.
445 (gray_set_cell): Rewrite.
446 (gray_start_cell): Apply offsets to `ras.ex' and `ras.ey'.
447 (gray_render_span): Don't use FT_MEM_SET for small values.
448 (gray_dump_cells) [DEBUG_GRAYS]: New function.
449 (gray_sweep): Avoid buffer overwrites when to drawing the end of a
450 bitmap scanline.
451 (gray_convert_glyph): Fix speed-up.
David Turner772e55d2006-09-05 09:45:15 +0000452
David Turneraa557a92006-09-04 16:42:44 +00004532006-09-04 David Turner <david@freetype.org>
454
Werner Lembergd1fc7d42006-09-05 07:55:42 +0000455 * src/smooth/ftgrays.c (gray_convert_glyphs): Make it work with
456 64bit processors.
David Turneraa557a92006-09-04 16:42:44 +0000457
Werner Lemberg2d8629b2006-09-03 06:18:45 +00004582006-09-03 Werner Lemberg <wl@gnu.org>
459
460 * devel/ftoption.h: Synchronize with
461 include/freetype/config/ftoption.h.
462
463 * src/smooth/ftgrays.c (gray_record_cell): Remove shadowing
464 variable declaration.
465 (gray_convert_glyph): Fix compiler warnings.
466
David Turner6d79f212006-09-01 14:09:35 +00004672006-09-01 David Turner <david@freetype.org>
468
Werner Lemberg2d8629b2006-09-03 06:18:45 +0000469 * src/truetype/ttobjs.c (tt_face_init): Update the TrueType loader
470 to recognize a few fonts that require the automatic unpatented
471 loader.
David Turnerbd502952006-09-01 19:05:24 +0000472
Werner Lemberg2d8629b2006-09-03 06:18:45 +0000473 * src/smooth/ftgrays.c: Optmize the performance of the anti-aliased
474 rasterizer. The speed improvement is between 15% and 25%, depending
475 on the font data.
476
477 (GRAYS_USE_GAMMA, GRAYS_COMPACT): Removed, and all associated code.
478 (TCell): Redefine.
479 (TRaster): New members `buffer', `buffer_size', `ycells', `ycount'.
480 (gray_init_cells): Updated.
481 (gray_find_cell, gray_alloc_cell): New functions.
482 (gray_record_cell): Rewritten to use `gray_find_cell' and
483 `gray_alloc_cell'.
484 (PACK, LESS_THAN, SWAP_CELLS, DEBUG_SORT, QUICK_SORT, SHELL_SORT,
485 QSORT_THRESHOLD):
486 Removed.
487 (gray_shell_sort, gray_quick_sort, gray_check_sort,
488 gray_dump_cells): Removed.
489 (gray_sweep): Rewritten.
490 (gray_convert_glyph): Rewrite code which used one of the sorting
491 functions.
492 (gray_raster_render): Updated.
David Turner6d79f212006-09-01 14:09:35 +0000493
Werner Lembergd898aed2006-08-29 09:50:34 +00004942006-08-29 Dr. Werner Fink <werner@suse.de>
495
496 * configure: Make it possible to handle configure options which
497 have strings containing spaces.
498
4992006-08-27 David Turner <david@freetype.org>
500
Werner Lemberg2d8629b2006-09-03 06:18:45 +0000501 * include/freetype/config/ftoption.h (TT_USE_BYTECODE_INTERPRETER):
502 New macro, defined if either TT_CONFIG_OPTION_BYTECODE_INTERPRETER
503 or TT_CONFIG_OPTION_UNPATENTED_HINTING is defined.
504
505 * include/freetype/internal/ftcalc.h, src/base/ftcalc.c,
506 src/truetype/truetype.c, src/truetype/ttdriver.c,
507 src/truetype/ttgload.c, src/truetype/ttgload.h,
508 src/truetype/ttinterp.c, src/truetype/ttobjs.c,
509 src/truetype/ttobjs.h, src/truetype/ttpload.c, src/type42/t42drivr.c:
510 s/TT_CONFIG_OPTION_BYTECODE_INTERPRETER/TT_USE_BYTECODE_INTERPRETER/.
511
512 * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): New
513 member `force_autohint'.
514
515 * src/base/ftobjs.c (FT_Load_Glyph): Use `force_autohint'.
516
517 * src/truetype/ttobjs.c (tt_face_init): Prepare code for testing
518 against a list of font names which need the bytecode interpreter.
Werner Lembergd898aed2006-08-29 09:50:34 +0000519
Jens Claudiusa787f452006-08-27 11:26:18 +00005202006-08-27 Jens Claudius <jens.claudius@yahoo.com>
521
522 Fix miscellaneous compiler warnings.
523
Werner Lemberg2d8629b2006-09-03 06:18:45 +0000524 * freetype2/include/freetype/internal/ftobjs.h: Close comment with
525 `*/' to avoid `/* in comment' compiler warning.
Jens Claudiusa787f452006-08-27 11:26:18 +0000526
Werner Lemberg2d8629b2006-09-03 06:18:45 +0000527 * freetype2/src/base/ftdbgmem.c (ft_mem_table_get_source): Turn cast
528 `(FT_UInt32)(void*)' into `(FT_UInt32)(FT_PtrDist)(void*)' since on
529 64-bit platforms void* is larger than FT_UInt32.
Jens Claudiusa787f452006-08-27 11:26:18 +0000530
Werner Lemberg2d8629b2006-09-03 06:18:45 +0000531 * freetype2/src/base/ftobjs.c (t_validator_error): Cast away
532 volatileness of argument to ft_longjmp. Spotted by Werner
533 `Putzfrau' Lemberg.
Jens Claudiusa787f452006-08-27 11:26:18 +0000534
Werner Lemberg2d8629b2006-09-03 06:18:45 +0000535 * freetype2/src/bdf/bdflib.c (bdf_load_font): Initialize local
536 variable `lineno'.
Jens Claudiusa787f452006-08-27 11:26:18 +0000537
Werner Lemberg2d8629b2006-09-03 06:18:45 +0000538 * freetype2/src/gxvalid/gxvmod.c (classic_kern_validate): Mark local
539 variable `error' as volatile.
Jens Claudiusa787f452006-08-27 11:26:18 +0000540
Werner Lembergc4c35b72006-08-27 08:03:46 +00005412006-08-27 Werner Lemberg <wl@gnu.org>
542
543 * builds/unix/ftconfig.in: Synchronize with main ftconfig.h.
544 Reported by Jens.
545
Jens Claudius088e44e2006-08-22 14:24:30 +00005462006-08-22 Jens Claudius <jens.claudius@yahoo.com>
Werner Lembergc4c35b72006-08-27 08:03:46 +0000547
Jens Claudius088e44e2006-08-22 14:24:30 +0000548 Fix for previous commit, which caused many compiler warnings/errors
Werner Lembergc4c35b72006-08-27 08:03:46 +0000549 about addresses of volatile objects passed as function arguments as
550 non-volatile pointers.
Jens Claudius088e44e2006-08-22 14:24:30 +0000551
Werner Lembergc4c35b72006-08-27 08:03:46 +0000552 * freetype2/include/freetype/internal/ftvalid.h: Make FT_Validator
553 typedef a pointer to a volatile object.
Jens Claudius088e44e2006-08-22 14:24:30 +0000554
555 * freetype2/src/gxvalid/gxvmod.c (gxv_load_table): Make function
556 argument `table' a pointer to a volatile object.
557
558 * freetype2/src/otvalid/otvmod.c (otv_load_table): Make function
559 argument `table' a pointer to a volatile object.
560
Jens Claudius2652bd52006-08-18 17:20:37 +00005612006-08-18 Jens Claudius <jens.claudius@yahoo.com>
562
563 * freetype2/src/gxvalid/gxvmod.c (GXV_TABLE_DECL): Mark local
564 variable `_sfnt' as volatile since it must keep its value across
565 a call to ft_setjmp.
566 (gxv_validate): Same for local variables `memory' and `valid'.
567 (classic_kern_validate): Same for local variables `memory',
568 `ckern', and `valid'.
569
570 * freetype2/src/otvalid/otvmod.c (otv_validate): Same for function
571 parameter `face' and local variables `base', `gdef', `gpos', `gsub',
572 `jstf', and 'valid'.
573
574 * freetype2/src/sfnt/ttcmap.c (tt_face_build_cmaps): Same for
575 local variable `cmap'.
576
David Turner9fbfc6a2006-08-16 09:11:31 +00005772006-08-16 David Turner <david@freetype.org>
578
Werner Lemberg12342992006-08-19 11:18:09 +0000579 * src/cid/cidgload.c (cid_slot_load_glyph): Remove compiler
580 warnings.
David Turner9fbfc6a2006-08-16 09:11:31 +0000581
Werner Lemberg12342992006-08-19 11:18:09 +0000582 * src/base/ftobjs.c (ft_validator_run): Disable function; it is
583 buggy by design. Always return -1.
David Turner2b21a932006-08-16 09:24:32 +0000584
David Turner33f5f242006-08-16 16:50:55 +0000585
Werner Lemberg12342992006-08-19 11:18:09 +0000586 Improvements to native TrueType hinting. This is a first try,
587 controlled by the FIX_BYTECODE macro in src/truetype/ttinterp.c.
588
589 * include/freetype/internal/ftgloadr.h (FT_GlyphLoadRec): Add member
590 `extra_points2'.
591
592 * include/freetype/internal/tttypes.h (TT_GlyphZoneRec): Add member
593 `orus'.
594
595 * src/base/ftgloadr.c (FT_GlyphLoader_Reset,
596 FT_GlyphLoader_Adjust_Points, FT_GlyphLoader_CreateExtra,
597 FT_GlyphLoader_CheckPoints, FT_GlyphLoader_CopyPoints): Updated to
598 handle `extra_points2'.
599
600 * src/truetype/ttgload.c (tt_prepare_zone): Handle `orus'.
601 Remove compiler warning.
602 (cur_to_arg): Remove macro.
603 (TT_Hint_Glyph): Updated.
604 (TT_Process_Simple_Glyph): Handle `orus'.
605
606 * src/truetype/ttinterp.c (FIX_BYTECODE): New macro.
607 (Ins_MD, Ins_MDRP, Ins_IP) [FIX_BYTECODE]: Handle `orus'.
608 (LOC_Ins_IUP): Renamed to...
609 (IUP_WorkerRec): This.
610 Add `orus' member.
611 (Shift): Renamed to...
612 (_iup_worker_shift): This.
613 Updated.
614 (Interp): Renamed to...
615 (_iup_worker_interpolate): This.
616 Updated to handle `orus'.
617 (Ins_IUP): Updated.
618
619 * src/truetype/ttobjs.c (tt_glyphzone_done, tt_glyphzone_new):
620 Handle `orus'.
David Turner33f5f242006-08-16 16:50:55 +0000621
Suzuki, Toshiya (鈴木俊哉)e261f422006-08-15 17:00:43 +00006222006-08-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
623
Suzuki, Toshiya (鈴木俊哉)f1e96062006-08-15 17:02:47 +0000624 * modules.cfg (BASE_EXTENSIONS): Compile in ftgxval.c by default to
Werner Lemberg12342992006-08-19 11:18:09 +0000625 build ftvalid in ft2demos. This has been inadvertedly changed
626 2006-08-13.
Suzuki, Toshiya (鈴木俊哉)f1e96062006-08-15 17:02:47 +0000627
6282006-08-15 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
629
Werner Lemberg12342992006-08-19 11:18:09 +0000630 `ft_validator_run' wrapping `setjmp' can cause a crash, as found by
631 Jens:
632 http://lists.nongnu.org/archive/html/freetype-devel/2006-08/msg00004.htm.
Suzuki, Toshiya (鈴木俊哉)e261f422006-08-15 17:00:43 +0000633
Werner Lemberg12342992006-08-19 11:18:09 +0000634 * freetype2/src/otvalid/otvmod.c: Replace `ft_validator_run' by
635 `ft_setjmp'. It reverts the change introduced on 2005-08-20.
Suzuki, Toshiya (鈴木俊哉)e261f422006-08-15 17:00:43 +0000636
637 * freetype2/src/gxvalid/gxvmod.c: Ditto.
638
Jens Claudius9950adc2006-08-13 12:14:36 +00006392006-08-13 Jens Claudius <jens.claudius@yahoo.com>
640
Werner Lemberg12342992006-08-19 11:18:09 +0000641 * freetype2/include/freetype/internal/psaux.h: (T1_TokenType): Add
642 T1_TOKEN_TYPE_KEY.
643 (T1_FieldRec): Add `dict'.
644 (T1_FIELD_DICT_FONTDICT, T1_FIELD_DICT_PRIVATE): New macros.
645 (T1_NEW_XXX, T1_FIELD_XXX): Update to take the dictionary where a PS
646 keyword is expected as an additional argument.
Jens Claudius9950adc2006-08-13 12:14:36 +0000647
Werner Lemberg12342992006-08-19 11:18:09 +0000648 * freetype2/src/cid/cidload.c: (cid_field_records): Adjust
649 invocations of T1_FIELD_XXX.
Jens Claudius9950adc2006-08-13 12:14:36 +0000650
651 * freetype2/src/cid/cidtoken.h: Adjust invocations of T1_FIELD_XXX.
652
653 * freetype2/src/psaux/psobjs.c: Add macro FT_COMPONENT for tracing.
Werner Lemberg12342992006-08-19 11:18:09 +0000654 (ps_parser_to_token): Report a PostScript key as T1_TOKEN_TYPE_KEY,
655 not T1_TOKEN_TYPE_ANY.
656 (ps_parser_load_field): Make sure a token that should be a string or
657 name is really a string or name.
658 Avoid memory leak if a keyword has been already encountered and its
659 value is overwritten.
660 * freetype2/src/type1/t1load.c: (t1_keywords): Adjust invocations of
661 T1_FIELD_XXX.
662 (parse_dict): Ignore keywords that occur in the wrong dictionary
663 (e.g., in `Private' instead of `FontDict').
Jens Claudius9950adc2006-08-13 12:14:36 +0000664
Werner Lemberg12342992006-08-19 11:18:09 +0000665 * freetype2/src/type1/t1tokens.h: Adjust invocations of
666 T1_FIELD_XXX.
Jens Claudius9950adc2006-08-13 12:14:36 +0000667
Werner Lemberg12342992006-08-19 11:18:09 +0000668 * freetype2/src/type42/t42parse.c: (t42_keywords): Adjust
669 invocations of T1_FIELD_XXX.
Jens Claudius9950adc2006-08-13 12:14:36 +0000670
Werner Lemberga4d6a1c2006-07-19 09:54:56 +00006712006-07-18 Jens Claudius <jens.claudius@yahoo.com>
672
673 Move creation of field `buildchar' of T1_DecoderRec out of
674 `t1_decoder_init' and let the caller of `t1_decoder_init' take care
675 of it.
676
677 Call the finisher for T1_Decoder in `cid_face_compute_max_advance'
678 and `T1_Compute_Max_Advance'.
679
680 * freetype2/include/freetype/internal/psaux.h (T1_DecoderRec):
681 Remove field `face', add `len_buildchar'.
682
683 * freetype2/include/freetype/internal/t1types.h (T1_FaceRec): Add
684 field `buildchar'.
685
686 * freetype2/src/cid/cidgload.c (cid_face_compute_max_advance): Call
687 finisher for T1_Decoder.
688 (cid_slot_load_glyph): Do not ignore failure when initializing the
689 T1_Decoder.
690
691 * freetype2/src/psaux/t1decode.c (t1_decoder_parse_charstrings):
692 Updated.
693 (t1_decoder_init): Remove initialization of fields `buildchar' and
694 `len_buildchar'.
695 (t1_decoder_done): Remove deallocation of field `buildchar'.
696
697 * freetype/src/type1/t1gload.c (T1_Compute_Max_Advance): Initialize
698 T1_Decoder's `buildchar' and `len_buildchar'; call finisher for
699 T1_Decoder.
700 (T1_Load_Glyph): Initialize T1_Decoder's `buildchar' and
701 `len_buildchar'; make sure to call finisher for T1_Decoder even in
702 case of error.
703
704 * freetype2/src/type1/t1load.c (T1_Open_Face): Allocate new field
705 `buildchar' of T1_FaceRec.
706
707 * freetype2/src/type1/t1objs.c (T1_Face_Done): Free new field
708 `buildchar' of T1_FaceRec.
709
Werner Lemberg1a380e02006-07-14 18:28:08 +00007102006-07-14 Jens Claudius <jens.claudius@yahoo.com>
711
712 * freetype2/include/freetype/internal/psaux.h: New macros
713 IS_PS_NEWLINE, IS_PS_SPACE, IS_PS_SPECIAL, IS_PS_DELIM, IS_PS_DIGIT,
714 IS_PS_XDIGIT, and IS_PS_BASE85 (from freetype2/src/psaux/psconv.h).
715 (T1_FieldLocation): Add T1_FIELD_LOCATION_LOADER,
716 T1_FIELD_LOCATION_FACE, and T1_FIELD_LOCATION_BLEND.
717 (T1_DecoderRec): New fields `buildchar' and `face'.
718 (IS_PS_TOKEN): New macro.
719
720 * freetype2/include/freetype/internal/t1types.h (T1_FaceRec): New
721 fields `ndv_idx', `cdv_idx', and `len_buildchar'.
722
723 * freetype2/include/freetype/t1tables.h (PS_BlendRec): New fields
724 `default_design_vector' and `num_default_design_vector'.
725
726 * freetype2/src/psaux/psconv.h: Move macros IS_PS_NEWLINE,
727 IS_PS_SPACE, IS_PS_SPECIAL, IS_PS_DELIM, IS_PS_DIGIT, IS_PS_XDIGIT,
728 and IS_PS_BASE85 to freetype2/include/freetype/internal/psaux.h.
729
730 * freetype2/src/psaux/psobjs.c (ps_parser_to_token_array): Allow
731 `token' argument to be NULL if we want only to count the number of
732 tokens.
733 (ps_tocoordarray): Allow `coords' argument to be NULL if we just
734 want to skip the array.
735 (ps_tofixedarray): Allow `values' argument to be NULL if we just
736 want to skip the array.
737
738 * freetype2/src/psaux/t1decode.c (t1_decoder_parse_charstrings): Add
739 support for (partially commented out) othersubrs 19-25, 27, and 28.
740 (t1_decoder_init): Initialize new fields `face' and `buildchar'.
741 (t1_decoder_done): Release new field `buildchar'.
742
743 * freetype2/src/type1/t1load.c (parse_buildchar, parse_private): New
744 functions.
745 (t1_keywords): Register them.
746 (t1_allocate_blend): Updated.
747 (t1_load_keyword): Handle field types T1_FIELD_LOCATION_LOADER,
748 T1_FIELD_LOCATION_FACE and T1_FIELD_LOCATION_BLEND.
749 (parse_dict): Remove `keyword_flags' argument.
750 Use new macro IS_PS_TOKEN.
751 Changed function so that later PostScript definitions override
752 earlier ones.
753 (t1_init_loader): Initialize new field `keywords_encountered'.
754 (T1_Open_Face): Initialize new fields `ndv_idx', `cdv_idx', and
755 `len_buildchar'.
756 Remove `keywords_flags'.
757
758 * freetype2/src/type1/t1load.h (T1_LoaderRect): New field
759 `keywords_encountered'.
760 (T1_PRIVATE, T1_FONTDIR_AFTER_PRIVATE): New macros.
761
762 * freetype2/src/type1/t1tokens.h [!T1_CONFIG_OPTION_NO_MM_SUPPORT]:
763 New entries for parsing /NDV, /CDV, and /DesignVector.
764
Werner Lemberg4af3c4d2006-07-08 21:31:24 +00007652006-07-07 Werner Lemberg <wl@gnu.org>
766
767 Add many checks to protect against malformed PCF files.
768
769 * src/pcf/pcfdrivr.c (PCF_Face_Done): Protect against NULL pointers.
770 (PCF_Face_Init): Add calls to PCF_Face_Done in case of errors.
771
772 * src/pcf/pcfread.c (pcf_read_TOC): Protect against malformed table
773 data and check that tables don't overlap (using a simple
774 bubblesort).
775 (PCF_METRIC_SIZE, PCF_COMPRESSED_METRIC_SIZE, PCF_PROPERTY_SIZE):
776 New macros which give the size of data structures in the data
777 stream.
778 (pcf_get_properties): Use rough estimates to get array size limits.
779 Assign `face->nprops' and `face->properties' earlier so that a call
780 to PCF_Face_Done can do the clean-up in case of error.
781 Protect against invalid string offsets.
782 (pcf_get_metrics): Clean up code.
783 Adjust tracing message levels.
784 Use rough estimate to get array size limit.
785 (pcf_get_bitmaps): Clean up code.
786 Adjust tracing message levels.
787 Use rough estimates to get offset limits.
788 (pcf_get_encodings): Adjust tracing message level.
789 (pcf_get_accel): Clean up code.
790
Werner Lemberg8eb05252006-06-27 06:20:01 +00007912006-06-26 Werner Lemberg <wl@gnu.org>
792
793 * src/bdf/bdfdrivr.c (BDF_Face_Init): Handle fonts correctly which
794 don't have a POINT_SIZE property. This fixes Savannah bug #16914.
795
Werner Lemberg24703f82006-06-26 19:12:51 +00007962006-06-26 Jens Claudius <jens.claudius@yahoo.com>
797
798 * src/psaux/t1decode.c (T1_Operator, t1_args_count): Add opcode 15.
799 (t1_decoder_parse_charstrings): Operator with
800 opcode 15 pops its two arguments.
801 Handle the case where the pops of an othersubr may be part of a
802 subroutine.
803 Handle unknown othersubrs gracefully: count their operands and let
804 the following pop operators push the operands as the results onto
805 the Type1 stack.
806 Improve handling of setcurrentpoint opcode.
807
Werner Lembergc011f4c2006-06-26 09:40:00 +00008082006-06-25 Jens Claudius <jens.claudius@yahoo.com>
809
810 The Type 1 parser now skips over top-level procedures as required
811 for a `Simplified Parser'. This makes the parser more robust as it
812 doesn't poke around in PostScript code. Additionally, it makes the
813 FontDirectory hackery in src/type1/t1load.c unnecessary.
814
815 * src/psaux/psobjs.c (IS_OCTAL_DIGIT): New macro.
816 (skip_literal_string): Add FT_Error as return value.
817 Handle escapes better.
818 (skip_string): Add FT_Error as return value.
819 Don't set `parser->error' but return error code directly.
820 (skip_procedure): New function.
821 (ps_parser_skip_PS_token): Handle procedures.
822 Update code.
823 (ps_parser_to_token): Update code.
824 (ps_parser_load_field_table): Handle bbox entries also.
825
826 * src/type1/t1load.c (parse_dict): Remove FontDirectory hackery.
827 Add commented-out code for synthetic fonts.
828
Werner Lemberga2da05c2006-06-25 06:27:27 +00008292006-06-24 Eugeniy Meshcheryakov <eugen@univ.kiev.ua>
830
831 Fix two hinting bugs as reported in
832 http://lists.nongnu.org/archive/html/freetype-devel/2006-06/msg00057.html.
833
834 * include/freetype/internal/tttypes.h (TT_GlyphZoneRec): Add
835 `first_point' member.
836
837 * src/truetype/ttgload.c (tt_prepare_zone): Initialize
838 `first_point'.
839 (TT_Process_Composite_Glyph): Always untouch points.
840
841 * src/truetype/ttinterp.c (Ins_SHC): Fix computation of
842 `first_point' and `last_point' in case of composite glyphs.
843 (Ins_IUP): Fix computation of `end_point'.
844
Suzuki, Toshiya (鈴木俊哉)52311972006-06-22 02:34:27 +00008452006-06-22 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
846
Werner Lembergef3d2c22006-06-25 06:07:14 +0000847 Insert EndianS16_BtoN and EndianS32_BtoN as workaround for Intel
848 Mac. The original patch was written by David Sachitano and Lawrence
849 Coopet, and modified by Sean McBride for MPW compatibility. Only
850 required data are converted; unused data are left in big endian.
Suzuki, Toshiya (鈴木俊哉)52311972006-06-22 02:34:27 +0000851
Werner Lembergef3d2c22006-06-25 06:07:14 +0000852 * src/base/ftmac.c: Include <Endian.h> for byteorder macros for non
853 Mac OS X platforms.
854 (OS_INLINE): Undefine before definition.
855 (count_faces_sfnt): Insert EndianS16_BtoN to parse the header of
856 FontAssociation table in FOND resource.
857 (count_faces_scalable): Insert EndianS16_BtoN to parse the header
858 and fontSize at each entry of FontAssociation table in FOND
859 resource.
860 (parse_fond): Insert EndianS16_BtoN and EndianS32_BtoN to parse
861 ffStylOff of FamilyRecord header of FOND resource, the header,
862 fontSize, fontID at each entry of FontAssociation table, and
863 StyleMapping table.
864 (count_faces): Call `HUnlock' after all FOND utilization.
Suzuki, Toshiya (鈴木俊哉)52311972006-06-22 02:34:27 +0000865
Suzuki, Toshiya (鈴木俊哉)817831f2006-06-15 09:05:41 +00008662006-06-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
867
Werner Lemberg67d2f3a2006-06-16 06:50:36 +0000868 Public API of TrueTypeGX, OpenType, and classic kern table validator
869 should return `FT_Err_Unimplemented_Feature' if validation service
870 is unavailable (disabled in `modules.cfg'). It is originally
David Turner9fbfc6a2006-08-16 09:11:31 +0000871 suggested by David Turner, cf.
Suzuki, Toshiya (鈴木俊哉)817831f2006-06-15 09:05:41 +0000872 http://lists.gnu.org/archive/html/freetype-devel/2005-11/msg00078.html
873
Werner Lemberg67d2f3a2006-06-16 06:50:36 +0000874 * src/base/ftgxval.c (FT_TrueTypeGX_Validate): Return
875 FT_Err_Unimplemented_Feature if TrueTypeGX validation service is
876 unavailable.
877 (FT_ClassicKern_Validate): Return FT_Err_Unimplemented_Feature if
878 classic kern table validation service is unavailable.
Suzuki, Toshiya (鈴木俊哉)817831f2006-06-15 09:05:41 +0000879
Werner Lemberg67d2f3a2006-06-16 06:50:36 +0000880 * src/base/ftotval.c (FT_OpenType_Validate): Return
881 FT_Err_Unimplemented_Feature if OpenType validation service is
882 unavailable.
Suzuki, Toshiya (鈴木俊哉)817831f2006-06-15 09:05:41 +0000883
Werner Lembergb10e45a2006-06-08 07:32:56 +00008842006-06-08 Werner Lemberg <wl@gnu.org>
885
886 * src/bdf/bdflib.c (bdf_load_font): Fix memory leaks in case of
887 errors.
888
David Turner5f1f7502006-06-07 05:11:50 +00008892006-06-07 David Turner <david@freetype.org>
890
Werner Lemberg7d48cb02006-06-08 06:00:08 +0000891 * src/type1/t1afm.c (KERN_INDEX): Make it more robust.
892 (T1_Read_Metrics): Fix memory leak which happened when the metrics
893 file doesn't have kerning pairs. This fixes Savannah bug #16768.
David Turner5f1f7502006-06-07 05:11:50 +0000894
David Turner457b4a82006-06-06 08:14:14 +00008952006-06-06 David Turner <david@freetype.org>
896
Werner Lemberg4836f952006-06-06 12:54:08 +0000897 Fix memory leak described in Savannah bug #16759.
David Turner457b4a82006-06-06 08:14:14 +0000898
Werner Lemberg4836f952006-06-06 12:54:08 +0000899 We change `ps_unicodes_init' so that it also takes a
900 `free_glyph_name' callback to release the glyph names returned by
901 `get_glyph_name'
902
903 * include/freetype/internal/services/svpscmap.h (PS_Glyph_NameFunc):
904 Renamed to ...
905 (PS_GetGlyphNameFunc): This.
906 (PS_FreeGlyphNameFunc): New typedef.
907 (PS_Unicodes_InitFunc): Add variable for PS_FreeGlyphNameFunc.
908
909 * src/cff/cffcmap.c (cff_sid_to_glyph_name): Use `TT_Face' for first
910 argument.
911 (cff_sid_free_glyph_name): New function.
912 (cff_cmap_unicode_init): Updated.
913
914 * src/psaux/t1cmap.c (t1_cmap_unicode_init): Updated.
915
916 * src/psnames/psmodule.c (ps_unicodes_init): Add variable for
917 PS_FreeGlyphNameFunc and use it.
David Turner457b4a82006-06-06 08:14:14 +0000918
919
David Turner09717352006-06-04 14:33:08 +00009202006-06-04 David Turner <david@freetype.org>
921
Werner Lembergd724f202006-06-04 15:17:41 +0000922 * src/base/ftutil.c (ft_mem_qrealloc): Fix the function to accept
923 `item_size == 0' as well -- though this sounds weird, it can
924 theorically happen. This fixes Savannah bug #16669.
David Turnerea4547c2006-06-04 14:50:57 +0000925
Werner Lembergd724f202006-06-04 15:17:41 +0000926 * src/pfr/pfrobjs.c (pfr_face_init): Fix the computation
927 of `face->num_glyphs' which missed the last glyph, due to
928 the offset-by-1 computation, since the PFR format doesn't
929 guarantee that glyph index 0 corresponds to the `missing
930 glyph. This fixes Savannah bug #16668.
David Turner09717352006-06-04 14:33:08 +0000931
Werner Lemberg33779662006-05-26 06:30:05 +00009322006-05-25 Werner Lemberg <wl@gnu.org>
933
934 * builds/unix/unix-cc.in (LINK_LIBRARY): Don't comment out
935 `-no-undefined'. Reported by Christian Biesinger.
936
Werner Lemberg24773d62006-05-20 08:53:13 +00009372006-05-19 Brian Weed <bw@imaginengine.com>
938
939 * builds/win32/visualc/freetype.dsp: Release libraries no longer
940 have debug information, and debug libraries use `C7 compatible'
941 debug info.
942
Suzuki, Toshiya (鈴木俊哉)47200602006-05-19 10:48:42 +00009432006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
944
Werner Lemberga6523a62006-05-20 08:47:01 +0000945 Apply patch by Derek Clegg to fix two memory leaks in the MacOS
Werner Lembergd724f202006-06-04 15:17:41 +0000946 resource fork handler. This fixes Savannah bug #16631.
Suzuki, Toshiya (鈴木俊哉)de0a96c2006-05-19 23:16:12 +0000947
Werner Lemberga6523a62006-05-20 08:47:01 +0000948 * src/base/ftobjs.c (load_face_in_embedded_rfork): Replace
949 `FT_Stream_Close' by `FT_Stream_Free' to fix memory leak.
Suzuki, Toshiya (鈴木俊哉)de0a96c2006-05-19 23:16:12 +0000950
951 * src/base/ftrfrk.c (raccess_guess_linux_double_from_file_name):
Werner Lemberga6523a62006-05-20 08:47:01 +0000952 Replace `FT_Stream_Close' by `FT_Stream_Free' to fix memory leak.
Suzuki, Toshiya (鈴木俊哉)de0a96c2006-05-19 23:16:12 +0000953
9542006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
955
Suzuki, Toshiya (鈴木俊哉)8cfa8bd2006-05-19 22:11:50 +0000956 * build/unix/configure.raw: Add a fallback to disable Carbon
957 dependency, if configured with no options on Mac OS X.
958
9592006-05-19 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
960
Suzuki, Toshiya (鈴木俊哉)47200602006-05-19 10:48:42 +0000961 * src/base/ftmac.c (open_face_from_buffer): Deallocate stream when
Werner Lemberga6523a62006-05-20 08:47:01 +0000962 its content cannot be parsed as supported font. This fixes
Suzuki, Toshiya (鈴木俊哉)47200602006-05-19 10:48:42 +0000963 the second part of Savannah bug #16590.
964
Werner Lemberg545c4e52006-05-17 22:55:04 +00009652006-05-18 Werner Lemberg <wl@gnu.org>
966
967 * src/truetype/ttgload.c (TT_Load_Composite_Glyph)
968 [FT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Make it compilable again.
969
David Turnerdc3ff312006-05-17 12:59:35 +00009702006-05-17 David Turner <david@freetype.org>
971
Werner Lemberg545c4e52006-05-17 22:55:04 +0000972 This is a major patch used to drastically improve the performance of
973 loading glyphs. This both speeds up loading the glyph vectors
974 themselves and the auto-fitter module.
David Turner281679d2006-05-17 13:34:21 +0000975
Werner Lemberg545c4e52006-05-17 22:55:04 +0000976 We now use inline assembler code with GCC to implement `FT_MulFix',
977 which is probably the most important function related to the
978 engine's performance.
David Turner281679d2006-05-17 13:34:21 +0000979
Werner Lemberg545c4e52006-05-17 22:55:04 +0000980 The resulting speed-up is about 25%.
David Turner281679d2006-05-17 13:34:21 +0000981
982
Werner Lemberg545c4e52006-05-17 22:55:04 +0000983 * include/freetype/internal/tttypes.h (TT_LoaderRec): Add fields
984 `cursor' and `limit'.
985
986 * src/autofit/afangles.c (af_corner_is_flat, af_corner_orientation):
987 New functions.
988 (AF_ATAN_BITS, af_arctan, af_angle_atan): Comment out.
989 [TEST]: Remove.
990
991 * src/autofit/afcjk.c (AF_Script_UniRangeRec): Comment out test
992 code.
993
994 * src/autofit/afhints.c (af_axis_hints_new_segment): Don't call
995 `FT_ZERO'
996 (af_direction_compute, af_glyph_hints_compute_inflections): Rewritten.
997 (af_glyph_hints_reload: Rewrite recognition of weak points.
998
999 * src/autofit/aflatin.c (af_latin_hints_compute_segments): Move
1000 constant values out of the loops.
1001
1002 * src/autofit/aftypes.h: Updated.
1003
1004 * src/base/ftcalc.c (FT_MulFix): Use inline assembler code.
1005
1006 * src/base/ftoutln.c (FT_Outline_Get_Orientation): Use vector
1007 product to get orientation.
1008
1009 * src/gzip/ftgzip.c (ft_get_uncompressed_size): New function.
1010 (FT_Stream_OpenGzip): Use it to handle small files directly in
1011 memory.
1012
1013 * src/psaux/psconv.c (PS_Conv_ASCIIHexDecode, PS_ConvEexecDecode):
1014 Improve performance.
1015
1016 * src/truetype/ttgload.c (TT_Access_Glyph_Frame): Set `cursor' and
1017 `limit'.
1018
1019 (TT_Load_Glyph_Header, TT_Load_Simple_Glyph,
1020 TT_Load_Composite_Glyph): Updated. Add threshold to protect against
1021 exceedingly large values of number of contours. Speed up by
1022 reducing the number of loops.
1023
1024 * src/type1/t1gload.c (T1_Load_Glyph): Don't apply unit matrix.
1025
1026
1027 * src/cache/ftccmap.c (FTC_CMapCache_Lookup): Change the threshold
1028 used to detect rogue clients from 4 to 16. This is to prevent some
1029 segmentation faults with fonts like `KozMinProVI-Regular.otf' which
1030 comes from the Japanese Adobe Reader Asian Font pack.
David Turnerdc3ff312006-05-17 12:59:35 +00001031
Werner Lembergde2d90a2006-05-17 08:54:30 +000010322007-05-17 Werner Lemberg <wl@gnu.org>
1033
1034 * src/cff/cffload.c (cff_font_done): Deallocate subfont array. This
David Turner281679d2006-05-17 13:34:21 +00001035 fixes the first part of Savannah bug #16590.
Werner Lembergde2d90a2006-05-17 08:54:30 +00001036
10372006-05-16 Werner Lemberg <wl@gnu.org>
1038
1039 * docs/PROBLEMS: Updated icl issues.
1040
Werner Lemberg6756dc12006-05-12 08:00:13 +000010412006-05-12 Werner Lemberg <wl@gnu.org>
1042
Werner Lemberg8ab412d2006-05-12 15:09:02 +00001043
1044 * Version 2.2.1 released.
Werner Lembergde2d90a2006-05-17 08:54:30 +00001045 =========================
Werner Lemberg8ab412d2006-05-12 15:09:02 +00001046
1047
1048 Tag sources with `VER-2-2-1'.
1049
10502006-05-12 Werner Lemberg <wl@gnu.org>
1051
Werner Lemberg6756dc12006-05-12 08:00:13 +00001052 * src/tools/docmaker/sources.py (re_source_keywords): Add word
1053 boundary markers.
1054 * src/tools/docmaker/content.py (re_field): Allow `.' in field names
1055 (but not at the beginning or end).
Werner Lemberge12a4712006-05-12 14:20:43 +00001056 * src/tools/docmaker/tohtml.py (html_header_1): Use `utf-8' charset.
Werner Lemberg6e467a62006-05-12 15:05:45 +00001057 (block_footer): Split into...
1058 (block_footer_start, block_footer_middle, block_footer_end): This to
1059 add navigation buttons.
1060 (HtmlFormatter::block_exit): Updated.
Werner Lemberg6756dc12006-05-12 08:00:13 +00001061
1062 * include/freetype/*: Many minor documentation improvements (adding
1063 links, spelling errors, etc.).
1064
Werner Lembergfd74ec62006-05-12 04:00:44 +000010652006-05-11 Werner Lemberg <wl@gnu.org>
1066
1067 * README: Minor updates.
1068
1069 * include/freetype/*: s/scale/scaling value/ where appropriate.
1070 Many other minor documentation improvements.
1071
1072 * src/tools/docmaker/sources.py (re_italic, re_bold): Handle
1073 trailing punctuation.
1074 * src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_word): Add
1075 warning message for undefined cross references.
1076 Update handling of re_italic and re_bold.
1077
Yamato, Masatake (大和正武)28b55a92006-05-11 03:01:42 +000010782006-05-11 Masatake YAMATO <jet@gyve.org>
David Turner281679d2006-05-17 13:34:21 +00001079
1080 * builds/unix/ftsystem.c (FT_Stream_Open): Check errno only if
Yamato, Masatake (大和正武)28b55a92006-05-11 03:01:42 +00001081 read system call returns -1.
1082 Remove a redundant parenthesis.
1083
Werner Lembergb80d85f2006-05-10 04:47:35 +000010842006-05-10 Werner Lemberg <wl@gnu.org>
1085
1086 * builds/unix/ftsystem.c (FT_Stream_Open): Avoid infinite loop if
1087 given an empty, un-mmap()able file. Reported and suggested fix in
1088 Savannah bug #16555.
1089
Werner Lemberge0d15592006-05-10 13:44:47 +00001090 * builds/freetype.mk (refdoc): Write-protect the `docmaker'
1091 directory to suppress generation of .pyc files. According to the
1092 Python docs there isn't a more elegant solution (currently).
1093
1094 * builds/toplevel.mk (dist): New target which builds .tar.gz,
1095 .tar.bz2, and .zip files. Note that the version number is still
1096 hard-coded.
1097 (do-dist): Sub-target of `dist'.
1098 (CONFIG_GUESS, CONFIG_SUB): New variables.
1099 (.PHONY): Updated.
1100
Werner Lemberga127ca42006-05-09 13:41:50 +000011012006-05-09 Rajeev Pahuja <rpahuja@esri.com>
1102
1103 * builds/win32/visualc/freetype.sln,
1104 builds/win32/visualc/freetype.vcproj: Upgraded to VS.NET 2005 from
1105 VS.NET 2003
1106 Added files ftbbox.c, fttype1.c, ftwinfnt.c, ftsynth.c.
1107
1108 * builds/win32/visualc/index.html: Updated.
1109
Werner Lemberg4df5b262006-05-08 07:10:29 +000011102006-05-07 Werner Lemberg <wl@gnu.org>
1111
1112 Put version information into the configure script. Reported by Paul
1113 Watson <pwatson@redlinepy.com>.
1114
1115 * builds/unix/configure.ac: Renamed to...
1116 * builds/unix/configure.raw: This which now serves (with appropriate
1117 modifications) as a template for configure.ac.
1118
1119 * version.sed: New script.
1120
1121 * autogen.sh: Generate configure.ac from configure.raw, using
1122 FREETYPE_MAJOR, FREETYPE_MINOR, and FREETYPE_PATCH from freetype.h.
1123
Werner Lemberg1639c792006-05-06 16:44:58 +000011242006-05-06 Werner Lemberg <wl@gnu.org>
1125
1126 * include/freetype/freetype.h (FREETYPE_PATCH): Set to 1.
1127
1128 * builds/unix/configure.ac (version_info): Set to 9:10:3.
1129
1130 * builds/win32/visualc/index.html,
1131 builds/win32/visualc/freetype.dsp,
1132 builds/win32/visualc/freetype.vcproj, builds/freetype.mk (refdoc),
1133 Jamfile (RefDoc), README: s/220/221/, s/2.2.0/2.2.1/.
1134 Minor updates.
1135
1136 * docs/CHANGES, docs/VERSION.DLL, docs/PROBLEMS, README.CVS:
1137 Updated.
1138
1139 * builds/unix/install-sh: Updated from `texinfo' CVS module at
Werner Lemberg4836f952006-06-06 12:54:08 +00001140 savannah.gnu.org.
Werner Lemberg1639c792006-05-06 16:44:58 +00001141
1142 * devel/ftoption.h: Synchronize with
1143 include/freetype/config/ftoption.h.
1144
Werner Lemberg4f3b5bb2006-05-04 07:13:05 +000011452006-05-04 Werner Lemberg <wl@gnu.org>
1146
1147 * src/lzw/ftlzw2.c: Renamed to...
1148 * src/lzw/ftlzw.c: This.
1149
1150 * src/lzw/Jamfile, src/lzw/rules.mk: Updated.
1151
1152 * builds/mac/FreeType.m68k_cfm.make.txt,
1153 builds/mac/FreeType.m68k_far.make.txt,
1154 builds/mac/FreeType.ppc_carbon.make.txt,
1155 builds/mac/FreeType.ppc_classic.make.txt: Updated.
1156
David Turner679a2522006-05-03 09:40:33 +000011572006-05-03 David Turner <david@freetype.org>
1158
Werner Lemberga94746c2006-05-03 20:39:55 +00001159 Allow compilation again with C++ compilers.
1160
1161 * include/freetype/internal/ftmemory.h (FT_ASSIGNP,
1162 FT_ASSIGNP_INNER): New macros which do the actual assignment, and
1163 which exist in two variants (for C and C++).
1164 Update callers accordingly.
David Turner679a2522006-05-03 09:40:33 +00001165
Werner Lemberg58eed042006-05-02 22:26:09 +000011662006-05-03 Werner Lemberg <wl@gnu.org>
1167
1168 * include/freetype/config/ftoption.h (FT_STRICT_ALIASING): Removed.
1169
Werner Lembergc6afa122006-05-02 22:22:16 +000011702006-05-02 Werner Lemberg <wl@gnu.org>
1171
1172 * include/freetype/internal/ftmemory.h: s/new/newsz/ (for C++).
1173 (FT_ALLOC): Remove redundant redefinition.
1174
1175 * builds/compiler/gcc-dev.mk (CFLAGS) [g++]: Don't use
1176 `-Wstrict-prototypes'.
1177
1178 * src/base/ftstream.c (FT_Stream_EnterFrame): Add cast.
1179
Werner Lemberg58eed042006-05-02 22:26:09 +00001180 * include/freetype/config/ftconfig.h (FT_BASE_DEF) [__cplusplus]:
1181 Remove `extern'.
Werner Lemberg94204892006-05-02 22:24:06 +00001182
David Turner264f3072006-05-02 06:34:27 +000011832006-05-02 David Turner <david@freetype.org>
1184
Werner Lembergc6afa122006-05-02 22:22:16 +00001185 Update the memory management functions and macros to safely deal
1186 with array size buffer overflows. This corresponds to attemps to
1187 allocate arrays that are too large. For an example, consider the
1188 following code:
David Turner264f3072006-05-02 06:34:27 +00001189
Werner Lembergc6afa122006-05-02 22:22:16 +00001190 count = read_uint32_from_file(); array = malloc( sizeof ( Item ) *
1191 count ); for ( nn = 0; nn < count; nn++ )
1192 array[nn] = read_item_from_file();
David Turner264f3072006-05-02 06:34:27 +00001193
Werner Lembergc6afa122006-05-02 22:22:16 +00001194 If `count' is larger than `FT_UINT_MAX/sizeof(Item)', the
1195 multiplication overflows, and the array allocated os smaller than
1196 the data read from the file. In this case, the heap will be
1197 trashed, and this can be used as a denial-of-service attack, or make
1198 the engine crash later.
David Turner264f3072006-05-02 06:34:27 +00001199
Werner Lembergc6afa122006-05-02 22:22:16 +00001200 The FT_ARRAY_NEW and FT_ARRAY_RENEW macros now ensure that the new
1201 count is no larger than `FT_INT_MAX/item_size', otherwise a new
1202 error code `FT_Err_Array_Too_Large' will be returned.
David Turner264f3072006-05-02 06:34:27 +00001203
Werner Lembergc6afa122006-05-02 22:22:16 +00001204 Note that the memory debugger now works again when FT_DEBUG_MEMORY
1205 is defined. FT_STRICT_ALIASING has disappeared; the corresponding
1206 code is now the default.
David Turner264f3072006-05-02 06:34:27 +00001207
David Turner9ca78252006-05-02 09:00:29 +00001208
Werner Lembergc6afa122006-05-02 22:22:16 +00001209 * include/freetype/config/ftconfig.h (FT_BASE_DEF) [!__cplusplus]:
1210 Don't use `extern'.
Suzuki, Toshiya (鈴木俊哉)a2295402006-04-30 04:46:17 +00001211
Werner Lembergc6afa122006-05-02 22:22:16 +00001212 * include/freetype/fterrdef.h (FT_Err_Array_Too_Large): New error
1213 code.
Suzuki, Toshiya (鈴木俊哉)a2295402006-04-30 04:46:17 +00001214
Werner Lembergc6afa122006-05-02 22:22:16 +00001215 * include/freetype/internal/ftmemory.h (FT_DEBUG_INNER)
1216 [FT_DEBUG_MEMORY]: New macro.
1217 (ft_mem_realloc, ft_mem_qrealloc): Pass new object size count also.
1218 (ft_mem_alloc_debug, ft_mem_qalloc_debug, ft_mem_realloc_debug,
1219 ft_mem_qrealloc_debug, ft_mem_free_debug): Removed.
1220 (FT_MEM_ALLOC, FT_MEM_REALLOC, FT_MEM_QALLOC, FT_MEM_QREALLOC,
1221 FT_MEM_FREE): Redefine.
1222 (FT_MEM_NEW_ARRAY, FT_MEM_RENEW_ARRAY, FT_MEM_QNEW_ARRAY,
1223 FT_MEM_QRENEW_ARRAY): Redefine.
1224 (FT_ALLOC_MULT, FT_REALLOC_MULT, FT_MEM_QALLOC_MULT,
1225 FT_MEM_QREALLOC_MULT): New macros. Update callers where
1226 appropriate.
1227 (FT_MEM_SET_ERROR): Slightly redefine.
1228
1229
1230 * src/base/ftdbgmem.c (_ft_debug_file, _ft_debug_lineno)
1231 [FT_DEBUG_MEMORY]: New global variables, replacing...
1232 (FT_MemTable_Rec) [FT_DEBUG_MEMORY]: Remove `filename' and
1233 `line_no'. Update all callers.
1234 (ft_mem_debug_alloc) [FT_DEBUG_MEMORY]: Avoid possible integer
1235 overflow.
1236 (ft_mem_alloc_debug, ft_mem_realloc_debug, ft_mem_qalloc_debug,
1237 ft_mem_qrealloc_debug, ft_mem_free_debug): Removed.
1238
1239 * src/base/ftmac.c (read_lwfn): Catch integer overflow.
1240 * src/base/ftrfork.c (raccess_guess_darwin_hfsplus): Ditto.
1241 * src/base/ftutil.c: Remove special code for FT_STRICT_ALIASING.
1242 (ft_mem_alloc. ft_mem_realloc, ft_mem_qrealloc): Rewrite.
1243
Werner Lemberg4f3b5bb2006-05-04 07:13:05 +00001244
1245 * include/freetype/ftstream.h (FT_FRAME_ENTER, FT_FRAME_EXIT,
1246 FT_FRAME_EXTRACT, FT_FRAME_RELEASE): Use FT_DEBUG_INNER to report the
1247 place where the frames were entered, extracted, exited or released
1248 in the memory debugger.
1249
1250 * src/base/ftstream.c (FT_Stream_ReleaseFrame) [FT_DEBUG_MEMORY]:
1251 Call ft_mem_free.
1252 (FT_Stream_EnterFrame) [FT_DEBUG_MEMORY]: Use ft_mem_qalloc.
1253 (FT_Stream_ExitFrame) [FT_DEBUG_MEMORY]: Use ft_mem_free.
1254
Werner Lembergc6afa122006-05-02 22:22:16 +000012552006-04-30 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
1256
1257 * src/base/ftobjs.c (Mac_Read_POST_Resource): Correct pfb_pos
1258 initialization, remove extra cast to copy to pfb_lenpos. This fixes
1259 parsing of PFB fonts with MacOS resource fork (bug introduced
1260 2003-09-11). Patch provided by Huib-Jan Imbens <ft@imbens.nl>.
Suzuki, Toshiya (鈴木俊哉)a2295402006-04-30 04:46:17 +00001261
Werner Lemberg8fe65392006-04-29 07:31:16 +000012622006-04-29 Werner Lemberg <wl@gnu.org>
1263
1264 Further C library abstraction. Based on a patch from
1265 msn2@bidyut.com.
1266
1267 * include/freetype/config/ftstdlib.h (FT_CHAR_BIT, FT_FILE,
1268 ft_fopen, ft_fclose, ft_fseek, ft_ftell, ft_fread, ft_smalloc,
1269 ft_scalloc, ft_srealloc, ft_sfree, ft_labs): New wrapper macros for
1270 C library functions. Update all users accordingly (and catch some
1271 other places where the C library function was used instead of the
1272 wrapper functions).
1273
1274 * src/base/ftsystem.c: Don't include stdio.h and stdlib.h.
1275 * src/gzip/zutil.h [MSDOS && !(__TURBOC__ || __BORLANDC__)]: Don't
1276 include malloc.h.
1277
Werner Lemberg06fceb32006-04-29 07:53:40 +00001278
1279 * builds/unix/unix-def.in (datarootdir): Define, for autoconf 2.59c
1280 and forthcoming versions.
1281
Werner Lemberg50ef72b2006-04-29 07:02:36 +000012822006-04-28 Werner Lemberg <wl@gnu.org>
1283
1284 * src/lzw/ftlzw.c, src/lzw/zopen.c, src/lzw/zopen.h: Removed,
1285 obsolete.
1286
Werner Lemberg12cceaa2006-04-27 05:02:35 +000012872006-04-27 yi luo <luoyi.ly@gmail.com>
1288
1289 * builds/win32/visualc/freetype.vcproj: Updated.
1290
David Turner3b47dd62006-04-26 19:34:24 +000012912006-04-26 David Turner <david@freetype.org>
1292
Werner Lemberg12cceaa2006-04-27 05:02:35 +00001293
1294 * Version 2.2 released.
Werner Lembergc6afa122006-05-02 22:22:16 +00001295 =======================
Werner Lemberg12cceaa2006-04-27 05:02:35 +00001296
1297
1298 Tag sources with `VER-2-2-0'.
David Turner3b47dd62006-04-26 19:34:24 +00001299
Werner Lemberg564b4432006-04-26 15:02:52 +000013002006-04-26 Werner Lemberg <wl@gnu.org>
1301
1302 * src/psaux/psobjs.c (shift_elements): Don't use FT_Long but
Werner Lemberg4e03fe72006-04-29 06:20:09 +00001303 FT_PtrDiff for `delta'. Reported by Céline PILLET
Werner Lemberg564b4432006-04-26 15:02:52 +00001304 <Celine.Pillet@Tagginfo.com>.
1305
David Turner8e438ea2006-04-21 08:35:11 +000013062006-04-21 David Turner <david@freetype.org>
1307
Werner Lemberg8a8c6022006-04-22 12:24:52 +00001308 * include/freetype/ftincrem.h: Documentation updates.
1309 (FT_Incremental_Interface): New typedef.
David Turner8e438ea2006-04-21 08:35:11 +00001310
Werner Lemberg8a8c6022006-04-22 12:24:52 +00001311 * include/freetype/ftmodapi.h, include/freetype/ftglyph.h:
1312 Documentation updates.
1313
1314 * include/freetype/freetype.h: Documentation update.
1315 (FT_HAS_FAST_GLYPHS): Always set to 0.
1316
1317 * include/freetype/ftstroke.h, src/base/ftstroke.c (FT_Stroker_New):
1318 Take an FT_Library argument instead of FT_Memory.
1319
1320 * src/sfnt/ttcmap.c: Remove compiler warnings (gcc-4.0.2).
David Turner7aa20102006-04-21 08:38:35 +00001321
David Turner65c7c772006-04-13 07:51:58 +000013222006-04-13 David Turner <david@freetype.org>
1323
Werner Lemberg8a8c6022006-04-22 12:24:52 +00001324 * src/autofit/afloader.c (af_loader_init, af_loader_load_g): Remove
1325 superfluous code in the auto-fitter's loader.
David Turner65c7c772006-04-13 07:51:58 +00001326
Werner Lemberg4e03fe72006-04-29 06:20:09 +000013272006-04-05 Detlef Würkner <TetiSoft@apg.lahn.de>
Detlef Würkner7d043222006-04-05 07:17:12 +00001328
1329 * builds/amiga/makefile, builds/amiga/makefile.os4,
1330 builds/amiga/smakefile: Added FT2_BUILD_LIBRARY define.
1331
Werner Lemberg7f18de62006-04-03 16:47:34 +000013322006-04-03 luoyi <luoyi.ly@gmail.com>
1333
1334 * builds/compiler/intelc.mk (TE): New variable.
1335 (ANSIFLAGS): Updated.
1336
Werner Lembergfd7456c2006-04-03 15:46:48 +000013372006-04-03 Werner Lemberg <wl@gnu.org>
1338
1339 * builds/exports.mk (clean_symbols_list, clean_apinames): Removed.
1340 (CLEAN): Add $(EXPORTS_LIST) and $(APINAMES_EXE).
1341 (.PHONY): Updated.
1342
1343 * configure.ac: Minor fixes to improve --help output.
1344
Werner Lemberg764b2512006-04-03 16:42:39 +00001345
1346 * docs/PROBLEMS: New file.
1347
Werner Lemberg40917862006-04-01 18:49:07 +000013482006-04-01 David Turner <david@freetype.org>
David Turner0f15e1c2006-04-01 16:11:53 +00001349
Werner Lemberg40917862006-04-01 18:49:07 +00001350 * docs/CHANGES: Updated.
David Turnercf603712006-04-01 16:22:06 +00001351
Werner Lemberg40917862006-04-01 18:49:07 +00001352 * include/freetype/ftcache.h, include/freetype/config/ftheader.h:
1353 Update documentation comments.
David Turner0f15e1c2006-04-01 16:11:53 +00001354
Werner Lemberg6e9df682006-04-01 05:22:07 +000013552006-04-01 Werner Lemberg <wl@gnu.org>
1356
1357 * builds/unix/install.mk (uninstall): Don't handle `cache'
1358 directory which no longer exists.
1359
Werner Lemberg4e03fe72006-04-29 06:20:09 +000013602006-03-29 Detlef Würkner <TetiSoft@apg.lahn.de>
Detlef Würknerd51b41e2006-03-29 06:35:26 +00001361
Werner Lemberg6e9df682006-04-01 05:22:07 +00001362 * src/psaux/psconv.c: Changed some variables which are expected to
1363 hold negative values from `char' to `FT_Char' to allow building with
1364 a compiler where `char' is unsigned by default.
Detlef Würknerd51b41e2006-03-29 06:35:26 +00001365
David Turner42137bc2006-03-27 20:10:26 +000013662006-03-27 David Turner <david@freetype.org>
1367
Werner Lembergfa3651e2006-03-28 05:06:50 +00001368 * src/sfnt/ttkern.c (tt_face_get_kerning): Fix a serious bug that
1369 causes some programs to go into an infinite loop when dealing with
1370 fonts that don't have a properly sorted kerning sub-table.
David Turner42137bc2006-03-27 20:10:26 +00001371
Werner Lemberg26170df2006-03-26 07:19:07 +000013722006-03-26 Werner Lemberg <wl@gnu.org>
1373
1374 * src/bdf/bdflib.c (ERRMSG4): New macro.
1375 (_bdf_parse_glyphs): Handle invalid BBX values.
1376
1377 * include/freetype/fterrdef.h (FT_Err_Bbx_Too_Big): New error
1378 macro.
1379
Werner Lemberg4db32ec2006-03-24 11:54:53 +000013802006-03-23 Werner Lemberg <wl@gnu.org>
1381
1382 * docs/CHANGES: Updated.
1383
Werner Lembergd6e24982006-03-24 18:31:47 +00001384
Werner Lemberg4db32ec2006-03-24 11:54:53 +00001385 * src/tools/docmaker/tohtml.py (html_header_2): Add horizontal
1386 padding between table elements.
Werner Lemberge0dd18f2006-03-24 12:14:48 +00001387 (html_header_1): The `DOCTYPE' comment must be in uppercase.
Werner Lembergd6e24982006-03-24 18:31:47 +00001388 (make_html_para): Convert `...' quotations into real left and
1389 right single quotes.
1390 Use `para_header' and `para_footer'.
1391
1392 * src/tools/docmaker/sources.py (re_bold, re_italic): Accept "'"
1393 also.
Werner Lemberg4db32ec2006-03-24 11:54:53 +00001394
David Turner2ce92032006-03-23 20:58:20 +000013952006-03-23 David Turner <david@freetype.org>
1396
Werner Lemberg4db32ec2006-03-24 11:54:53 +00001397 Add FT_Get_SubGlyph_Info API to retrieve subglyph data. Note that
Werner Lembergc6afa122006-05-02 22:22:16 +00001398 we do not expose the FT_SubGlyphRec structure.
David Turner2ce92032006-03-23 20:58:20 +00001399
Werner Lemberg4db32ec2006-03-24 11:54:53 +00001400 * include/freetype/internal/ftgloadr.h (FT_SUBGLYPH_FLAGS_*): Moved
1401 to...
1402 * include/freetype/freetype.h (FT_SUBGLYPH_FLAGS_*): Here.
1403 (FT_Get_SybGlyph_Info): New declaration.
1404
1405 * src/base/ftobjs.c (FT_Get_SubGlyph_Info): New function.
1406
1407
1408 * src/autofit/afloader.c (af_loader_load_g): Compute lsb_delta and
Werner Lembergc6afa122006-05-02 22:22:16 +00001409 rsb_delta correctly in edge cases.
David Turner2ce92032006-03-23 20:58:20 +00001410
Werner Lemberg3867d2f2006-03-22 08:03:06 +000014112006-03-22 Werner Lemberg <wl@gnu.org>
1412
Werner Lemberg6c5b6172006-03-22 15:30:41 +00001413 * src/cache/ftccache.c, (ftc_node_mru_up, FTC_Cache_Lookup)
1414 [!FTC_INLINE]: Compile conditionally.
1415 * src/cache/ftccache.h: Updated.
1416
1417 * src/cache/ftcglyph.c (FTC_GNode_Init, FTC_GNode_UnselectFamily,
1418 FTC_GNode_Done, FTC_GNode_Compare, FTC_Family_Init, FTC_GCache_New):
1419 s/FT_EXPORT/FT_LOCAL/.
1420 (FTC_GCache_Init, FTC_GCache_Done): Commented out.
1421 (FTC_GCache_Lookup) [!FTC_INLINE]: Compile conditionally.
1422 s/FT_EXPORT/FT_LOCAL/.
1423 * src/cache/ftcglyph.h: Updated.
1424
1425 * src/cache/ftcimage.c (FTC_INode_Free, FTC_INode_New):
1426 s/FT_EXPORT/FT_LOCAL/.
1427 (FTC_INode_Weight): Commented out.
1428 * src/cache/ftcimage.h: Updated.
1429
1430 * src/cache/ftmanag.c (FTC_Manager_Compress,
1431 FTC_Manager_RegisterCache, FTC_Manager_FlushN):
1432 s/FT_EXPORT/FT_LOCAL/.
1433 * src/cache/ftmanag.h: Updated.
1434
1435 * src/cache/ftcsbits.c (FTC_SNode_Free, FTC_SNode_New,
1436 FTC_SNode_Compare): s/FT_EXPORT/FT_LOCAL/.
1437 (FTC_SNode_Weight): Commented out.
1438 * src/cache/ftcsbits.h: Updated.
1439
14402006-03-22 Werner Lemberg <wl@gnu.org>
1441
Werner Lemberg3867d2f2006-03-22 08:03:06 +00001442 * src/cache/ftccache.c, src/cache/ftccache.h (FTC_Node_Destroy):
1443 Remove, unused.
1444
1445 * src/cache/ftccmap.h: Remove, unused.
1446
1447 * src/cache/rules.mk (CACHE_DRV_H): Remove ftccmap.h.
1448
Werner Lemberg5556dd22006-03-21 21:36:33 +000014492006-03-21 Zhe Su <james.su@gmail.com>
1450
1451 * src/base/ftoutln.c (FT_Outline_Get_Orientation): Improve
1452 algorithm.
1453
Werner Lemberg26377002006-03-21 18:41:40 +000014542006-03-21 Werner Lemberg <wl@gnu.org>
1455
1456 * src/cff/cfftypes.h (CFF_CharsetRec): Add `max_cid' member.
1457
1458 * src/cff/cffload.c (cff_charset_load): Set `charset->max_cid'.
1459
1460 * src/cff/cffgload.c (cff_slot_load): Change type of third parameter
1461 to `FT_UInt'.
1462 Check range of `glyph_index'.
1463 * src/cff/cffgload.h: Updated.
1464
Werner Lemberg8439fe82006-03-21 21:04:33 +00001465
Werner Lemberg95f206b2006-03-21 20:47:28 +00001466 * src/sfnt/ttcmap.c (tt_face_build_cmaps): Handle invalid offset
1467 correctly.
1468
Werner Lemberg8439fe82006-03-21 21:04:33 +00001469
1470 * builds/freetype.mk (refdoc), docs/CHANGES, Jamfile (RefDoc),
1471 README: s/2.1.10/2.2/.
1472
Werner Lemberg26377002006-03-21 18:41:40 +000014732006-03-21 David Turner <david@freetype.org>
David Turner24b9e872006-03-21 16:30:04 +00001474
Werner Lemberga62007f2006-03-21 17:41:40 +00001475 * src/autofit/aflatin.c (af_latin_metrics_scale): Fix small bug
1476 that crashes the auto-hinter (introduced by previous patch).
David Turner24b9e872006-03-21 16:30:04 +00001477
Werner Lemberg5a73d8d2006-03-20 16:55:32 +000014782006-03-20 Werner Lemberg <wl@gnu.org>
David Turnerdad2a2d2006-03-20 11:48:13 +00001479
Werner Lemberg5a73d8d2006-03-20 16:55:32 +00001480 * builds/freetype.mk (CACHE_DIR, CACHE_H): Remove.
1481 (FREETYPE_H): Updated.
David Turnere091ce32006-03-20 16:01:28 +00001482
Werner Lemberg5a73d8d2006-03-20 16:55:32 +00001483 * src/cache/rules.mk (CACHE_H_DIR): Remove.
1484 (CACHE_DRV_H): Updated.
David Turnerda95af62006-03-20 13:32:33 +00001485
Werner Lemberg5a73d8d2006-03-20 16:55:32 +000014862006-03-20 David Turner <david@freetype.org>
David Turnerda95af62006-03-20 13:32:33 +00001487
Werner Lemberg5a73d8d2006-03-20 16:55:32 +00001488 * include/freetype/cache/ftccache.h,
1489 include/freetype/cache/ftccmap.h, include/freetype/cache/ftcglyph.h
1490 include/freetype/cache/ftcimage.h include/freetype/cache/ftcmanag.h
1491 include/freetype/cache/ftcmru.h include/freetype/cache/ftcsbits.h:
1492 Move to...
David Turner505667c2006-03-20 12:13:14 +00001493
Werner Lemberg5a73d8d2006-03-20 16:55:32 +00001494 * src/cache/ftccache.h, src/cache/ftcglyph.h, src/cache/ftcimage.h,
1495 src/cache/ftcsbits.h, src/cache/ftcmanag.h, src/cache/ftccmap.h,
1496 src/cache/ftcmru.h: This new location.
1497 Update declarations according to the changes in the corresponding
1498 source files.
David Turner256de4b2006-03-20 12:10:24 +00001499
Werner Lemberg5a73d8d2006-03-20 16:55:32 +00001500 Note that these files are not used by FreeType clients; all public
1501 APIs of the cache module have been already moved to
1502 `include/freetype/ftcache.h', and all FT_CACHE_INTERNAL_XXXX_H
1503 macros resolve to it.
David Turner256de4b2006-03-20 12:10:24 +00001504
Werner Lemberg5a73d8d2006-03-20 16:55:32 +00001505 Reason for the move is to allow modifications of the internals
1506 without interferences with rogue clients. Note that there are no
1507 known clients that access the cache internals at the moment.
David Turner256de4b2006-03-20 12:10:24 +00001508
Werner Lemberg5a73d8d2006-03-20 16:55:32 +00001509 * builds/unix/install.mk (install): Don't install headers from
1510 $(CACHE_H).
1511 Remove `freetype/cache' from the target directory.
David Turnerdad2a2d2006-03-20 11:48:13 +00001512
Werner Lemberg5a73d8d2006-03-20 16:55:32 +00001513 * include/freetype/config/ftheader.h (FT_CACHE_MANAGER_H,
1514 FT_CACHE_INTERNAL_MRU_H, FT_CACHE_INTERNAL_MANAGER_H,
1515 FT_CACHE_INTERNAL_CACHE_H, FT_CACHE_INTERNAL_GLYPH_H,
1516 FT_CACHE_INTERNAL_IMAGE_H, FT_CACHE_INTERNAL_SBITS_H): Point to
1517 FT_CACHE_H.
David Turnerdad2a2d2006-03-20 11:48:13 +00001518
Werner Lemberg5a73d8d2006-03-20 16:55:32 +00001519 * src/cache/ftcbasic.c, src/cache/ftccache.h, src/cache/ftccback.h,
1520 src/cache/ftccmap.c, src/cache/ftcglyph.c, src/cache/ftcglyph.h,
1521 src/cache/ftcimage.c, src/cache/ftcimage.h, src/cache/ftcmanag.c,
1522 src/cache/ftcmanag.h, src/cache/ftcmru.h, src/cache/ftcsbits.c,
1523 src/cache/ftcsbits.h: Don't use the FT_CACHE_INTERNAL_XXX_H macros
1524 but include the headers directly (which are now in `src/cache').
David Turnerdad2a2d2006-03-20 11:48:13 +00001525
Werner Lemberg5a73d8d2006-03-20 16:55:32 +00001526 * src/cache/ftccache.c: Don't use the FT_CACHE_INTERNAL_XXX_H
1527 macros but include the headers directly.
1528 (FTC_Cache_Init, FTC_Cache_Done, FTC_Cache_NewNode,
1529 FTC_Cache_Lookup, FTC_Cache_RemoveFaceID): Declare as FT_LOCAL_DEF.
1530
1531 * src/cache/ftccache.c: Don't use the FT_CACHE_INTERNAL_XXX_H
1532 macros but include the headers directly.
1533 (FTC_MruNode_Prepend, FTC_MruNode_Up, FTC_MruNode_Remove,
1534 FTC_MruList_Init, FTC_MruList_Reset, FTC_MruList_Done,
1535 FTC_MruList_New, FTC_MruList_Remove, FTC_MruList_RemoveSelection):
1536 Declare as FT_LOCAL_DEF.
1537 (FTC_MruListFind, FTC_MruList_Lookup) [!FTC_INLINE]: Compile
1538 conditionally.
1539 Declare as FT_LOCAL_DEF.
1540
1541
1542 * builds/win32/visualc/freetype.dsp: Update project file, add
1543 missing base source files (ftstroke.c, ftxf86.c, etc.).
1544
1545
1546 * src/autofit/afcjk.c, src/autofit/aflatin.c, src/base/ftobjs.c,
1547 src/cff/cffobjs.c, src/cid/cidobjs.c, src/pfr/pfrobjs.c,
1548 src/sfnt/sfobjs.c, src/sfnt/ttmtx.c, src/type1/t1afm.c,
1549 src/type1/t1objs.c: Remove compiler warnings when building with
1550 Visual C++ 6 and /W4.
1551
1552 * src/autofit/aflatin.c (af_latin_hints_init): Disable horizontal
1553 hinting for italic/oblique fonts.
1554
1555
1556
1557 * src/truetype/ttpload.c, src/truetype/ttpload.h
1558 (tt_face_get_device_metrics): Change second argument to `FT_UInt'.
1559
15602006-03-06 David Turner <david@freetype.org>
David Turner65b96aa2006-03-07 00:38:24 +00001561
Werner Lemberge6a8fca2006-03-07 23:53:55 +00001562 * src/cache/ftcmanag.c (FTC_Manager_Lookup_Size): Prevent crashes in
1563 Mozilla/FireFox print preview in Ubuntu Hoary.
David Turner65b96aa2006-03-07 00:38:24 +00001564
Wu, Chia-I (吳佳一)a87b08a2006-02-28 09:53:23 +000015652006-02-28 Chia-I Wu <b90201047@ntu.edu.tw>
1566
Wu, Chia-I (吳佳一)9f5d3de2006-02-28 13:21:50 +00001567 * src/base/ftutil.c (ft_mem_qalloc) [FT_STRICT_ALIASING]: Do not
1568 return error when size == 0.
1569
15702006-02-28 Chia-I Wu <b90201047@ntu.edu.tw>
1571
Werner Lemberge88d24c2006-02-28 21:49:54 +00001572 * src/base/ftobjs.c (FT_Done_Library): Remove modules in reverse
1573 order so that type42 module is removed before truetype module. This
1574 avoids double free in some occasions.
Wu, Chia-I (吳佳一)a87b08a2006-02-28 09:53:23 +00001575
Werner Lembergc6afa122006-05-02 22:22:16 +000015762006-02-28 David Turner <david@freetype.org>
David Turnere9a47192006-02-28 09:26:58 +00001577
Werner Lemberge88d24c2006-02-28 21:49:54 +00001578 * Release candidate VER-2-2-0-RC4.
1579 ----------------------------------
David Turnere9a47192006-02-28 09:26:58 +00001580
Werner Lemberge88d24c2006-02-28 21:49:54 +00001581 * docs/CHANGES: Documentation updates.
David Turnere9a47192006-02-28 09:26:58 +00001582
Suzuki, Toshiya (鈴木俊哉)576c3532006-02-28 01:11:57 +000015832006-02-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
1584
Werner Lemberge88d24c2006-02-28 21:49:54 +00001585 * modules.cfg (BASE_EXTENSIONS): Compile in ftgxval.c by default to
1586 build ftvalid in ft2demos. It works as dummy ABI if gxvalid is not
1587 built.
Suzuki, Toshiya (鈴木俊哉)576c3532006-02-28 01:11:57 +00001588
Werner Lembergc07ee522006-02-27 18:13:12 +000015892006-02-27 Werner Lemberg <wl@gnu.org>
1590
1591 * include/freetype/cache/ftccache.h
1592 [FT_CONFIG_OPTION_OLD_INTERNALS]: Remove declaration of
1593 ftc_node_done.
1594
Werner Lemberg98d6a3a2006-02-27 19:49:34 +00001595 * src/cache/ftccache.c (ftc_node_destroy)
1596 [!FT_CONFIG_OPTION_OLD_INTERNALS]: Mark as FT_LOCAL_DEF. This
1597 should now fix all possible compilation options.
1598
David Turnerc13e75f2006-02-27 13:14:42 +000015992006-02-27 David Turner <david@freetype.org>
1600
Werner Lemberg422d2a02006-02-27 18:25:22 +00001601 * src/base/ftutil.c (ft_mem_alloc, ft_mem_qalloc, ft_mem_realloc,
1602 ft_mem_qrealloc): Return an error if a negative size is passed in
1603 parameters.
David Turnerc13e75f2006-02-27 13:14:42 +00001604
Werner Lemberg98d6a3a2006-02-27 19:49:34 +00001605 * src/cache/ftccache.c (ftc_node_destroy): Mark as FT_BASE_DEF since
1606 it needs to be exported for rogue clients.
David Turner65b96aa2006-03-07 00:38:24 +00001607
Werner Lemberg422d2a02006-02-27 18:25:22 +00001608 * src/pshinter/pshglob.c (psh_blues_set_zones_0): Prevent problems
1609 with malformed fonts which have an odd number of blue values (these
1610 are broken according to the specs).
David Turnerc13e75f2006-02-27 13:14:42 +00001611
Werner Lemberg422d2a02006-02-27 18:25:22 +00001612 * src/cff/cffload.c (cff_subfont_load), src/type1/t1load.c
1613 (T1_Open_Face): Modify the loaders to force even-ness of
1614 `num_blue_values'.
1615
1616 (cff_index_access_element): Ignore invalid entries in index files.
David Turnerc13e75f2006-02-27 13:14:42 +00001617
Wu, Chia-I (吳佳一)cffa8b62006-02-27 11:11:40 +000016182006-02-27 Chia-I Wu <b90201047@ntu.edu.tw>
1619
Werner Lemberg98d6a3a2006-02-27 19:49:34 +00001620 * src/base/ftobjs.c (FT_Set_Char_Size): Check the case where width
1621 or height is 0.
Wu, Chia-I (吳佳一)cffa8b62006-02-27 11:11:40 +00001622
Suzuki, Toshiya (鈴木俊哉)2f239b82006-02-27 10:34:33 +000016232006-02-27 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
1624
1625 * builds/mac/FreeType.m68k_cfm.make.txt,
1626 builds/mac/FreeType.m68k_far.make.txt,
1627 builds/mac/FreeType.ppc_carbon.make.txt,
Werner Lemberg98d6a3a2006-02-27 19:49:34 +00001628 builds/mac/FreeType.ppc_classic.make.txt: Update to new header
1629 inclusion introduced on 2006-02-16.
Suzuki, Toshiya (鈴木俊哉)2f239b82006-02-27 10:34:33 +00001630
Wu, Chia-I (吳佳一)2e48a1a2006-02-27 09:18:07 +000016312006-02-27 Chia-I Wu <b90201047@ntu.edu.tw>
1632
Werner Lemberg422d2a02006-02-27 18:25:22 +00001633 * src/base/ftobjs.c (GRID_FIT_METRICS): New macro.
1634 (ft_glyphslot_grid_fit_metrics, FT_Load_Glyph) [GRID_FIT_METRICS]:
Wu, Chia-I (吳佳一)2e48a1a2006-02-27 09:18:07 +00001635 Re-enable glyph metrics grid-fitting. It is now done in the base
1636 layer.
Werner Lembergc07ee522006-02-27 18:13:12 +00001637 (FT_Set_Char_Size, FT_Set_Pixel_Sizes): Make sure the width and
1638 height are not too small or too large, just like we were doing in
1639 2.1.10.
Wu, Chia-I (吳佳一)2e48a1a2006-02-27 09:18:07 +00001640
Werner Lembergc07ee522006-02-27 18:13:12 +00001641 * src/autofit/afloader.c (af_loader_load_g): The vertical metrics
1642 are not scaled.
Wu, Chia-I (吳佳一)2e48a1a2006-02-27 09:18:07 +00001643
Werner Lembergf99d8462006-02-26 17:50:59 +000016442006-02-26 Werner Lemberg <wl@gnu.org>
1645
1646 * docs/release: Minor additions and clarifications.
1647
1648 * docs/CHANGES: Updated to reflect many fixes for backwards
1649 compatibility. Still incomplete.
1650
David Turnerb4636652006-02-26 07:57:45 +000016512006-02-26 David Turner <david@freetype.org>
1652
Werner Lemberg0aaf4292006-02-26 17:30:15 +00001653 * src/base/ftobjs.c (ft_recompute_scaled_metrics): Re-enable
1654 conservative rounding of metrics to avoid breaking clients like
1655 Pango (see http://bugzilla.gnome.org/show_bug.cgi?id=327852).
David Turnerb4636652006-02-26 07:57:45 +00001656
Werner Lemberg20a8d0c2006-02-25 16:56:04 +000016572006-02-25 Werner Lemberg <wl@gnu.org>
1658
1659 * devel/ftoption.h: Synchronize with
1660 include/freetype/config/ftoption.h.
1661
Werner Lembergae1e4b12006-02-25 17:11:04 +00001662 * src/cache/ftccache.c (ftc_node_destroy): Use FT_LOCAL_DEF (again).
1663
David Turner6c71c6b2006-02-25 12:49:40 +000016642006-02-25 David Turner <david@freetype.org>
1665
Werner Lemberg7f049f42006-02-25 16:52:16 +00001666 Fix compiler warnings as well as C++ compilation problems.
1667 Add missing prototypes.
David Turner6c71c6b2006-02-25 12:49:40 +00001668
Werner Lemberg7f049f42006-02-25 16:52:16 +00001669 * src/autofit/afcjk.c, src/base/ftobjs.c, src/base/ftutil.c,
1670 src/bdf/bdfdrivr.c, src/cff/cffcmap.c, src/cff/cffobjs.c,
1671 src/psaux/afmparse.c,, src/psaux/t1cmap.c, src/smooth/ftgrays.c
1672 src/tools/apinames.c, src/truetype/ttdriver.c: Add various casts,
1673 initialize variables, and decorate functions with FT_CALLBACK_DEF,
1674 etc., to fix compiler warnings (and C++ compiling errors).
David Turner6c71c6b2006-02-25 12:49:40 +00001675
Werner Lemberg7f049f42006-02-25 16:52:16 +00001676 * src/cache/ftcbasic.c: Fix `-Wmissing-prototypes' warnings with
1677 gcc.
David Turnerde271ab2006-02-25 14:53:02 +00001678
Werner Lemberg7f049f42006-02-25 16:52:16 +00001679 * builds/unix/ftsystem.c: Don't include FT_INTERNAL_OBJECTS_H but
1680 FT_INTERNAL_STREAM_H.
David Turnerde271ab2006-02-25 14:53:02 +00001681
Werner Lemberg7f049f42006-02-25 16:52:16 +00001682 * src/base/ftsystem.c: Include FT_INTERNAL_STREAM_H.
David Turnerde271ab2006-02-25 14:53:02 +00001683
Werner Lemberg7f049f42006-02-25 16:52:16 +00001684 * include/freetype/config/ftheader.h (FT_PFR_H): New macro.
1685
1686 * include/freetype/config/ftoption.h (FT_STRICT_ALIASING): Don't
1687 define for C++.
1688
1689 * include/freetype/internal/services/svotval.h: Don't include
1690 FT_OPENTYPE_VALIDATE_H but FT_INTERNAL_VALIDATE_H.
1691
1692 * include/freetype/internal/services/svpfr.h: Include FT_PFR_H.
1693
1694 * src/gzip/ftgzip.c: Include FT_GZIP_H.
1695
1696 * src/lzw/ftlzw.c, src/lzw/ftlzw2.c: Include FT_LZW_H.
1697
1698 * src/sfnt/ttbdf.c (tt_face_load_bdf_props): Rearrange code.
David Turner6c71c6b2006-02-25 12:49:40 +00001699
Wu, Chia-I (吳佳一)03264612006-02-24 11:18:40 +000017002006-02-24 Chia-I Wu <b90201047@ntu.edu.tw>
1701
Wu, Chia-I (吳佳一)88242072006-02-24 11:53:21 +00001702 * src/base/ftoutln.c (FT_OUTLINE_GET_CONTOUR, ft_contour_has,
1703 ft_contour_enclosed, ft_outline_get_orientation): Commented out. We
David Turner6c71c6b2006-02-25 12:49:40 +00001704 have to wait until `FT_GlyphSlot_Own_Bitmap' is stabilized.
Wu, Chia-I (吳佳一)88242072006-02-24 11:53:21 +00001705 (FT_Outline_Embolden): Use `FT_Outline_Get_Orientation'.
1706
17072006-02-24 Chia-I Wu <b90201047@ntu.edu.tw>
1708
Wu, Chia-I (吳佳一)03264612006-02-24 11:18:40 +00001709 * include/freetype/ftbitmap.h (FT_Bitmap_Embolden): Update
1710 documentation.
1711
1712 * include/freetype/ftsynth.h (FT_GlyphSlot_Own_Bitmap),
1713 src/base/ftsynth.c (FT_GlyphSlot_Own_Bitmap): New function to make
Werner Lembergd7e6b762006-02-25 06:24:28 +00001714 sure a glyph slot owns its bitmap. It is also marked experimental
1715 and due to change.
1716 (FT_GlyphSlot_Embolden): Undo the last change. It turns out that
1717 rendering the outline confuses some applications.
Wu, Chia-I (吳佳一)03264612006-02-24 11:18:40 +00001718
David Turnerca7d76f2006-02-24 09:09:10 +000017192006-02-24 David Turner <david@freetype.org>
1720
Werner Lembergd7e6b762006-02-25 06:24:28 +00001721 * Release candidate VER-2-2-0-RC3.
1722 ----------------------------------
David Turner478c5912006-02-24 09:56:23 +00001723
Werner Lembergd7e6b762006-02-25 06:24:28 +00001724 * src/cache/ftcbasic.c: Correct compatibility hack bug.
David Turnerca7d76f2006-02-24 09:09:10 +00001725
Wu, Chia-I (吳佳一)a8e7a012006-02-24 06:11:30 +000017262006-02-24 Chia-I Wu <b90201047@ntu.edu.tw>
1727
Werner Lembergd7e6b762006-02-25 06:24:28 +00001728 * include/freetype/freetype.h (FT_Size_RequestRec): Change the type
1729 of `width' and `height' to `FT_Long'.
Wu, Chia-I (吳佳一)a8e7a012006-02-24 06:11:30 +00001730 (enum FT_Size_Request_Type), src/base/ftobjs.c (FT_Request_Metrics):
1731 New request type `FT_SIZE_REQUEST_TYPE_SCALES' to specify the scales
1732 directly.
1733
David Turner6cda6c02006-02-23 12:37:18 +000017342006-02-23 David Turner <david@freetype.org>
1735
Werner Lembergd7e6b762006-02-25 06:24:28 +00001736 Two BDF patches from Debian libfreetype6 for 2.1.10.
David Turner6cda6c02006-02-23 12:37:18 +00001737
Werner Lembergd4303da2006-02-23 21:01:34 +00001738 * src/bdf/bdflib.c (_bdf_parse_glyphs): Fix a bug with zero-width
1739 glyphs.
1740 Fix a problem with large encodings.
David Turner481838e2006-02-23 12:40:14 +00001741
Werner Lembergd7e6b762006-02-25 06:24:28 +00001742
1743 Fix binary compatibility issues for gnustep-back (GNUstep backend
1744 module) which still crashes under Sarge.
1745
1746 * src/cache/ftccmap.c (FTC_OldCMapType, FTC_OldCMapIdRec,
1747 FTC_OldCMapDesc) [FT_CONFIG_OPTION_OLD_INTERNALS]: New data
1748 structures and enumerations.
1749 (FTC_CMapCache_Lookup) [FT_CONFIG_OPTION_OLD_INTERNALS]: New
1750 compatibility code.
David Turner88d89852006-02-23 22:35:26 +00001751
Werner Lemberg2d8629b2006-09-03 06:18:45 +00001752 * src/cache/ftcbasic.c: Fix a silly bug that prevented our `hack' to
David Turneraa557a92006-09-04 16:42:44 +00001753 support rogue clients compiled against 2.1.7 to work correctly.
Werner Lemberg2d8629b2006-09-03 06:18:45 +00001754 This probably explains the GNUstep crashes with the second release
1755 candidate.
David Turnerbd502952006-09-01 19:05:24 +00001756
Wu, Chia-I (吳佳一)890f8072006-02-22 20:47:39 +000017572006-02-23 Chia-I Wu <b90201047@ntu.edu.tw>
1758
1759 * include/freetype/ftoutln.h (enum FT_Orientation): New value
1760 `FT_ORIENTATION_NONE'.
1761
1762 * src/base/ftoutln.c (FT_OUTLINE_GET_CONTOUR, ft_contour_has,
1763 ft_contour_enclosed, ft_outline_get_orientation): Another version of
1764 `FT_Outline_Get_Orientation'. This version differs from the public
1765 one in that each part (contour not enclosed in another contour) of the
1766 outline is checked for orientation.
1767 (FT_Outline_Embolden): Use `ft_outline_get_orientation'.
1768
1769 * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Render the outline and
1770 use bitmap's embolden routine when the outline one failed.
1771
Wu, Chia-I (吳佳一)facd9af2006-02-22 07:59:35 +000017722006-02-22 Chia-I Wu <b90201047@ntu.edu.tw>
1773
1774 * modules.cfg: Compile in ftotval.c and ftxf86.c by default for ABI
1775 compatibility.
1776
1777 * src/sfnt/sfobjs.c (sfnt_done_face): Fix a memory leak.
1778
1779 * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_bit_aligned,
1780 tt_sbit_decoder_load_byte_aligned) [FT_OPTIMIZE_MEMORY]: Fix sbit
Werner Lemberg5edafed2006-02-22 08:23:35 +00001781 loading. (Only tested with bit aligned sbit with x_pos == 0.)
Wu, Chia-I (吳佳一)facd9af2006-02-22 07:59:35 +00001782
1783 * src/truetype/ttpload.c (tt_face_load_hdmx,
Werner Lemberg5edafed2006-02-22 08:23:35 +00001784 tt_face_get_device_metrics) [FT_OPTIMIZE_MEMORY]: `hdmx' is not
1785 actually used.
Wu, Chia-I (吳佳一)facd9af2006-02-22 07:59:35 +00001786
David Turner1ae134a2006-02-21 16:50:17 +000017872006-02-21 David Turner <david@freetype.org>
1788
Werner Lemberg5edafed2006-02-22 08:23:35 +00001789 Add a new API named FT_Get_TrueType_Engine_Type to determine whether
1790 we have a patented, unpatented, or unimplemented TrueType bytecode
1791 interpreter.
David Turner0b5dc4d2006-02-21 22:36:23 +00001792
Werner Lemberg5edafed2006-02-22 08:23:35 +00001793 The FT_Get_Module_Flags API was removed consequently.
David Turner0b5dc4d2006-02-21 22:36:23 +00001794
David Turner88d89852006-02-23 22:35:26 +00001795 * include/freetype/ftmodapi.h (FT_Module_Get_Flags): Removed.
Werner Lemberg5edafed2006-02-22 08:23:35 +00001796 Replaced with...
1797 (FT_Get_TrueType_Engine_Type): This.
1798 (FT_TrueTypeEngineType): New enumeration.
David Turner0b5dc4d2006-02-21 22:36:23 +00001799
Werner Lemberg5edafed2006-02-22 08:23:35 +00001800 * include/freetype/internal/ftserv.h (FT_SERVICE_TRUETYPE_ENGINE_H):
1801 New macro.
David Turner1ae134a2006-02-21 16:50:17 +00001802
Werner Lemberg5edafed2006-02-22 08:23:35 +00001803 * src/base/ftobjs.c: Include FT_SERVICE_TRUETYPE_ENGINE_H.
1804 (FT_Module_Get_Flags): Removed. Replaced with...
1805 (FT_Get_TrueType_Engine_Type): This.
David Turnerc093db92006-02-21 17:06:35 +00001806
Werner Lemberg5edafed2006-02-22 08:23:35 +00001807 * src/truetype/ttdriver.c: Include FT_SERVICE_TRUETYPE_ENGINE_H.
1808 (tt_service_truetype_engine): New service structure.
1809 (tt_services): Register it.
1810
1811 * include/freetype/internal/services/svtteng.h: New file.
1812
1813
1814 * src/sfnt/sfobjs.c (sfnt_load_face): Fix silly bug that prevented
1815 embedded bitmaps from being correctly listed and used.
1816
1817
1818 * src/sfnt/ttmtx.c (tt_face_load_hmtx): Disable memory optimization
1819 if FT_CONFIG_OPTION_OLD_INTERNALS is used. The is necessary because
1820 libXfont is directly accessing the HMTX data, unfortunately.
1821 Fix some compiler warnings.
1822 (tt_face_get_metrics): Ditto.
1823
1824
1825 * src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Fix handling of
1826 character advances.
David Turner1ae134a2006-02-21 16:50:17 +00001827
David Turnerdd0f3602006-02-20 23:50:21 +000018282006-02-20 David Turner <david@freetype.org>
1829
David Turner0b5dc4d2006-02-21 22:36:23 +00001830 Support binary compatibility with the X.Org server's Xfont library.
Werner Lembergd41aecd2006-02-21 08:08:14 +00001831 Note that this change unfortunately prevents memory optimizations
1832 for the embedded bitmap loader.
David Turnerdd0f3602006-02-20 23:50:21 +00001833
Werner Lembergd41aecd2006-02-21 08:08:14 +00001834 * include/freetype/internal/sfnt.h (SFNT_Interface): Move
1835 `set_sbit_strike' and `load_sbit_metrics' fields to the location of
1836 version 2.1.8.
David Turnerdd0f3602006-02-20 23:50:21 +00001837
Werner Lembergd41aecd2006-02-21 08:08:14 +00001838 * src/sfnt/sfdriver.c (tt_face_set_sbit_strike_stub): Call
1839 FT_Size_Request.
1840 (sfnt_interface): Updated.
1841
1842 * src/sfnt/ttsbit.c [FT_CONFIG_OPTION_OLD_INTERNALS]: Don't load
1843 ttsbit0.c.
1844 (tt_load_sbit_metrics): Make `sbit_small_metrics_fields' static.
1845
1846 * src/sfnt/ttsbit.h: Updated.
David Turnerdd0f3602006-02-20 23:50:21 +00001847
David Turner0880ac32006-02-17 17:23:13 +000018482006-02-17 David Turner <david@freetype.org>
1849
Werner Lembergf145e312006-02-19 16:12:18 +00001850 * builds/unix/unix-cc.in (LINK_LIBRARY): Don't filter out exported
1851 functions anymore. This ensures that all FT_BASE internal functions
1852 are available for dynamic linking.
1853
1854 * include/freetype/ftcache.h (FTC_IMAGE_TYPE_COMPARE,
1855 FTC_IMAGE_TYPE_HASH), src/cache/ftcbasic.c (FTC_OldFontRec,
1856 FTC_OldImageDescRec, FTC_ImageCache_Lookup, FTC_Image_Cache_New,
1857 FTC_OldImage_Desc, FTC_OLD_IMAGE_FORMAT, ftc_old_image_xxx,
1858 ftc_image_type_from_old_desc, FTC_Image_Cache_Lookup,
1859 FTC_SBitCache_Lookup, FTC_SBit_Cache_New, FTC_SBit_Cache_Lookup)
1860 [FT_CONFIG_OPTION_OLD_INTERNALS]: Try to revive old functions of the
1861 cache sub-system. We try to recognize old legacy signatures with a
1862 gross hack (hope it works).
David Turner0880ac32006-02-17 17:23:13 +00001863
Werner Lemberg1fae6692006-02-17 16:16:40 +000018642006-02-17 Werner Lemberg <wl@gnu.org>
1865
1866 * devel/ftoption.h: Synchronize with
1867 include/freetype/config/ftoption.h.
1868
David Turnercda2d952006-02-16 22:45:31 +000018692006-02-16 David Turner <david@freetype.org>
1870
Werner Lemberg8e6f8c42006-02-17 08:07:09 +00001871 Massive changes to the internals to respect the internal object
1872 layouts and exported functions of FreeType 2.1.7. Note that the
1873 cache sub-system cannot be fully retrofitted, unfortunately.
David Turnercda2d952006-02-16 22:45:31 +00001874
Werner Lemberg8e6f8c42006-02-17 08:07:09 +00001875 * include/freetype/config/ftoption.h
1876 (FT_CONFIG_OPTION_OLD_INTERNALS): New macro.
1877
1878 * include/freetype/ftcache.h, include/freetype/cache/ftccache.h,
1879 include/freetype/cache/ftccmap.h,
1880 include/freetype/internal/ftcalc.h,
1881 include/freetype/internal/ftdriver.h,
1882 include/freetype/internal/ftmemory.h,
1883 include/freetype/internal/ftobjs.h,
1884 include/freetype/internal/psaux.h, include/freetype/internal/sfnt.h,
1885 include/freetype/internal/t1types.h,
1886 include/freetype/internal/tttypes.h, src/base/ftcalc.c,
1887 src/base/ftdbgmem.c, src/base/ftobjs.c, src/base/ftutil.c,
1888 src/bdf/bdfdrivr.c, src/cache/ftccache.c, src/cache/ftccback.h,
1889 src/cache/ftcmanag.c, src/cff/cffdrivr.c, src/cid/cidriver.c,
1890 src/pcf/pcfdrivr.c, src/pfr/pfrdrivr.c, src/psaux/psauxmod.c,
1891 src/sfnt/sfdriver.c, src/truetype/ttdriver.c, src/type1/t1driver.c,
1892 src/type1/t1objs.c, src/type42/t42drivr.c, src/winfonts/winfnt.c:
1893 Use FT_CONFIG_OPTION_OLD_INTERNALS to revive old functions and data
1894 structures.
1895
1896 Move newly added structure elements to the end of the affected
1897 structure and add stub fields (if FT_CONFIG_OPTION_OLD_INTERNALS is
1898 defined) to assure binary compatibility with older FreeType
1899 versions.
1900 Use FT_CONFIG_OPTION_OLD_INTERNALS to add function stubs for old
1901 functions:
1902
1903 ft_stub_set_char_sizes
1904 ft_stub_set_pixel_sizes
1905
1906 Rename the following internal functions to provide the old function
1907 names as stubs:
1908
1909 FT_Alloc -> ft_mem_alloc
1910 FT_QAlloc -> ft_mem_qalloc
1911 FT_Realloc -> ft_mem_realloc
1912 FT_QRealloc -> ft_mem_qrealloc
1913 FT_Free -> ft_mem_free
1914 FT_Alloc_Debug -> ft_mem_alloc_debug
1915 FT_QAlloc_Debug -> ft_mem_qalloc_debug
1916 FT_Realloc_Debug -> ft_mem_realloc_debug
1917 FT_QRealloc_Debug -> ft_mem_qrealloc_debug
1918 FT_Free_Debug -> ft_mem_free_debug
David Turnercda2d952006-02-16 22:45:31 +00001919
Wu, Chia-I (吳佳一)0d565fd2006-02-15 07:44:31 +000019202006-02-15 Chia-I Wu <b90201047@ntu.edu.tw>
1921
1922 * include/freetype/internal/ftobjs.h (FT_Face_InternalRec): Remove
1923 unused `max_points' and `max_contours'.
David Turnercda2d952006-02-16 22:45:31 +00001924
Wu, Chia-I (吳佳一)0d565fd2006-02-15 07:44:31 +00001925 * src/cid/cidobjs.c (cid_face_init), src/type1/t1objs.c
1926 (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init): Update.
1927
1928 * include/freetype/internal/tttypes.h (TT_FaceRec): Remove unused
1929 `max_components'.
1930
1931 * src/truetype/ttinterp.h (TT_ExecContextRec): Remove unused
1932 `loadSize' and `loadStack'.
1933
1934 * src/truetype/ttinterp.c (TT_Done_Context, TT_Load_Context),
1935 src/sfnt/ttload.c (tt_face_load_maxp): Update.
1936
1937 * src/cff/cffobjs.h (cff_size_select), src/sfnt/sfdriver.c
1938 (sfnt_interface), src/truetype/ttdriver.c (tt_size_request): Fix
1939 compiler errors/warnings when TT_CONFIG_OPTION_EMBEDDED_BITMAPS is not
1940 defined.
1941
1942 * src/sfnt/ttmtx.c (tt_face_load_hmtx, tt_face_get_metrics): Fix
1943 possible segment faults for the non-FT_OPTIMIZE_MEMORY'ed versions.
1944 (finally!)
1945
Werner Lemberg8e6f8c42006-02-17 08:07:09 +00001946
Wu, Chia-I (吳佳一)0d565fd2006-02-15 07:44:31 +00001947 For most OpenType tables, `tt_face_load_xxxx' simply loads the table
1948 and `face->root' is set later in `sfnt_load_face'. Here, we try to
Werner Lemberg8e6f8c42006-02-17 08:07:09 +00001949 make this work for _all_ tables. Also improve tracing messages.
Wu, Chia-I (吳佳一)0d565fd2006-02-15 07:44:31 +00001950
1951 * src/sfnt/ttsbit.c, src/sfnt/ttsbit0.c, src/sfnt/ttload.c,
1952 src/sfnt/ttmtx.c: all `tt_face_load_xxxx' should load the table and
1953 then exit. Error handling or setting face->root is done later in
1954 `sfnt_load_face'.
Wu, Chia-I (吳佳一)0d565fd2006-02-15 07:44:31 +00001955
1956 * src/sfnt/sfobjs.c (sfnt_load_face): Work harder.
1957 Mac bitmap-only fonts are not scalable.
1958 Check that `face->header.Units_Per_EM' is not zero.
Werner Lemberg8e6f8c42006-02-17 08:07:09 +00001959 (LOAD_, LOADM_): Emit pretty trace messages.
Wu, Chia-I (吳佳一)0d565fd2006-02-15 07:44:31 +00001960
Werner Lemberg8e6f8c42006-02-17 08:07:09 +00001961 * src/sfnt/ttsbit0.c (tt_face_load_strike_metrics): Read metrics
1962 from `eblc'.
Wu, Chia-I (吳佳一)0d565fd2006-02-15 07:44:31 +00001963
1964 * src/sfnt/ttcmap.c (tt_face_build_cmaps), src/sfnt/ttpost.c
1965 (load_format_20, load_format_25, tt_face_get_ps_name): Use
1966 face->max_profile.numGlyphs, instead of face->root.num_glyphs.
1967
Werner Lemberg52254022006-02-15 06:05:52 +000019682006-02-14 Werner Lemberg <wl@gnu.org>
1969
1970 * include/freetype/ftoutln.h (FT_Outline_Embolden): Mention in
1971 documentation that negative strength values are possible.
1972 Give an example call.
1973
1974 * include/freetype/freetype.h (FT_GlyphSlotRec): Improve
1975 documentation of `outline' field.
1976
1977 * src/sfnt/sfobjc.s: Inckude FT_INTERNAL_DEBUG_H.
1978 * src/sfnt/sfdriver.c: Include ttmtx.h.
1979
1980 * src/autofit/afcjk.c: Include aftypes.h and aflatin.h.
1981
Wu, Chia-I (吳佳一)9a2b3b62006-02-14 08:37:03 +000019822006-02-14 Chia-I Wu <b90201047@ntu.edu.tw>
1983
Wu, Chia-I (吳佳一)3dc00182006-02-14 13:36:28 +00001984 * src/sfnt/ttmtx.c (tt_face_get_metrics): Typo.
1985
19862006-02-14 Chia-I Wu <b90201047@ntu.edu.tw>
1987
Wu, Chia-I (吳佳一)9a2b3b62006-02-14 08:37:03 +00001988 * src/sfnt/ttmtx.c (tt_face_load_hhea, tt_face_load_hmtx): Simply
1989 return error if table is missing.
1990 Check table length in non-FT_OPTIMIZE_MEMORY'ed `tt_face_load_hmtx'.
1991
1992 * src/sfnt/sfobjs.c (sfnt_load_face): Take care of missing metrics
Werner Lemberg52254022006-02-15 06:05:52 +00001993 tables. The last change makes Mac bitmap-only font not load and
1994 this fixes it.
Wu, Chia-I (吳佳一)9a2b3b62006-02-14 08:37:03 +00001995
Werner Lemberg52254022006-02-15 06:05:52 +00001996 * src/truetype/ttgload.c (load_truetype_glyph): Fix compilation
1997 error when FT_CONFIG_OPTION_INCREMENTAL is defined.
Wu, Chia-I (吳佳一)9a2b3b62006-02-14 08:37:03 +00001998
Wu, Chia-I (吳佳一)f5aa47b2006-02-14 06:40:10 +000019992006-02-13 Chia-I Wu <b90201047@ntu.edu.tw>
2000
Wu, Chia-I (吳佳一)35222ff2006-02-14 07:25:57 +00002001 Clean up the SFNT_Interface. In this final pass, `load_hmtx' is
Werner Lemberg814839a2006-07-28 11:55:48 +00002002 split from `load_hhea'.
Wu, Chia-I (吳佳一)35222ff2006-02-14 07:25:57 +00002003
2004 * include/freetype/internal/sfnt.h, src/sfnt/sfdriver.c,
2005 src/sfnt/ttmtx.c, src/sfnt/ttmtx.h: Split `hmtx' from `hhea'.
2006
2007 * src/sfnt/sfobjs.c (sfnt_load_face): Update.
2008
20092006-02-13 Chia-I Wu <b90201047@ntu.edu.tw>
2010
Wu, Chia-I (吳佳一)e0decd12006-02-14 07:20:06 +00002011 * src/sfnt/ttmtx.h, src/sfnt/ttmtx.c: Why are there two copies of
2012 code...
2013
20142006-02-13 Chia-I Wu <b90201047@ntu.edu.tw>
2015
Werner Lemberg52254022006-02-15 06:05:52 +00002016 Clean up the SFNT_Interface. In this pass, we want to treat the
2017 font directory (offset table and table directory) as a normal table
2018 like the others. This also means that TTCs are no longer recognized
2019 there but in `init_face'.
Wu, Chia-I (吳佳一)65863a52006-02-14 07:01:29 +00002020
2021 * include/freetype/internal/sfnt.h (SFNT_Interface),
2022 src/sfnt/sfdriver.c: `load_sfnt_header' and `load_directory' are
2023 combined and renamed to `load_font_dir'.
2024
2025 * src/sfnt/ttload.h, src/sfnt/ttload.c:
2026 s/sfnt_dir_check/check_table_dir/.
2027 `sfnt_init' is moved to sfobjs.c and renamed to `sfnt_open_font'.
2028 `tt_face_load_sfnt_header' and `tt_face_load_directory' are combined
2029 and renamed to `tt_face_load_font_dir'.
2030
2031 * src/sfnt/sfobjs.c (sfnt_init_face): Recognize TTC here.
2032
20332006-02-13 Chia-I Wu <b90201047@ntu.edu.tw>
2034
Wu, Chia-I (吳佳一)f5aa47b2006-02-14 06:40:10 +00002035 Clean up the SFNT_Interface. Table loading functions are now named
Werner Lemberg52254022006-02-15 06:05:52 +00002036 after the tables' tags; `hdmx' is TrueType-specific and thus the
2037 code is moved to the truetype module; `get_metrics' is moved here
2038 from the truetype module so that the code can be shared with the cff
2039 module.
Wu, Chia-I (吳佳一)f5aa47b2006-02-14 06:40:10 +00002040
2041 This pass involves no real changes. That is, the code is moved
2042 verbatim mostly. The only exception is the return value of
2043 `tt_face_get_metrics'.
2044
2045 * include/freetype/internal/sfnt.h, src/sfnt/rules.mk,
2046 src/sfnt/sfdriver.c, src/sfnt/sfnt.c, src/sfnt/sfobjs.c,
2047 src/sfnt/ttload.c, src/sfnt/ttload.h, src/sfnt/ttsbit.c,
2048 src/sfnt/ttsbit.h, src/sfnt/ttsbit0.c: Clean up the SFNT_Interface.
David Turnercda2d952006-02-16 22:45:31 +00002049
Werner Lemberg52254022006-02-15 06:05:52 +00002050 * src/sfnt/ttmtx.c, src/sfnt/ttmtx.h: New files. Metrics-related
2051 tables' loading and parsing code is moved to here.
2052 Move `tt_face_get_metrics' here from the truetype module. The
2053 return value is changed from `void' to `FT_Error'.
Wu, Chia-I (吳佳一)f5aa47b2006-02-14 06:40:10 +00002054
2055 * include/freetype/internal/fttrace.h: New trace: ttmtx.
2056
2057 * src/truetype/ttpload.c, src/truetype/ttpload.h: `hdmx' loading and
2058 parsing code is moved here.
Werner Lemberg814839a2006-07-28 11:55:48 +00002059 New function `tt_face_load_prep' split from `tt_face_load_fpgm'.
Wu, Chia-I (吳佳一)f5aa47b2006-02-14 06:40:10 +00002060 `tt_face_load_fpgm' returns `FT_Err_Ok' if `fpgm' doesn't exist.
2061
2062 * src/cff/cffgload.c, src/cff/cffobjs.c: Update.
2063
2064 * src/truetype/ttgload.c, src/truetype/ttobjs.c: Update.
2065
Wu, Chia-I (吳佳一)f9a69132006-02-11 12:12:02 +000020662006-02-11 Chia-I Wu <b90201047@ntu.edu.tw>
2067
Wu, Chia-I (吳佳一)4c507ff2006-02-11 13:22:37 +00002068 * src/autofit/afcjk.c (af_cjk_metrics_init): Fix a stupid bug...
2069
2070 * src/autofit/aflatin.c (af_latin_metrics_init_widths): Use
Werner Lembergd39fda22006-02-12 21:49:21 +00002071 AF_LatinMetricsRec as the dummy metrics because we cast the metrics
2072 to it later in `af_latin_hints_link_segments'.
Wu, Chia-I (吳佳一)4c507ff2006-02-11 13:22:37 +00002073
20742006-02-11 Chia-I Wu <b90201047@ntu.edu.tw>
2075
Wu, Chia-I (吳佳一)f9a69132006-02-11 12:12:02 +00002076 * include/freetype/config/ftoption.h (AF_CONFIG_OPTION_CJK): #define
Werner Lembergd39fda22006-02-12 21:49:21 +00002077 to enable autofit CJK script support. (#define'd by default.)
Wu, Chia-I (吳佳一)f9a69132006-02-11 12:12:02 +00002078
2079 * src/autofit/aflatin.h (AF_LATIN_CONSTANT): New macro.
2080
Werner Lembergd39fda22006-02-12 21:49:21 +00002081 * src/autofit/aflatin.c (af_latin_metrics_init_widths): Make sure
2082 that `edge_distance_threshold' is always set.
2083 (af_latin_hints_link_segments): Potential divide-by-zero bug.
Wu, Chia-I (吳佳一)f9a69132006-02-11 12:12:02 +00002084 Use latin constant in the scoring formula.
2085
2086 * src/autofit/afcjk.c: Minor updates due to the above three changes.
2087
2088 * docs/TODO, docs/CHANGES: Updated.
2089
Wu, Chia-I (吳佳一)4cdb45c2006-02-09 14:17:04 +000020902006-02-09 Chia-I Wu <b90201047@ntu.edu.tw>
2091
2092 Introduce experimental autofit CJK module based on akito's autohint
2093 patch. You need to #define AF_MOD_CJK in afcjk.c to enable it.
2094
2095 * src/autofit/afglobal.c, src/autofit/afcjk.h, src/autofit/afcjk.c,
2096 src/autofit/rules.mk, src/autofit/autofit.c, src/autofit/aftypes.h:
2097 Add CJK module based on akito's autohint patch.
2098
2099 * src/autofit/afhints.h (AF_SegmentRec): New field `len' for the
Werner Lembergd1d4bff2006-02-10 22:15:22 +00002100 overlap length of the segments.
2101 (AF_SEGMENT_LEN, AF_SEGMENT_DIST): New macros.
Wu, Chia-I (吳佳一)4cdb45c2006-02-09 14:17:04 +00002102
2103 * src/autofit/aflatin.h (af_latin_metrics_init_widths),
Werner Lembergd1d4bff2006-02-10 22:15:22 +00002104 src/autofit/aflatin.c (af_latin_metrics_init_widths): Made
2105 `FT_LOCAL'.
Wu, Chia-I (吳佳一)4cdb45c2006-02-09 14:17:04 +00002106 Use the character given by the caller.
2107 (af_latin_metrics_init_widths, af_latin_hints_link_segments): Scale
2108 the thresholds.
2109
2110 * src/autofit/afloader.c (af_loader_load_g): Respect
2111 AF_SCALER_FLAG_NO_ADVANCE.
2112
Werner Lemberg6be99f92006-02-09 07:38:57 +000021132006-02-09 Werner Lemberg <wl@gnu.org>
Suzuki, Toshiya (鈴木俊哉)4f41d632006-02-09 01:43:00 +00002114
Werner Lemberg6be99f92006-02-09 07:38:57 +00002115 * src/cid/cidparse.c (cid_parse_new): Remove shadowing variable.
Suzuki, Toshiya (鈴木俊哉)4f41d632006-02-09 01:43:00 +00002116
Werner Lemberg6be99f92006-02-09 07:38:57 +000021172006-02-09 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Suzuki, Toshiya (鈴木俊哉)458c3422006-02-08 12:58:24 +00002118
Werner Lemberg6be99f92006-02-09 07:38:57 +00002119 * src/cid/cidparse.c (cid_parse_new): Fix for abnormally short or
2120 broken CIDFont. Reported by Taek Kwan(TK) Lee (see ft-devel
2121 2005-11-02).
2122
21232006-02-08 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
2124
2125 * builds/unix/configure.ac: Fix bug for `--with-old-mac-fonts'
2126 option on UNIX platform. It has been broken since 2006-01-11.
Suzuki, Toshiya (鈴木俊哉)458c3422006-02-08 12:58:24 +00002127
Werner Lemberg38beff02006-02-01 05:14:25 +000021282006-02-01 Werner Lemberg <wl@gnu.org>
2129
2130 * src/otvalid/module.mk: s/otvalid_module_class/otv_module_class/.
2131 * src/gxvalid/module.mk: s/gxvalid_module_class/gxv_module_class/.
2132
Werner Lemberg03379b62006-02-01 05:40:06 +00002133 * builds/unix/unixddef.mk: Actually do define PLATFORM (fixing
2134 change from 2006-01-31).
2135 (TOP_DIR, OBJ_DIR): Update.
2136
Werner Lemberg9a8006b2006-02-01 06:07:05 +00002137 * builds/unix/install.mk (install): Fix path for ftmodule.h.
2138
Werner Lemberg54a79c82006-02-01 07:54:07 +00002139 * Makefile, *.mk, builds/unix/unix-cc.in, builds/unix-def.in: Use
2140 `?=' where appropriate.
Werner Lemberg8a4de0d2006-02-01 07:52:11 +00002141
2142 * builds/detect.mk (TOP_DIR), builds/os2/os2-dev.mk (TOP_DIR),
2143 builds/win32/w32-dev.mk (TOP_DIR): Removed. Defined elsewhere.
2144
Werner Lemberg38beff02006-02-01 05:14:25 +000021452006-01-31 Werner Lemberg <wl@gnu.org>
Werner Lemberg59939242006-01-31 20:17:42 +00002146
2147 Implement new, simplified module selection. With GNU make it is now
2148 sufficient to modify a single file, `modules.cfg', to control the
2149 inclusion of modules and base extension files.
2150
2151 This change also fixes the creation of ftmodule.h; it now depends on
2152 `modules.cfg' and thus is rebuilt only if necessary.
2153
2154 Finally, a version of `ftoption.h' in OBJ_DIR is preferred over the
2155 default location.
2156
2157 * modules.cfg: New file.
2158
2159 * builds/freetype.mk: Don't include `modules.mk'.
2160 Include all `rules.mk' files as specified in `modules.cfg'.
2161 (FTOPTION_FLAG, FTOPTION_H): New variables.
2162 (FT_CFLAGS): Add macro definition for FT_CONFIG_MODULES_H.
2163 Add FTOPTION_FLAG.
2164 ($(FT_INIT_OBJ)): Don't use FT_MODULE_LIST.
2165 (CONFIG_H): Add FTMODULE_H and FTOPTION_H.
2166 (INCLUDES): Add DEVEL_DIR.
2167 (INCLUDE_FLAGS, FTSYS_SRC, FTSYS_OBJ, FTDEBUG_SRC, FTDEBUG_OBJ,
2168 OBJ_M, OBJ_S): Use `:=', not `='.
2169 (remove_ftmodule_h): New phony target to delete `ftmodule.h'.
2170 (distclean): Add remove_ftmodule_h.
2171
2172 * builds/modules.mk: (MODULE_LIST): Removed.
2173 (make_module_list, clean_module_list): Replace targets
2174 with...
2175 (FTMODULE_H_INIT, FTMODULE_H_CREATE, FTMODULE_H_DONE): New
2176 variables. Reason for the change is that it is not possible to have
2177 a phony prerequisite which is run only if the target file must be
2178 rebuilt (phony prerequisites act like subroutines and are *always*
2179 executed). We only want to rebuild `ftmodule.h' if `module.cfg' is
2180 changed.
2181 Update all callers.
2182 ($FTMODULE_H)): Rule to create `ftmodule.h', depending on
2183 `modules.cfg'.
2184
2185 * builds/toplevel.mk: Rewrite and simplify module handling.
2186 (MODULES_CFG, FTMODULE_H): New variables.
2187 Include MODULES_CFG.
2188 (MODULES): New variable to include all `module.mk' and `rules.mk'
2189 files. We no longer use make's `wildcard' function for this.
2190
2191 * Makefile (USE_MODULES): Remove. Update all users.
2192 (OBJ_DIR): Define it here.
2193
2194 * src/*/module.mk: Change
2195
2196 make_module_list: foo
2197 foo: ...
2198
2199 to
2200
2201 FTMODULE_H_COMMANDS += FOO
2202 define FOO
2203 ...
2204 endef
2205
2206 in all files. `FTMODULE_H_COMMANDS' is used in `FTMODULE_H_CREATE'.
2207
2208 * src/base/rules.mk (BASE_EXT_SRC): Use BASE_EXTENSIONS.
2209
2210 * builds/unix/detect.mk (setup): Always execute `configure' script.
2211 (have_mk): Rename to...
2212 (have_Makefile): This.
2213 Don't use `strip' function.
2214
2215 * builds/unix/unix.mk: Include `install.mk' only if BUILD_PROJECT is
2216 defined.
2217 (have_mk): Don't use `strip' function.
2218 Test for unix-def.mk in OBJ_DIR, not BUILD_DIR (and invert the test
2219 accordingly).
2220
2221 * builds/unix/install.mk (install, uninstall): Handle `ftmodule.h'.
2222
2223 * builds/os2/os2-dev.mk, builds/unix/unix-dev.mk,
2224 builds/win32/w32-bccd.mk, builds/win32/w32-dev.mk: Don't define
2225 BUILD_DIR but DEVEL_DIR for development header files.
2226
2227 * builds/ansi/ansi-def.mk (TOP_DIR, OBJ_DIR),
2228 builds/beos/beos-def.mk (TOP_DIR, OBJ_DIR), builds/unix/unix-def.in
2229 (TOP_DIR, OBJ_DIR): Removed. Defined elsewhere.
2230
2231 * builds/dos/dos-def.mk (OBJ_DIR), builds/os2/os2-def.mk (OBJ_DIR),
2232 builds/win32/win32-def.mk (OBJ_DIR): Removed. Defined elsewhere.
2233
2234 * builds/unix/unixddef.mk: Don't define BUILD_DIR but DEVEL_DIR for
2235 development header files.
2236 Don't define PLATFORM.
2237
2238 * configure: Copy `modules.cfg' to builddir if builddir != srcdir.
2239 Update snippet taken from autoconf's m4sh.m4 to current CVS version.
2240 Be more verbose.
2241
2242 * include/freetype/config/ftmodule.h: Add comments -- this file is
2243 no longer used if FreeType is built with GNU make.
2244
2245 * docs/CHANGES, docs/CUSTOMIZE, docs/INSTALL, docs/INSTALL.ANY,
2246 docs/INSTALL.GNU, docs/INSTALL.UNX: Document new build mechanism.
2247 Other minor updates.
2248
2249 * modules.txt: Removed. Contents included in `modules.cfg'.
2250
2251
2252 * include/freetype/internal/ftmemory.h (FT_QAlloc_Debug,
2253 FT_Free_Debug) [FT_STRICT_ALIASING]: Fix typos.
2254
2255 * src/base/ftdbgmem.c (FT_Alloc_Debug, FT_Realloc_Debug,
2256 FT_QAlloc_Debug, FT_QRealloc_Debug, FT_Free_Debug)
2257 [FT_STRICT_ALIASING]: Implement.
2258
Wu, Chia-I (吳佳一)98d802b2006-01-31 07:01:24 +000022592006-01-31 Chia-I Wu <b90201047@ntu.edu.tw>
2260
Wu, Chia-I (吳佳一)5d146852006-01-31 10:29:44 +00002261 * src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c
Werner Lemberg59939242006-01-31 20:17:42 +00002262 (cid_face_init), src/pfr/pfrobjs.c (pfr_face_init),
2263 src/type1/t1objs.c (T1_Face_Init): Set face->height to MAX(1.2 *
2264 units_per_EM, ascender - descender).
Wu, Chia-I (吳佳一)5d146852006-01-31 10:29:44 +00002265
22662006-01-31 Chia-I Wu <b90201047@ntu.edu.tw>
2267
Wu, Chia-I (吳佳一)98d802b2006-01-31 07:01:24 +00002268 * include/freetype/internal/t1types.h (AFM_FontInfo),
2269 src/psaux/afmparse.c, src/tools/test_afm.c: Read `FontBBox',
2270 `Ascender', and `Descender' from an AFM.
2271
2272 * src/type1/t1afm.c (T1_Read_Metrics): Use the metrics from the AFM.
2273
Werner Lemberg59939242006-01-31 20:17:42 +00002274 * include/freetype/freetype.h (FT_FaceRec): Mention that fields may
2275 be changed after file attachment.
Wu, Chia-I (吳佳一)98d802b2006-01-31 07:01:24 +00002276
Werner Lemberg7596fd32006-01-28 16:29:29 +000022772006-01-28 Werner Lemberg <wl@gnu.org>
2278
2279 * src/*/module.mk (.PHONY): Add.
2280
Werner Lemberg68a15eb2006-01-28 07:30:58 +000022812006-01-27 Werner Lemberg <wl@gnu.org>
2282
2283 * README, docs/FTL.TXT: Fix email address for bug reports.
2284 Other minor formatting.
2285
Werner Lembergf6a25502006-01-28 10:38:15 +00002286 * devel/ftoption.h: Synchronize with
2287 include/freetype/config/ftoption.h.
2288
2289 * src/autofit/module.mk (add_autofit_module), src/bdf/module.mk
2290 (add_bdf_module), src/type42/module.mk (add_type42_driver): Fix
2291 whitespace.
2292
2293 * src/smooth/module.mk (add_smooth_renderer): Add lcd and lcdv
2294 renderer classes.
2295
David Turnerff0e9e62006-01-27 09:15:53 +000022962006-01-27 David Turner <david@freetype.org>
2297
Werner Lemberg68a15eb2006-01-28 07:30:58 +00002298 * builds/unix/configure.ac: Fix build problem on Cygwin.
David Turnercda2d952006-02-16 22:45:31 +00002299
Werner Lemberg68a15eb2006-01-28 07:30:58 +00002300 * builds/unix/install.mk (install): Don't install the internal
2301 headers, and remove existing ones if found in the target install
2302 directory.
David Turner7213b4f2006-01-27 16:42:32 +00002303
Werner Lemberg68a15eb2006-01-28 07:30:58 +00002304 * src/autofit/afwarp.c: Add simple #ifdef to prevent compilation
2305 if the warp hinter isn't active (it shouldn't, still experimental).
David Turner6a681fa2006-01-27 12:11:22 +00002306
Werner Lemberg68a15eb2006-01-28 07:30:58 +00002307 * Jamfile, include/freetype/config/ftmodule.h: Remove `gxvalid'
Werner Lembergbe3c9812006-01-27 14:16:16 +00002308 and `otvalid' from the list of modules that are linked statically
2309 to a given FreeType library. Functionality has been moved to the
2310 `ftvalid' CVS module.
David Turner6a681fa2006-01-27 12:11:22 +00002311
Werner Lembergbe3c9812006-01-27 14:16:16 +00002312 Note also that current Make-based build system still compiles the
2313 modules though.
David Turner6a681fa2006-01-27 12:11:22 +00002314
Werner Lembergbe3c9812006-01-27 14:16:16 +00002315 * include/freetype/config/ftoption.h (FT_STRICT_ALIASING): New macro
2316 which controls the definitions of the memory management functions to
2317 avoid warnings with recent versions of GCC. This macro is only here
2318 to be disabled, in case we detect problems with the new scheme.
David Turner6a681fa2006-01-27 12:11:22 +00002319
Werner Lembergbe3c9812006-01-27 14:16:16 +00002320 NOTE: Disable macro to use the memory debugger -- this will be fixed
2321 later!
2322
2323 * include/freetype/internal/ftmemory.h, src/base/ftutil.c (FT_Alloc,
2324 FT_QAlloc, FT_Realloc, FT_QRealloc, FT_Free) [FT_STRICT_ALIASING]:
2325 New versions.
2326
2327
2328 * builds/win32/visualc/freetype.dsp: Updating project file to
2329 define FT2_BUILD_LIBRARY, and remove gxvalid + otvalid modules from
2330 compilation.
2331
2332
2333 * builds/freetype.mk (FT_CFLAGS), Jamfile (DEFINES): Define the
2334 macro FT2_BUILD_LIBRARY when compiling the library.
2335
2336 * include/freetype/config/ftheader.h: Remove inclusions of internal
2337 headers except if the macro FT2_BUILD_LIBRARY is defined.
2338
2339
2340 * include/freetype/internal/psaux.h (AFM_KernPair, AFM_TrackKern,
2341 AFM_FontInfo): Move structure declarations to...
2342 * include/freetype/internal/t1types.h: This file.
2343
2344
2345 * (many files): Fix compiler warnings.
2346 Various minor reorganizations.
2347
2348
2349 * src/cff/cffload.c (cff_font_done): Don't free static array
2350 `subfonts'.
2351
2352 * src/otvalid/otvcommn.c (otv_ClassDef_validate),
2353 src/otvalid/otvgpos.c (otv_x_sxy): Fix debugging information.
2354
Werner Lemberg68a15eb2006-01-28 07:30:58 +00002355
2356 Get rid of writable static variables (i.e., the string table) in
2357 afmparse, and fix compilation in FT2_MULTI mode.
2358
Werner Lembergbe3c9812006-01-27 14:16:16 +00002359 * src/psaux/afmparse.c: Include ft2build.h and FT_FREETYPE_H.
2360 (AFM_MAX_ARGUMENTS): Define...
2361 * src/psaux/afmparse.h: Here.
2362 * src/psaux/Jamfile (_sources): Add afmparse.
2363
2364 * src/psaux/psconv.c: Include psconv.h.
2365
2366 * src/type1/t1afm.c: Don't include FT_INTERNAL_TYPE1_TYPES_H but
2367 FT_INTERNAL_POSTSCRIPT_AUX_H.
2368 * src/type1/t1afm.h: Include FT_INTERNAL_TYPE1_TYPES_H.
David Turnerff0e9e62006-01-27 09:15:53 +00002369
Wu, Chia-I (吳佳一)4c6234d2006-01-23 10:46:38 +000023702006-01-23 Chia-I Wu <b90201047@ntu.edu.tw>
2371
Wu, Chia-I (吳佳一)bcc438b2006-01-23 14:12:40 +00002372 * include/freetype/freetype.h (FT_Select_Size): Rename the second
2373 argument from `idx' to `strike_index'.
2374 (FT_Size_Request_Type): Add FT_SIZE_REQUEST_TYPE_MAX to the end of
2375 this enum.
2376
2377 * include/freetype/internal/ftobjs.h (FT_REQUEST_WIDTH,
2378 FT_REQUEST_HEIGHT): New macros to get the width and height of a
2379 request, in fractional pixels.
2380
2381 * include/freetype/internal/ftobjs.h (FT_Select_Metrics,
2382 FT_Request_Metrics), src/base/ftobjs.c (FT_Select_Metrics,
2383 FT_Request_Metrics): New base functions to set the font metrics. They
2384 were part of FT_Select_Size/FT_Request_Size and are made independent
2385 functions so that metrics are not set again and again.
2386
2387 * src/base/ftobjs.c (FT_Select_Size, FT_Request_Size): Metrics are set
2388 only when driver's size_select/size_request is NULL. That is, drivers
2389 should set the metrics themselves.
2390 (FT_Match_Size): Round before matching. This was what we did and it
2391 does cause some problems without rounding.
2392
2393 * src/cff/cffobjs.c (cff_size_select), src/truetype/ttdriver.c
2394 (tt_size_select): Set the font metrics.
2395 s/index/strike_index/.
2396 The scaled metrics are always preferred over strikes' metrics, even
2397 when some strike is selected. This is done because the strikes'
2398 metrics are not reliable, e.g., the sign of the descender is wrong for
2399 some fonts.
2400
2401 * src/cff/cffobjs.c (cff_size_request), src/truetype/ttdriver.c
2402 (tt_size_request): Set the font metrics.
2403 Call cff_size_select/tt_size_select when some strike is matched.
2404
2405 * src/bdf/bdfdrivr.c, src/cff/cffobjs.c, src/cid/cidobjs.c,
2406 src/pcf/pcfdrivr.c, src/truetype/ttdriver.c, src/type1/t1objs.c,
2407 src/type1/t1objs.h, src/type42/t42objs.c, src/winfonts/winfnt.c:
2408 Set the font metrics.
2409 s/index/strike_index/.
2410
2411 * src/tools/test_afm.c, src/psaux/psconv.c: Older versions of these
2412 files were committed. Just a catch-up.
2413 (PS_Conv_ToFixed): Remove the `goto'.
2414 (PS_Conv_ASCIIHexDecode, PS_Conv_EexecDecode): Speed up a little.
2415
2416 * src/sfnt/ttsbit.c (tt_face_load_sbit_strikes,
2417 tt_face_load_strike_metrics), src/sfnt/ttsbit0.c
2418 (tt_face_load_sbit_strikes, tt_face_load_strike_metrics): The
2419 advertised metrics in `available_sizes' are different from those
2420 actually used.
2421
24222006-01-23 Chia-I Wu <b90201047@ntu.edu.tw>
2423
Wu, Chia-I (吳佳一)4c6234d2006-01-23 10:46:38 +00002424 * src/psaux/psaux.c src/psaux/psauxmod.c src/type1/t1driver.c: Make
2425 AFM parser optional, controlled by `T1_CONFIG_OPTION_NO_AFM'.
2426
Werner Lemberged70ca52006-01-23 07:28:03 +000024272006-01-22 Werner Lemberg <wl@gnu.org>
2428
2429 * builds/unix/install-sh, builds/unix/mkinstalldirs: Updated from
Werner Lemberg4836f952006-06-06 12:54:08 +00002430 `texinfo' CVS module at savannah.gnu.org.
Werner Lemberged70ca52006-01-23 07:28:03 +00002431
Werner Lemberg1be9ebf2006-01-22 06:58:16 +000024322006-01-21 Werner Lemberg <wl@gnu.org>
2433
2434 * src/autofit/rules.mk (AUTOF_DRV_SRC): Add afwarp.c.
2435
Werner Lembergb36bf522006-01-22 07:09:54 +00002436 * src/autofit/afloader.c (af_loader_load_g): Move AF_USE_WARPER up
2437 to avoid compiler warnings.
2438
2439 * src/autofit/afwarp.c (af_warper_compute_line_best): Remove
2440 shadowing variable declarations.
2441 Fix warning parameters and replace printf with AF_LOG.
2442 (af_warper_compute): Remove unused variable.
2443
David Turnerbb4edc92006-01-21 14:31:45 +000024442006-01-20 David Turner <david@freetype.org>
2445
Werner Lemberg1be9ebf2006-01-22 06:58:16 +00002446 Adding experimental implementation of `warp hinting' (new hinting
2447 algorithm for gray-level and LCD rendering). It is disabled by
2448 default, you need to #define AF_USE_WARPER in aftypes.h.
2449
2450 * src/autofit/afhints.c (af_glyph_hints_scale_dim) [AF_USE_WARPER]:
2451 New function.
2452 * src/autofit/afhints.h: Updated.
2453
2454 * src/autofit/aflatin.c [AF_USE_WARPER]: Include afwarp.h.
2455 (af_latin_hints_init) [AF_USE_WARPER]: Reset mode to
2456 FT_RENDER_MODE_NORMAL if an LCD mode is selected.
2457 (af_latin_hints_apply) [AF_USE_WARPER]: Call af_warper_compute
2458 appropriately.
2459
2460 * src/autofit/afloader.c (af_loader_load_g) [!AF_USER_WARPER]:
2461 Isolate code for adjusting metrics.
2462
2463 * src/autofit/aftypes.h (AF_USE_WARPER): New macro (commented out by
2464 default).
2465
2466 * src/autofit/afwarp.c, src/autofit/afwarp.h: New files.
2467
2468 * src/autofit/autofit.c [AF_USE_WARPER]: Include afwarp.c.
2469
2470 * src/autofit/Jamfile (_sources): Add afwarp.
David Turnerbb4edc92006-01-21 14:31:45 +00002471
David Turner8c16ed32006-01-19 13:10:49 +000024722006-01-19 David Turner <david@freetype.org>
2473
Werner Lemberge7be64e2006-01-21 17:27:32 +00002474 * src/sfnt/ttsbit0.c (tt_face_load_strike_metrics): Fix small bug
2475 that prevented compilation when FT_OPTIMIZE_MEMORY is defined.
David Turner8c16ed32006-01-19 13:10:49 +00002476
Werner Lemberg8b560632006-01-19 08:30:58 +000024772006-01-19 Brian Weed <bw@imaginengine.com>
2478
2479 * builds/win32/visualc/freetype.dsp: Updated.
2480
Werner Lemberg47bf95d2006-01-17 16:55:32 +000024812006-01-17 Werner Lemberg <wl@gnu.org>
2482
2483 Use pscmap service in CFF module.
2484
2485 * src/cff/cffcmap.c (cff_cmap_uni_pair_compare): Removed.
2486 (cff_sid_to_glyph_name): New function.
2487 (cff_cmap_unicode_init, cff_cmap_unicode_done,
2488 cff_cmap_unicode_char_index, cff_cmap_unicode_char next): Use pscmap
2489 service.
2490 (cff_cmap_unicode_class_rec): Updated.
2491 * src/cff/cffcmap.h (CFF_CMapUnicode, CFF_CMap_UniPair): Removed.
2492
2493
2494 * src/psnames/psmodule.c (ps_unicodes_char_next): Fix `unicode'
2495 return value.
2496
2497
2498 * src/psaux/afmparse.c (afm_parser_read_vals): Use double casting
Werner Lemberge7be64e2006-01-21 17:27:32 +00002499 to avoid compiler warnings regarding type-punning.
Werner Lemberg47bf95d2006-01-17 16:55:32 +00002500
Wu, Chia-I (吳佳一)108fdbb2006-01-16 15:35:56 +000025012006-01-16 Chia-I Wu <b90201047@ntu.edu.tw>
2502
2503 * src/psaux/afmparse.c, src/psaux/afmparse.h: New files which
Werner Lembergce94c7a2006-01-16 22:35:33 +00002504 implement an AFM parser.
Wu, Chia-I (吳佳一)108fdbb2006-01-16 15:35:56 +00002505
2506 * src/psaux/psconv.c, src/psaux/psconv.h: New files to provide
Werner Lembergce94c7a2006-01-16 22:35:33 +00002507 conversion functions (e.g., PS real number => FT_Fixed) for the
2508 PS_Parser and AFM_Parser. Some of the functions are taken, with
2509 some modifications, from the file psobjs.c.
Wu, Chia-I (吳佳一)108fdbb2006-01-16 15:35:56 +00002510
2511 * src/psaux/psobjs.c: Use functions from psconv.c.
2512
Werner Lembergce94c7a2006-01-16 22:35:33 +00002513 * include/freetype/internal/psaux.h, src/psaux/psauxmod.c: Add
Wu, Chia-I (吳佳一)108fdbb2006-01-16 15:35:56 +00002514 `AFM_Parser' to the `psaux' service.
2515
Werner Lembergce94c7a2006-01-16 22:35:33 +00002516 * src/psaux/psaux.c, src/psaux/rules.mk (PSAUX_DRV_SRC): Include
2517 those new files.
Wu, Chia-I (吳佳一)108fdbb2006-01-16 15:35:56 +00002518
2519 * src/tools/test_afm.c: A test program for AFM parser.
2520
Werner Lembergce94c7a2006-01-16 22:35:33 +00002521 * include/freetype/internal/services/svkern.h: New file providing a
2522 `Kerning' service. It is currently only used to get the track
2523 kerning information.
2524
2525 * include/freetype/internal/ftserv.h (FT_SERVICE_KERNING_H): New
2526 macro.
Wu, Chia-I (吳佳一)108fdbb2006-01-16 15:35:56 +00002527
2528 * src/type1/t1driver.c, src/type1/t1objs.c, src/type1/t1afm.c,
2529 src/type1/t1afm.h: Update to use the AFM parser.
2530 Provide the `Kerning' service.
2531
2532 * include/freetype/freetype.h, src/base/ftobjs.c: New API
2533 `FT_Get_Track_Kerning'.
2534
Wu, Chia-I (吳佳一)e5ff0592006-01-15 06:00:49 +000025352006-01-15 Chia-I Wu <b90201047@ntu.edu.tw>
2536
Wu, Chia-I (吳佳一)ea1e8d32006-01-15 15:01:45 +00002537 * include/freetype/internal/ftobjs.h, src/base/ftobjs.c,
2538 src/bdf/bdfdrivr.c, src/cff/cffgload.c, src/cid/cidgload.c,
2539 src/pcf/pcfdrivr.c, src/type1/t1gload.c, src/winfonts/winfnt.c:
2540 s/ft_fake_vertical_metrics/ft_synthesize_vertical_metrics/.
2541
2542 * docs/CHANGES: Mention that vertical metrics are synthesized for
2543 fonts not having this info.
2544
25452006-01-15 Chia-I Wu <b90201047@ntu.edu.tw>
2546
Wu, Chia-I (吳佳一)212aee02006-01-15 06:24:53 +00002547 * include/freetype/internal/ftobjs.h (ft_fake_vertical_metrics),
Werner Lemberg1723dcc2006-01-15 07:30:32 +00002548 src/base/ftobjs.c (ft_fake_vertical_metrics): New function to fake
Wu, Chia-I (吳佳一)212aee02006-01-15 06:24:53 +00002549 vertical metrics.
2550
2551 * src/cff/cffgload.c, src/cid/cidgload.c, src/pcf/pcfdrivr.c,
Werner Lemberg1723dcc2006-01-15 07:30:32 +00002552 src/type1/t1gload.c, src/winfonts/winfnt.c: Fake vertical metrics,
2553 which are monotone.
Wu, Chia-I (吳佳一)212aee02006-01-15 06:24:53 +00002554
2555 * src/truetype/ttgload.c (compute_glyph_metrics): Some fixes and
Werner Lemberg1723dcc2006-01-15 07:30:32 +00002556 formattings in vertical metrics faking. There is still room for
2557 improvements (and so does the CFF module).
Wu, Chia-I (吳佳一)212aee02006-01-15 06:24:53 +00002558
25592006-01-15 Chia-I Wu <b90201047@ntu.edu.tw>
2560
Wu, Chia-I (吳佳一)e5ff0592006-01-15 06:00:49 +00002561 * src/bdf/bdfdrivr.c (BDF_Glyph_Load), src/pcf/pcfdrivr.c
2562 (PCF_Glyph_Load), src/winfonts/winfnt.c (FNT_Load_Glyph): Don't set
Werner Lemberg1723dcc2006-01-15 07:30:32 +00002563 the linear advance fields as they are only used by the outline
2564 glyphs.
Wu, Chia-I (吳佳一)e5ff0592006-01-15 06:00:49 +00002565
Werner Lemberg1723dcc2006-01-15 07:30:32 +00002566 * include/freetype/freetype.h: Documentation updates and
2567 clarifications.
Wu, Chia-I (吳佳一)e5ff0592006-01-15 06:00:49 +00002568 The meaning of FT_LOAD_FORCE_AUTOHINT is changed so that no real
2569 change need be made to the code.
2570
2571 * src/base/ftobjs.c (FT_Load_Glyph): Resolve flag dependencies and
2572 decide whether to use the auto-hinter according to documentation.
2573 There should to be no real difference.
Werner Lemberg1723dcc2006-01-15 07:30:32 +00002574 Some checks (e.g., is text height positve?) after the glyph is
2575 loaded.
Wu, Chia-I (吳佳一)e5ff0592006-01-15 06:00:49 +00002576 (FT_Select_Size, FT_Request_Size): Scales are set to wrong values.
2577 Be careful that scales won't be negative.
2578
Wu, Chia-I (吳佳一)e33dc2e2006-01-14 05:09:30 +000025792006-01-14 Chia-I Wu <b90201047@ntu.edu.tw>
2580
2581 * docs/CHANGES: Mention the size selection change.
2582
2583 * src/bdf/bdfdrivr.c (BDF_Size_Request, BDF_Size_Select),
2584 src/pcf/pcfdrivr.c (PCF_Size_Request, PCF_Size_Select),
2585 src/winfonts/winfnt.c (FNT_Size_Request, FNT_Size_Select): Do size
Werner Lemberg3d8eeb82006-01-14 07:10:45 +00002586 matching for requests of type NOMINAL and REAL_DIM.
Wu, Chia-I (吳佳一)e33dc2e2006-01-14 05:09:30 +00002587
2588 * src/winfonts/winfnt.c (FNT_Face_Init): Print trace message when
2589 `pixel_height' is used for nominal height.
2590
2591 * src/base/ftobjs.c (FT_Request_Size): Call `FT_Match_Size' if the
2592 face is bitmap only and driver doesn't provide `request_size'. This
2593 is added merely for completion as no driver satisfies the conditions.
2594
Wu, Chia-I (吳佳一)fa7d6ab2006-01-13 12:21:31 +000025952006-01-13 Chia-I Wu <b90201047@ntu.edu.tw>
2596
2597 Introduce new size selection interface.
2598
Werner Lembergf1c2b912006-01-13 14:53:28 +00002599 * include/freetype/internal/ftdriver.h (struct FT_Driver_ClassRec):
Wu, Chia-I (吳佳一)fa7d6ab2006-01-13 12:21:31 +00002600 Replace `set_char_sizes' and `set_pixel_sizes' by `request_size' and
2601 `select_size'.
2602
2603 * include/freetype/freetype.h (FT_Select_Size, FT_Size_Request_Type,
2604 FT_Size_Request, FT_Request_Size, FT_Select_Size), src/base/ftobjs.c
2605 (FT_Select_Size, FT_Request_Size): API additions to export the new
2606 size selection interface.
2607
2608 * src/base/ftobjs.c (FT_Set_Char_Size, FT_Set_Pixel_Sizes): Use
2609 `FT_Request_Size'.
2610
2611 * include/freetype/internal/ftobjs.h (FT_Match_Size),
2612 src/base/ftobjs.c (FT_Match_Size): New function to match a size
2613 request against `available_sizes'. Drivers supporting bitmap strikes
2614 can use this function to implement `request_size'.
2615
2616 * src/bdf/bdfdrivr.c, src/cid/cidobjs.c, src/cid/cidobjs.h,
2617 src/cid/cidriver.c, src/pcf/pcfdrivr.c, src/type1/t1driver.c,
2618 src/type1/t1objs.c, src/type1/t1objs.h, src/type42/t42drivr.c,
2619 src/type42/t42objs.c, src/type42/t42objs.h, src/winfonts/winfnt.c:
2620 Update to new size selection interface.
2621
2622 * src/cff/cffdrivr.c, src/cff/cffgload.c, src/cff/cffobjs.c,
2623 src/cff/cffobjs.h, src/truetype/ttdriver.c, src/truetype/ttgload.c,
2624 src/truetype/ttobjs.c, src/truetype/ttobjs.h: Update to new size
2625 selection interface.
2626 Make `strike_index' FT_ULong and always defined.
2627 Use `load_strike_metrics' provided by SFNT interface.
2628
26292006-01-13 Chia-I Wu <b90201047@ntu.edu.tw>
2630
2631 * include/freetype/internal/sfnt.h (SFNT_Interface): New method
2632 `load_strike_metrics' used to load the strike's metrics.
2633
2634 * src/sfnt/sfdriver.c, src/sfnt/ttsbit.c, src/sfnt/ttsbit.h,
2635 src/sfnt/ttsbit0.c: New function `tt_face_load_strike_metrics'.
2636
2637 * src/pfr/pfrobjs.c (pfr_face_init): Set FT_Bitmap_Size correctly.
2638
2639 * src/winfonts/winfnt.c (FNT_Face_Init): Use `nominal_point_size' for
2640 nominal size unless it is obviously incorrect.
2641
2642 * include/freetype/freetype.h (FT_Bitmap_Size): Update the comments on
2643 FNT driver.
2644
Werner Lemberg8ab09792006-01-12 08:12:27 +000026452006-01-12 Werner Lemberg <wl@gnu.org>
2646
2647 Prepare use of pscmap service within CFF module.
2648
2649 * include/freetype/internal/services/svpscmap.h: Include
2650 FT_INTERNAL_OBJECTS_H.
2651 (PS_Unicode_Index_Func): Removed. Unused.
2652 (PS_Macintosh_Name_Func): Renamed to...
2653 (PS_Macintosh_NameFunc): This.
2654 Update all callers.
2655 (PS_Adobe_Std_Strings_Func): Renamed to...
2656 (PS_Adobe_Std_StringsFunc): This.
2657 Update all callers.
2658 (PS_UnicodesRec): This is the former `PS_Unicodes' structure.
2659 Add `cmap' member.
2660 Update all callers.
2661 (PS_Unicodes): This is now a typedef'd pointer to PS_UnicodesRec.
2662 Update all callers.
2663 (PS_Glyph_NameFunc): New typedef.
2664 (PS_Unicodes_InitFunc): Change arguments to expect a function
2665 and generic data pointer which returns a glyph name from a given
2666 index.
2667
2668 * src/psnames/psmodule.c (ps_unicodes_init, ps_unicodes_char_index,
2669 ps_unicodes_char_next, pscmaps_interface): Updated.
2670
2671 * include/freetype/internal/t1types.h (T1_FaceRec): Updated.
2672
2673 * src/psaux/t1cmap.h (T1_CmapStdRec): Updated.
2674 (T1_CmapUnicode, T1_CmapUnicodeRec): Removed.
2675
2676 * src/psaux/t1cmap.c (t1_get_glyph_name): New callback function.
2677 (t1_cmap_unicode_init, t1_cmap_unicode_done,
2678 t1_cmap_unicode_char_index, t1_cmap_unicode_char_next,
2679 t1_cmap_unicode_class_rec): Updated.
2680
2681 * src/type42/t42types.h (T42_FaceRec): Updated.
2682
26832006-01-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Suzuki, Toshiya (鈴木俊哉)356a4d82006-01-12 03:33:16 +00002684
2685 * include/freetype/ftmac.h: Add declaration of new functions
2686 FT_New_Face_From_FSRef and FT_GetFile_From_Mac_ATS_Name that
2687 were introduced by the jumbo patch on 2006-01-11.
2688
Werner Lemberg8ab09792006-01-12 08:12:27 +000026892006-01-11 Werner Lemberg <wl@gnu.org>
Suzuki, Toshiya (鈴木俊哉)f8d16cc2006-01-11 09:28:38 +00002690
Werner Lembergadf828f2006-01-11 10:08:49 +00002691 Fix Savannah bug #15056 and use pscmap service in psaux module.
Suzuki, Toshiya (鈴木俊哉)f8d16cc2006-01-11 09:28:38 +00002692
Werner Lembergadf828f2006-01-11 10:08:49 +00002693 * include/freetype/internal/services/svpscmap.h (PS_UniMap): Use
2694 FT_UInt32 for `glyph_index'.
2695 (PS_Unicodes_InitFunc): Use FT_String for `glyph_names'.
2696 (PS_Unicodes_CharIndexFunc): Use FT_UInt32 for `unicode'.
2697 (PS_Unicodes_CharNextFunc): Make second argument a pointer to
2698 FT_UInt32.
Suzuki, Toshiya (鈴木俊哉)f8d16cc2006-01-11 09:28:38 +00002699
Werner Lembergadf828f2006-01-11 10:08:49 +00002700 * src/psnames/psmodule.c (VARIANT_BIT, BASE_GLYPH): New macros.
2701 (ps_unicode_value): Set VARIANT_BIT in return value if glyph is a
2702 variant glyph (this is, it has non-leading `.' in its name).
2703 (compare_uni_maps): Sort base glyphs before variant glyphs.
2704 (ps_unicodes_init): Use FT_String for `glyph_names' argument.
2705 Reallocate only if number of used entries is much smaller.
2706 Updated to handle variant glyphs.
2707 (ps_unicodes_char_index, ps_unicodes_char_next): Prefer base glyphs
2708 over variant glyphs.
2709 Simplify code.
Suzuki, Toshiya (鈴木俊哉)f8d16cc2006-01-11 09:28:38 +00002710
Werner Lembergadf828f2006-01-11 10:08:49 +00002711 * src/psaux/t1cmap.c (t1_cmap_uni_pair_compare): Removed.
2712 (t1_cmap_unicode_init, t1_cmap_unicode_char_index,
2713 t1_cmap_unicode_char_next): Use pscmap service.
2714 (t1_cmap_unicode_done): Updated.
2715
2716 * src/psaux/t1cmap.h (T1_CMapUniPair): Removed.
2717 (T1_CMapUnicode): Use PS_Unicodes structure.
2718
27192006-01-11 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
2720
2721 Jumbo patch to fix `deprecated' warning of cross-build for Tiger on
2722 Intel, as reported by Sean McBride <sean@rogue-research.com> on
2723 2005-08-24.
2724
2725 * src/base/ftmac.c: Heavy change to build without deprecated Carbon
2726 functions on Tiger.
2727
2728 * builds/unix/configure.ac: Add options and autochecks for Carbon
2729 functions availabilities, for MacOS X.
2730
2731 * builds/mac/ascii2mpw.py: Add converter for character `\305'.
Suzuki, Toshiya (鈴木俊哉)f8d16cc2006-01-11 09:28:38 +00002732 * builds/mac/FreeType.m68k_{far|cfm}.make.txt: Add conditional
Werner Lembergadf828f2006-01-11 10:08:49 +00002733 macros to avoid unavailable functions.
2734 ftmac.c must be compiled without `-strict ansi', because it disables
2735 cpp macro to use ToolBox system call.
2736
2737 * builds/mac/FreeType.ppc_{classic|carbon}.make.txt: Add conditional
2738 macros to avoid unavailable functions.
Suzuki, Toshiya (鈴木俊哉)f8d16cc2006-01-11 09:28:38 +00002739
2740 * builds/mac/README: Detailed notes on function availabilities.
2741
2742 * docs/CHANGES: Notes about (possible) incompatibilities.
2743
Werner Lemberge8f92af2006-01-08 13:43:30 +000027442006-01-08 Werner Lemberg <wl@gnu.org>
2745
Werner Lemberg6cdab922006-01-08 22:34:01 +00002746 * docs/CHANGES: Updated.
2747
27482006-01-08 Huw D M Davies <h.davies1@physics.ox.ac.uk>
2749
2750 * include/freetype/ftmodapi.h (FT_Module_Get_Flags): New
2751 declaration.
2752
2753 * src/base/ftobjs.c (FT_Module_Get_Flags): New function.
2754
27552006-01-07 Werner Lemberg <wl@gnu.org>
2756
Werner Lemberge8f92af2006-01-08 13:43:30 +00002757 * src/pcf/pcfread.c (pcf_get_bitmaps): Remove unused variable
Werner Lemberg30bd2842006-01-08 19:38:42 +00002758 `bitmaps'. Reported by Yu Lei <yulei0@gmail.com>.
2759
2760 * src/base/ftutil.c (ft_highpow2): s/FT_BASE/FT_BASE_DEF/.
2761 Reported by Niels Boldt <nielsboldt@gmail.com>.
Werner Lemberge8f92af2006-01-08 13:43:30 +00002762
27632005-12-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Suzuki, Toshiya (鈴木俊哉)3dfcef62005-12-28 06:47:12 +00002764
Werner Lemberg05cda082006-01-08 13:37:15 +00002765 * src/sfnt/sfnt/ttbdf.c: Add newline '\n' to the end of file, for
2766 MPW compiler.
Suzuki, Toshiya (鈴木俊哉)3dfcef62005-12-28 06:47:12 +00002767
David Turnere6bb9532005-12-23 13:32:06 +000027682005-12-23 David Turner <david@freetype.org>
2769
Werner Lemberg083ba0b2005-12-23 15:10:54 +00002770 * Jamfile (RefDoc), docs/reference/README: Fix it so that `jam
2771 refdoc' works correctly to generate the API reference in
2772 `docs/reference'.
David Turnere6bb9532005-12-23 13:32:06 +00002773
Werner Lemberg083ba0b2005-12-23 15:10:54 +00002774 * src/tools/docmaker/tohtml.py (print_html_field,
2775 print_html_field_list): Update to output nicer fields lists in the
2776 API reference.
David Turnere6bb9532005-12-23 13:32:06 +00002777
2778 * src/base/ftobjs.c (FT_Load_Glyph): FT_LOAD_TARGET_LIGHT now
Werner Lemberg083ba0b2005-12-23 15:10:54 +00002779 forces auto-hinting.
David Turnere6bb9532005-12-23 13:32:06 +00002780
Werner Lemberg083ba0b2005-12-23 15:10:54 +00002781 * freetype/freetype.h: Updating the documentation for
2782 FT_LOAD_TARGET_XXX and FT_Render_Mode values.
David Turnere6bb9532005-12-23 13:32:06 +00002783
Werner Lemberg6be99f92006-02-09 07:38:57 +000027842005-12-23 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Suzuki, Toshiya (鈴木俊哉)53be6e92005-12-23 12:22:46 +00002785
Werner Lemberg083ba0b2005-12-23 15:10:54 +00002786 * src/base/ftmac.c (FT_New_Face_From_Suitcase): Count scalable faces
2787 in supported formats (sfnt, LWFN) only, and ignore bitmap faces in
2788 unsupported formats (fbit, NFNT). The number of available faces are
2789 passed via face->num_faces. If bitmap faces are embedded in sfnt
2790 resource, face->num_fixed_size is correctly set. In public API,
2791 FT_New_Face() and FT_New_Face_From_FSSpec() count the faces as
2792 FT_GetFile_From_Mac_Name(), which ignores NFNT resources.
Suzuki, Toshiya (鈴木俊哉)53be6e92005-12-23 12:22:46 +00002793
2794 * doc/CHANGES: Mention the changes.
2795
Wu, Chia-I (吳佳一)ce34d122005-12-17 13:12:49 +000027962005-12-17 Chia-I Wu <b90201047@ntu.edu.tw>
2797
2798 * src/truetype/ttinterp.c (Update_Max): Set current size of buffer
2799 correctly (so that memory debug system won't panic).
2800
Wu, Chia-I (吳佳一)dcb8b712005-12-16 14:27:14 +000028012005-12-16 Chia-I Wu <b90201047@ntu.edu.tw>
2802
2803 * include/freetype/internal/ftobjs.h (ft_glyphslot_grid_fit_metrics),
2804 src/base/ftobjs.c (ft_glyphslot_grid_fit_metrics): Removed.
2805
2806 * src/base/ftobjs.c (ft_recompute_scaled_metrics): Do not round.
2807
2808 * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
2809 (cid_slot_load_glyph), src/truetype/ttgload.c (compute_glyph_metrics),
2810 src/type1/t1gload.c (T1_Load_Glyph): Do not round glyph metrics.
2811
2812 * doc/CHANGES: Mention the changes.
2813
David Turner5b5f3822005-12-14 16:37:15 +000028142005-12-13 David Turner <david@freetype.org>
2815
Werner Lembergb79b5132005-12-20 12:01:58 +00002816 Change the implementation of the LIGHT hinting mode to completely
2817 disable horizontal hinting. This is an experimental effort to
2818 integrate David Chester's latest patch without affecting the other
2819 hinting modes as well.
David Turner5b5f3822005-12-14 16:37:15 +00002820
Werner Lembergb79b5132005-12-20 12:01:58 +00002821 Note that this doesn't force auto-hinting for all fonts, however.
David Turner5b5f3822005-12-14 16:37:15 +00002822
Werner Lembergb79b5132005-12-20 12:01:58 +00002823 * src/autofit/afhints.c (af_glyph_hints_reload): Don't set
2824 scaler_fiags here but...
2825 (af_glyph_hints_rescale): Here.
David Turner8def3c82005-12-14 16:38:31 +00002826
Werner Lembergb79b5132005-12-20 12:01:58 +00002827 * src/autofit/aflatin.c (af_latin_hints_init): Disable horizontal
2828 hinting for `light' hinting mode.
David Turnerdb0182f2005-12-14 21:16:33 +00002829
David Turnerdb0182f2005-12-14 21:16:33 +00002830
Werner Lembergb79b5132005-12-20 12:01:58 +00002831 * Jamfile: Small fix to ensure that ftexport.sym is placed into the
2832 same location as other generated objects (i.e., within the `objs'
2833 directory of the current directory).
David Turnerdb0182f2005-12-14 21:16:33 +00002834
Werner Lembergb79b5132005-12-20 12:01:58 +00002835
2836 Add support for an embedded `BDF ' table within SFNT-based bitmap
2837 font files. This is used to store atoms & properties from the
2838 original BDF fonts that were used to generate the font file.
2839
2840 The feature is controlled by TT_CONFIG_OPTION_BDF within
2841 `ftoption.h' and is used to implement FT_Get_BDF_Property for these
2842 font files.
2843
2844 At the moment, this is still experimental, the BDF table format
2845 isn't cast into stone yet.
2846
2847 * include/freetype/config/ftoption.h (TT_CONFIG_OPTION_BDF): New
2848 macro.
2849
2850 * include/freetype/config/ftstdlib.h (ft_memchr): New macro.
2851
2852 * include/freetype/internal/tttypes.h (TT_BDFRec, TT_BDF)
2853 [TT_CONFIG_OPTION_BDF]: New structure.
2854 (TT_FaceRec) [TT_CONFIG_OPTION_BDF]: New member `bdf'.
2855
2856 * include/freetype/ttags.h (TTAG_BDF): New macro.
2857
2858 * src/sfnt/Jamfile (_sources): Add ttbdf.
2859
2860 * src/sfnt/rules.mk (SFNT_DRV_SRC): Add ttbdf.c.
2861
2862 * src/sfnt/sfdriver.c [TT_CONFIG_OPTION_BDF]: Include ttbdf.h and
2863 FT_SERVICE_BDF_H.
2864 (sfnt_get_charset_it) [TT_CONFIG_OPTION_BDF]: New function.
2865 (sfnt_service_bdf) [TT_CONFIG_OPTION_BDF]: New service.
2866 (sfnt_servives) [TT_CONFIG_OPTION_BDF]: Add sfnt_service_bdf.
2867
2868 * src/sfnt/sfnt.c [TT_CONFIG_OPTION_BDF]: Include ttbdf.c.
2869
2870 * src/sfnt/sfobjs.c [TT_CONFIG_OPTION_BDF]: Include ttbdf.h.
2871 (sfnt_done_face) [TT_CONFIG_OPTION_BDF]: Call
2872 tt_face_free_bdf_props.
2873
2874 * src/sfnt/ttbdf.h, src/sfnt/ttbdf.c: New files.
David Turner89a2a4b2005-12-14 20:38:15 +00002875
Werner Lemberg364db082005-12-07 20:34:11 +000028762005-12-07 Werner Lemberg <wl@gnu.org>
2877
2878 * src/sfnt/sfobjc.c (sfnt_init_face): Move tag check to...
2879 * src/sfnt/ttload.c (sfnt_init): Here, before handling TTCs.
2880
Wu, Chia-I (吳佳一)a3690cd2005-12-06 08:24:01 +000028812005-12-06 Chia-I Wu <b90201047@ntu.edu.tw>
2882
2883 * src/truetype/ttobjs.c (tt_size_init): size->ttmetrics.valid is
2884 initialized twice.
2885 size->strike_index is not initialized.
2886
Werner Lemberg2a0903a2005-12-03 08:13:43 +000028872005-12-02 Taek Kwan(TK) Lee <taeklee@gmail.com>
2888
Werner Lemberg3b8db662005-12-06 10:47:44 +00002889 * src/type42/t42objs.c (T42_Face_Init): Replace call to
Werner Lemberg2a0903a2005-12-03 08:13:43 +00002890 FT_New_Memory_Face with call to FT_Open_Face to pass `params'.
2891
Werner Lembergb797fdb2005-11-30 08:48:32 +000028922005-11-30 Werner Lemberg <wl@gnu.org>
2893
2894 * docs/CHANGES: Document ftdump's `-v' option.
Werner Lembergb5d88e82005-11-30 08:55:51 +00002895 Document latest charmap code changes.
Werner Lembergb797fdb2005-11-30 08:48:32 +00002896
Werner Lemberg44e47d52005-11-30 18:47:49 +00002897 * src/sfnt/ttcmap.c, src/sfnt/ttcmap.h:
2898 s/TT_CMAP_FLAG_OVERLAPPED/TT_CMAP_FLAG_OVERLAPPING/.
2899
Wu, Chia-I (吳佳一)a28bc4c2005-11-30 02:39:10 +000029002005-11-30 Chia-I Wu <b90201047@ntu.edu.tw>
2901
2902 * src/sfnt/ttcmap.c (tt_cmap4_char_map_binary,
2903 tt_cmap12_char_map_binary): Fix compiler warnings.
2904
Wu, Chia-I (吳佳一)569ec4e2005-11-29 11:27:51 +000029052005-11-29 Chia-I Wu <b90201047@ntu.edu.tw>
2906
Werner Lemberg44e47d52005-11-30 18:47:49 +00002907 Major update to distinguish between unsorted and overlapping
2908 segments for cmap format 4. For overlapping but sorted segments,
2909 which is previously considered unsorted, we still use binary search.
Wu, Chia-I (吳佳一)a0911342005-11-29 11:32:53 +00002910
David Turner5b5f3822005-12-14 16:37:15 +00002911 * src/sfnt/ttcmap.h (TT_CMapRec_): Replace `unsorted' by `flags'.
Wu, Chia-I (吳佳一)a0911342005-11-29 11:32:53 +00002912 (TT_CMAP_FLAG_UNSORTED, TT_CMAP_FLAG_OVERLAPPED): New macros.
2913
2914 * src/sfnt/ttcmap.c (OPT_CMAP4): Removed as it is always defined.
David Turner5b5f3822005-12-14 16:37:15 +00002915 (TT_CMap4Rec_): Remove `old_charcode' and `table_length'.
Wu, Chia-I (吳佳一)a0911342005-11-29 11:32:53 +00002916 (tt_cmap4_reset): Removed.
2917 (tt_cmap4_init): Updated accordingly.
2918 (tt_cmap4_next): Updated accordingly.
Werner Lemberg44e47d52005-11-30 18:47:49 +00002919 Take care of overlapping segments.
Wu, Chia-I (吳佳一)a0911342005-11-29 11:32:53 +00002920 (tt_cmap4_validate): Make sure the subtable is large enough.
2921 Do not check glyph_ids because some fonts set the length wrongly.
Werner Lemberg05cda082006-01-08 13:37:15 +00002922 Also, if all segments have offset 0, glyph_ids is always invalid.
Werner Lemberg44e47d52005-11-30 18:47:49 +00002923 It does not cause any problem so far only because the check misses
Wu, Chia-I (吳佳一)a0911342005-11-29 11:32:53 +00002924 equality.
Werner Lemberg44e47d52005-11-30 18:47:49 +00002925 Distinguish between unsorted and overlapping segments.
2926 (tt_cmap4_char_map_linear, tt_cmap4_char_map_binary): New functions
2927 to do `charcode => glyph index' by linear/binary search.
Wu, Chia-I (吳佳一)a0911342005-11-29 11:32:53 +00002928 (tt_cmap4_char_index, tt_cmap4_char_next): Use
2929 tt_cmap4_char_map_linear and tt_cmap4_char_map_binary.
2930 (tt_face_build_cmaps): Treat the return value of validator as flags
2931 for cmap.
2932
29332005-11-29 Chia-I Wu <b90201047@ntu.edu.tw>
2934
Werner Lemberg44e47d52005-11-30 18:47:49 +00002935 * src/sfnt/ttcmap.c (TT_CMap12Rec_, tt_cmap12_init, tt_cmap12_next):
2936 New structures and functions for fast `next char'.
2937 (tt_cmap12_char_map_binary): New function to do `charcode => glyph
2938 index' by binary search.
Wu, Chia-I (吳佳一)569ec4e2005-11-29 11:27:51 +00002939 (tt_cmap12_char_index, tt_cmap12_char_next): Use
2940 tt_cmap12_char_map_binary.
2941 (tt_face_build_cmaps): Check table and offset correctly (equality is
2942 missing).
2943
Werner Lemberg4e03fe72006-04-29 06:20:09 +000029442005-11-15 Detlef Würkner <TetiSoft@apg.lahn.de>
Detlef Würknerdf1598e2005-11-25 08:04:09 +00002945
2946 * builds/amiga/smakefile: Adjusted the compiler options
2947 to the current sources, now really builds the gxvalid, gzip
2948 and psnames modules.
2949
2950 * builds/amiga/src/base/ftsystem.c: The assumed Seek() position
2951 in the file cache was off by one byte which could cause false
2952 errors in font files.
2953
Werner Lemberg6be99f92006-02-09 07:38:57 +000029542005-11-24 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Suzuki, Toshiya (鈴木俊哉)6b1c5972005-11-24 05:16:57 +00002955
2956 * builds/mac/FreeType.m68k_far.make.txt,
2957 builds/mac/FreeType.m68k_cfm.make.txt,
2958 builds/mac/FreeType.ppc_classic.make.txt,
2959 builds/mac/FreeType.ppc_carbon.make.txt:
2960 Updated for MPW to build all available modules.
2961
Werner Lemberg4e03fe72006-04-29 06:20:09 +000029622005-11-21 Håvard Wall <haavardw@ifi.uio.no>
Werner Lemberg67ba2112005-11-21 17:32:03 +00002963
2964 * src/bdf/bdfdrivr.c (bdf_interpret_style, BDF_Face_Done): Fix small
2965 memory leak.
2966
Werner Lemberg840232a2005-11-21 12:36:42 +000029672005-11-21 Werner Lemberg <wl@gnu.org>
2968
2969 * src/sfnt/ttload.c (sfnt_init): Add tracing message.
2970
Wu, Chia-I (吳佳一)d81947e2005-11-21 03:04:03 +000029712005-11-21 Chia-I Wu <b90201047@ntu.edu.tw>
2972
Werner Lemberg840232a2005-11-21 12:36:42 +00002973 * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Image_offset was
Werner Lemberg05cda082006-01-08 13:37:15 +00002974 added twice to image_start if image_format was 2 or 5.
Wu, Chia-I (吳佳一)275be9b2005-11-21 03:05:34 +00002975
29762005-11-21 Chia-I Wu <b90201047@ntu.edu.tw>
2977
Wu, Chia-I (吳佳一)d81947e2005-11-21 03:04:03 +00002978 * src/sfnt/sfobjs.c (sfnt_init_face): Check that format_tag is known
2979 before loading the table directory.
2980
2981 * src/sfnt/ttload.c (tt_face_load_sfnt_header,
2982 tt_face_load_directory): Delay sfnt_dir_check from
2983 tt_face_load_sfnt_header to tt_face_load_directory.
2984
Wu, Chia-I (吳佳一)6f1eca02005-11-20 08:24:24 +000029852005-11-20 Chia-I Wu <b90201047@ntu.edu.tw>
2986
2987 * src/sfnt/ttload.c (sfnt_dir_check): Clean up and return correct
2988 error code.
2989 (sfnt_init): New function to fill in face->ttc_header. A non-TTC font
2990 is synthesized into a TTC font with one offset table.
2991 (tt_face_load_sfnt_header): Use sfnt_init.
Werner Lemberg05cda082006-01-08 13:37:15 +00002992 Fix an invalid access if the font is TTC and face_index is -1.
Wu, Chia-I (吳佳一)6f1eca02005-11-20 08:24:24 +00002993
Werner Lemberg1a293d62005-11-18 08:23:06 +000029942005-11-18 Werner Lemberg <wl@gnu.org>
2995
2996 * src/sfnt/ttload.c (tt_face_load_metrics): Ignore excess number
2997 of metrics instead of aborting. Patch suggested by Derek Noonburg.
2998
Werner Lemberg6c990452005-11-18 21:10:59 +00002999 * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
3000 (cid_slot_load_glyph), src/type1/t1gload.c (T1_Load_Glyph): Scale
3001 the glyph properly if no hinter is available.
3002
3003 * docs/CHANGES: Mention scaling bug.
3004
Suzuki, Toshiya (鈴木俊哉)8d81d412005-11-18 07:47:06 +000030052005-11-18 susuzki toshiya <mpsuzuki@hiroshima-u.ac.jp>
3006
3007 * include/freetype/ftgxval.h, src/base/ftgxval.c
3008 (FT_TrueTypeGX_Free, FT_ClassicKern_Free): New functions to free
3009 buffers allocated by gxvalid module.
3010 * include/freetype/ftotval.h, src/base/ftotval.c
3011 (FT_OpenType_Free): New function to free buffer allocated by
3012 otvalid module.
3013
Wu, Chia-I (吳佳一)cb182382005-11-18 04:29:31 +000030142005-11-18 Chia-I Wu <b90201047@ntu.edu.tw>
3015
3016 * builds/unix/ftsystem.c (FT_Stream_Open, FT_New_Memory,
3017 FT_Done_Memory), builds/vms/ftsystem.c (FT_Stream_Open, FT_New_Memory,
3018 FT_Done_Memory), builds/win32/ftdebug.c (FT_Message, FT_Panic):
3019 s/FT_EXPORT/FT_BASE/.
3020
Werner Lemberg4e03fe72006-04-29 06:20:09 +000030212005-11-17 Detlef Würkner <TetiSoft@apg.lahn.de>
Detlef Würkner4859ac42005-11-17 14:21:07 +00003022
Detlef Würkner0acfc1f2005-11-17 16:54:54 +00003023 * builds/amiga/src/base/ftdebug.c (FT_Trace_Get_Count,
3024 FT_Trace_Get_Name, FT_Message, FT_Panic),
3025 builds/amiga/src/base/ftsystem.c (FT_New_Memory, FT_Done_Memory,
3026 FT_Stream_Open): s/FT_EXPORT/FT_BASE/.
3027
Werner Lemberg4e03fe72006-04-29 06:20:09 +000030282005-11-17 Detlef Würkner <TetiSoft@apg.lahn.de>
Detlef Würkner0acfc1f2005-11-17 16:54:54 +00003029
Werner Lemberg1a293d62005-11-18 08:23:06 +00003030 * builds/amiga/makefile, builds/amiga/makefile.os4,
Detlef Würknerdf1598e2005-11-25 08:04:09 +00003031 builds/amiga/smakefile,
Detlef Würkner4859ac42005-11-17 14:21:07 +00003032 builds/amiga/include/freetype/config/ftmodule.h: Updated the Amiga
Werner Lemberg1a293d62005-11-18 08:23:06 +00003033 build files (added support for the gxvalid module).
Detlef Würkner4859ac42005-11-17 14:21:07 +00003034
Werner Lembergcfc0cf22005-11-17 08:12:00 +000030352005-11-17 Werner Lemberg <wl@gnu.org>
3036
3037 Add vertical metrics support to OpenType CFF outlines. Based on a
Werner Lemberg1a293d62005-11-18 08:23:06 +00003038 patch from Mike Moening <MikeM@RetekSolutions.com>.
Werner Lembergcfc0cf22005-11-17 08:12:00 +00003039
3040 * src/cff/cffgload.c (cff_face_get_vertical_metrics): New function.
3041 (cff_slot_load): Use cff_face_get_vertical_metrics.
3042
3043 * docs/CHANGES: Updated.
3044
Wu, Chia-I (吳佳一)35bfc0f2005-11-17 01:53:07 +000030452005-11-17 Chia-I Wu <b90201047@ntu.edu.tw>
3046
3047 * src/base/ftcalc.c (FT_MulTo64): Commented out.
3048
Werner Lembergcfc0cf22005-11-17 08:12:00 +00003049 * include/freetype/internal/ftcalc.h (FT_SqrtFixed),
3050 src/base/ftcalc.c (FT_SqrtFixed),
3051 include/freetype/internal/ftdebug.h (FT_Trace_Get_Count,
3052 FT_Trace_Get_Name, FT_Message, FT_Panic), src/base/ftdebug.c
Wu, Chia-I (吳佳一)35bfc0f2005-11-17 01:53:07 +00003053 (FT_Trace_Get_Count, FT_Trace_Get_Name, FT_Message, FT_Panic),
Werner Lembergcfc0cf22005-11-17 08:12:00 +00003054 include/freetype/internal/ftobjs.h (FT_New_Memory, FT_Done_Memory),
3055 include/freetype/internal/ftstream.h (FT_Stream_Open),
3056 src/base/ftsystem.c (FT_New_Memory, FT_Done_Memory, FT_Stream_Open):
3057 s/FT_EXPORT/FT_BASE/.
Wu, Chia-I (吳佳一)35bfc0f2005-11-17 01:53:07 +00003058
Werner Lembergcfc0cf22005-11-17 08:12:00 +00003059 * builds/exports.mk: Manually add TT_New_Context to EXPORTS_LIST
3060 too.
Wu, Chia-I (吳佳一)35bfc0f2005-11-17 01:53:07 +00003061
David Turnerf7cc1812005-11-15 17:30:56 +000030622005-11-15 David Turner <david@freetype.org>
3063
Werner Lemberg674ba912005-11-16 18:09:27 +00003064 * src/base/fttrigon.c (ft_trig_prenorm): Fix a bug that created
David Turnerf7cc1812005-11-15 17:30:56 +00003065 invalid computations, resulting in very weird bugs in TrueType
Werner Lemberg674ba912005-11-16 18:09:27 +00003066 bytecode hinted fonts.
David Turnerf7cc1812005-11-15 17:30:56 +00003067
Werner Lemberg674ba912005-11-16 18:09:27 +00003068 * src/truetype/ttinterp.c (FT_UNUSED_EXEC): Don't perform a
3069 structure copy each time.
David Turnerf7cc1812005-11-15 17:30:56 +00003070
Werner Lembergd829ff72005-11-12 17:07:11 +000030712005-11-11 Werner Lemberg <wl@gnu.org>
3072
3073 * src/cache/ftccache.c (FTC_Cache_Clear), src/cache/ftcmanag.c
3074 (FTC_Manager_Check): Remove FT_EXPORT_DEF tag.
3075
David Turnerf7cc1812005-11-15 17:30:56 +00003076 * src/base/ftcalc.c (FT_Add64): Remove FT_EXPORT_DEF tag.
Werner Lembergd829ff72005-11-12 17:07:11 +00003077 (FT_Div64by32, FT_Sqrt32): Commented out. Unused.
3078
3079 * include/freetype/internal/ftcalc.h (SQRT_32): Removed. Unused.
3080 (FT_Sqrt32): Commented out. Unused.
3081
3082 * include/freetype/cache/ftccache.h:
3083 s/ftc_node_destroy/FTC_Node_Destroy/.
3084
3085 * src/cache/ftccback.h (ftc_node_destroy): New declaration.
3086
3087 * src/cache/ftccache.c (ftc_node_destroy): Use FT_LOCAL_DEF tag.
3088 (FTC_Node_Destroy): New exported wrapper function for
3089 ftc_node_destroy.
3090
3091 * src/cache/ftcmanag.c: Include ftccback.c.
3092
Werner Lemberg4309edc2005-11-11 15:49:14 +000030932005-11-10 Werner Lemberg <wl@gnu.org>
3094
3095 * src/autofit/afangles.c, src/autofit/aftypes.h (af_angle_diff):
3096 Comment out. Unused.
3097
Werner Lembergf2c53302005-11-11 16:20:59 +00003098 * builds/exports.mk ($(EXPORTS_LIST)): Add TT_RunIns.
3099
Werner Lemberg4309edc2005-11-11 15:49:14 +000031002005-11-10 Christian Biesinger <cbiesinger@web.de>
3101
3102 * builds/beos/beos.mk: Call beos-def.mk before anything else to
3103 define the separator.
3104
3105 * builds/unix/unix-cc.in (LINK_LIBRARY): Add `-no-undefined' flag.
3106
Werner Lembergea4c3dc2005-11-08 09:10:16 +000031072005-11-07 Werner Lemberg <wl@gnu.org>
3108
3109 * src/type1/t1afm.c (T1_Read_PFM): Zero offset means `no kerning
3110 table available'. From Sergey Tolstov <stolstov@esri.com>.
3111
Werner Lemberg4e03fe72006-04-29 06:20:09 +000031122005-11-03 Ville Syrjälä <syrjala@sci.fi>
Werner Lembergb2d02532005-11-04 06:58:49 +00003113
3114 * src/base/ftobjs.c (FT_Open_Face): Avoid possible memory leak.
3115
31162005-11-02 Werner Lemberg <wl@gnu.org>
3117
3118 Make compiling instructions in docs/CUSTOMIZE work again.
3119
3120 * builds/unix/unix-cc.in (CPPFLAGS): New variable.
3121 (CFLAGS): Don't include @CPPFLAGS@.
3122 * builds/freetype.mk (FT_CFLAGS): Add CPPFLAGS.
3123
David Turnerdab24542005-11-02 09:24:00 +000031242005-10-28 David Turner <david@freetype.org>
3125
Werner Lembergcee37a32005-11-12 07:34:40 +00003126 Update build system to support the generation of a list of exported
3127 symbols or Windows .DEF files by parsing the public headers with the
Werner Lembergb2d02532005-11-04 06:58:49 +00003128 `apinames' tool located in src/tools/apinames.c.
David Turnerdab24542005-11-02 09:24:00 +00003129
Werner Lembergb2d02532005-11-04 06:58:49 +00003130 Only tested on Unix at the moment. On Windows, the .DEF file is
3131 generated but isn't used yet to generate a DLL.
David Turnerdab24542005-11-02 09:24:00 +00003132
Werner Lembergcee37a32005-11-12 07:34:40 +00003133 * builds/exports.mk: New file.
David Turnerdab24542005-11-02 09:24:00 +00003134
Werner Lembergcee37a32005-11-12 07:34:40 +00003135 * builds/freetype.mk: Include exports.mk.
3136 (dll): New target.
3137 (clean_project_dos): Fix rule.
David Turnerdab24542005-11-02 09:24:00 +00003138
Werner Lembergcee37a32005-11-12 07:34:40 +00003139 * builds/compiler/visualc.mk (TE), builds/dos/dos-def.mk (E),
3140 builds/os2/os2-def.mk (E), builds/win32/win32-def.mk (E): New
3141 variables for controlling executable extensions.
David Turnerdab24542005-11-02 09:24:00 +00003142
Werner Lembergcee37a32005-11-12 07:34:40 +00003143 * builds/unix/unix-cc.in (EXPORTS_LIST, CCexe),
3144 builds/win32/w32-bcc.mk, builds/win32/w32-gcc.mk,
3145 builds/win32/w32-icc.mk, builds/win32/w32-icc.mk,
3146 builds/win32/w32-mingw32.mk, builds/win32/w32-vcc,
3147 builds/win32/w32-wat.mk (EXPORTS_LIST, EXPORT_OPTIONS,
3148 APINAMES_OPTIONS): New targets for controlling the `apinames' tool.
3149
3150 * Jamfile (GenExportSymbols): Updated.
3151
3152
3153 * src/pfr/pfrtypes.h, src/pfr/pfrload.c, src/pfr/pfrobjs.c
3154 [!FT_OPTIMIZE_MEMORY]: Fold memory optimization code into
3155 FT_OPTIMIZE_MEMORY chunks for better maintainability and simplicity.
3156
3157
3158 * src/base/fttrigon.c (ft_trig_prenorm), src/base/ftcalc.c
3159 (FT_MulFix): Performance optimizations.
3160
3161
3162 * include/freetype/internal/ftgloadr.h (FT_GLYPHLOADER_CHECK_P,
3163 FT_GLYPHLOADER_CHECK_C, FT_GLYPHLOADER_CHECK_POINTS): New macros for
3164 checking points and contours. Update callers to use
3165 FT_GLYPHLOADER_CHECK_POINTS instead of FT_GlyphLoader_CheckPoints
3166 at profile-detected hot-spots.
3167
3168 * src/base/ftgloadr.c (FT_GlyphLoader_CheckPoints): Set `adjust'
3169 to 0 to not call `AdjustPoints' every time.
3170
David Turnerdab24542005-11-02 09:24:00 +00003171
Werner Lembergb2d02532005-11-04 06:58:49 +00003172 * src/autofit/aftypes.h (AF_ANGLE_DIFF): New macro to inline
3173 FT_Angle_Diff.
David Turnerdab24542005-11-02 09:24:00 +00003174
Werner Lembergcee37a32005-11-12 07:34:40 +00003175 * src/autofit/afhints.c (af_direction_compute): Re-implement.
3176 (af_glyph_hints_compute_inflections, af_glyph_hints_reload): Use
Werner Lembergb2d02532005-11-04 06:58:49 +00003177 AF_ANGLE_DIFF to speed up the detection of inflexions.
David Turnerdab24542005-11-02 09:24:00 +00003178
Werner Lembergcee37a32005-11-12 07:34:40 +00003179
3180 * src/tools/apinames.c: Include <string.h>.
3181 (OutputFormat): New enumeration.
3182 (names_dump): Add two parameters to control output format and DLL
3183 name.
3184 (names_dump_windef): Removed. Code folded into `names_dump'.
3185 (read_header_file): Use isalnum, not isalpha. Otherwise function
3186 names with digits aren't read correctly.
3187 (usage): Updated.
3188 (main): New option `-o' to control output file name.
3189 New option `-d' to indicate DLL file name.
3190 Extend `-w' flag to handle Borland and Watcom compilers and linkers.
3191
Suzuki, Toshiya (鈴木俊哉)45115762005-10-28 15:39:58 +000031922005-10-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
3193
Suzuki, Toshiya (鈴木俊哉)69d45172005-10-28 16:03:06 +00003194 * builds/mac/ftlib.prj, builds/mac/freetype.mak: Removed.
3195 ftlib.prj is unmaintained and incompatible with current tree.
3196 freetype.mak is unrecoverably broken.
3197
3198 * builds/mac/ftlib.prj.xml: Added.
Werner Lemberg05cda082006-01-08 13:37:15 +00003199 Generated by Metrowerks CodeWarrior 9.0.
Suzuki, Toshiya (鈴木俊哉)69d45172005-10-28 16:03:06 +00003200
3201 * builds/mac/FreeType.m68k_far.make.txt,
3202 builds/mac/FreeType.m68k_cfm.make.txt,
3203 builds/mac/FreeType.ppc_classic.make.txt,
3204 builds/mac/FreeType.ppc_carbon.make.txt: Added.
Werner Lemberg05cda082006-01-08 13:37:15 +00003205 Skeleton files of MPW makefiles.
Suzuki, Toshiya (鈴木俊哉)69d45172005-10-28 16:03:06 +00003206
3207 * builds/mac/ascii2mpw.py: Added.
Werner Lemberg05cda082006-01-08 13:37:15 +00003208 Python script to make MPW makefile from skeleton.
Suzuki, Toshiya (鈴木俊哉)69d45172005-10-28 16:03:06 +00003209
3210 * builds/mac/README: Updated.
3211 Almost rewritten to use new files.
3212
32132005-10-28 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
3214
Werner Lemberg05cda082006-01-08 13:37:15 +00003215 * src/base/ftmac.c: Fix invalid casts from NULL to integer typed
3216 variables. Advised by David Turner, Masatake YAMATO, Sean McBride,
Suzuki, Toshiya (鈴木俊哉)45115762005-10-28 15:39:58 +00003217 and George Williams.
3218
Werner Lemberg4b5661c2005-10-27 21:28:35 +000032192005-10-27 Werner Lemberg <wl@gnu.org>
3220
3221 * include/freetype/ftsysmem.h, include/freetype/ftsysio.h: Removed.
3222 Obsolete.
3223
Werner Lemberg43b057b2005-10-26 18:37:40 +000032242005-10-25 Werner Lemberg <wl@gnu.org>
3225
3226 * src/sfnt/sfdriver.c (sfnt_interface): Move out
3227 `tt_face_get_kerning' from a #ifdef clause. Reported by Tony J.
3228 Ibbs <tibs@sj.co.uk>.
3229
Werner Lemberg6c0e7342005-10-23 19:31:01 +000032302005-10-23 Werner Lemberg <wl@gnu.org>
3231
3232 * src/base/ftdbgmem.c (ft_mem_debug_realloc): Make it compile with
3233 C++.
3234
David Turner398d64c2005-10-21 10:01:25 +000032352005-10-21 David Turner <david@freetype.org>
3236
Werner Lemberg90968f72005-10-22 10:34:45 +00003237 * src/base/ftdbgmem.c (ft_mem_table_set, ft_mem_debug_realloc):
3238 Another realloc memory counting bug fix.
David Turner398d64c2005-10-21 10:01:25 +00003239
Werner Lemberg90968f72005-10-22 10:34:45 +00003240 * src/tools/Jamfile: Add missing file.
David Turner398d64c2005-10-21 10:01:25 +00003241
Werner Lemberg90968f72005-10-22 10:34:45 +00003242 * src/lzw/Jamfile: Fix incorrect source file reference.
David Turner398d64c2005-10-21 10:01:25 +00003243
David Turnerc1b6d082005-10-20 15:33:34 +000032442005-10-20 David Turner <david@freetype.org>
3245
Werner Lemberg560d5fe2005-10-21 09:08:28 +00003246 * src/base/ftdbgmem.c (ft_mem_table_set, ft_mem_table_remove,
3247 ft_mem_debug_alloc, ft_mem_debug_free, ft_mem_debug_realloc): Fixes
3248 to better account for memory reallocations.
David Turnerc1b6d082005-10-20 15:33:34 +00003249
Werner Lemberg560d5fe2005-10-21 09:08:28 +00003250 * src/lzw/ftlzw2.c, src/lzw/ftzopen.h, src/lzw/ftzopen.c,
David Turner398d64c2005-10-21 10:01:25 +00003251 src/lzw/rules.mk: First version of LZW loader re-implementation.
3252 Apparently, this saves about 330 KB of heap memory when loading
Werner Lemberg560d5fe2005-10-21 09:08:28 +00003253 timR24.pcf.Z.
David Turnerc1b6d082005-10-20 15:33:34 +00003254
Wu, Chia-I (吳佳一)7e307762005-10-20 02:13:46 +000032552005-10-20 Chia-I Wu <b90201047@ntu.edu.tw>
3256
3257 * include/freetype/ftbitmap.h (FT_Bitmap_Copy, FT_Bitmap_Embolden),
3258 src/base/ftbdf.c (FT_Get_BDF_Property), src/cache/ftcmru.c
Werner Lemberg560d5fe2005-10-21 09:08:28 +00003259 (FTC_MruList_Reset, FTC_MruList_Done, FTC_MruList_Lookup): Fix
3260 FT_EXPORT/FT_EXPORT_DEF tagging.
Wu, Chia-I (吳佳一)7e307762005-10-20 02:13:46 +00003261
Wu, Chia-I (吳佳一)2293bb12005-10-19 08:07:38 +000032622005-10-19 Chia-I Wu <b90201047@ntu.edu.tw>
Werner Lemberg8e6c56f2005-10-18 06:09:13 +00003263
Werner Lemberg560d5fe2005-10-21 09:08:28 +00003264 * src/truetype/ttgload.c (TT_Load_Glyph): Allow size->ttmetrics to
3265 be invalid when FT_LOAD_NO_SCALE is set.
Wu, Chia-I (吳佳一)2293bb12005-10-19 08:07:38 +00003266
32672005-10-17 David Turner <david@freetype.org>
3268
3269 * src/base/ftobjs.c (FT_Open_Face): Don't call FT_New_GlyphSlot and
3270 FT_New_Size if we are opening a face with face_index < 0 (which is
3271 only used for testing the format).
3272
3273 * src/gxvalid/gxvmort0.c (gxv_mort_subtable_type0_entry_validate):
3274 Remove compiler warning.
Werner Lemberg8e6c56f2005-10-18 06:09:13 +00003275
32762005-10-16 David Turner <david@freetype.org>
3277
Wu, Chia-I (吳佳一)2293bb12005-10-19 08:07:38 +00003278 * src/tools/apinames.c: Add new tool to extract public API function
3279 names from header files.
Werner Lemberg8e6c56f2005-10-18 06:09:13 +00003280
32812005-10-05 Werner Lemberg <wl@gnu.org>
3282
3283 Add FT_FACE_FLAG_HINTER to indicate that a specific font driver has
3284 a hinting engine of its own.
3285
3286 * include/freetype/freetype.h (FT_FACE_FLAG_HINTER): New macro.
3287
3288 * src/cff/cffobjs.c (cff_face_init), src/cid/cidobjs.c
3289 (cid_face_init), src/truetype/ttobjs.c (tt_face_init)
3290 [TT_CONFIG_OPTION_BYTECODE_INTERPRETER], src/type1/t1objs.c
3291 (T1_Face_Init), src/type42/t42objs.c (T42_Face_Init)
3292 [TT_CONFIG_OPTION_BYTECODE_INTERPRETER]: Update face flags.
3293
3294 * docs/CHANGES: Document it.
3295
32962005-09-27 Werner Lemberg <wl@gnu.org>
3297
3298 * builds/unix/freetype2.m4: Add license exception so that the file
3299 can be used in any other autoconf script.
3300
33012005-09-26 David Turner <david@freetype.org>
3302
3303 * src/autofit/aflatin.c (af_latin_compute_stem_width): Fix bad
3304 computation of the `vertical' flag, causing ugly things in LCD mode
3305 and others.
3306
33072005-09-23 David Turner <david@freetype.org>
3308
3309 * src/autofit/aflatin.c (af_latin_hints_init): Fix a bug that
3310 prevented internal hint mode bitflags from being computed correctly.
3311
3312 * src/base/Jamfile: Adding src/base/ftgxval.c.
3313
3314 * src/gxvalid/gxvbsln.c, src/gxvalid/gxvcommn.c,
3315 src/gxvalid/gxvfeat.c, src/gxvalid/gxvjust.c, src/gxvalid/gxvkern.c,
3316 src/gxvalid/gxvlcar.c, src/gxvalid/gxvmort.c,
3317 src/gxvalid/gxvmort0.c, src/gxvalid/gxvmort1.c,
3318 src/gxvalid/gxvmort2.c, src/gxvalid/gxvmort4.c,
3319 src/gxvalid/gxvmort5.c, src/gxvalid/gxvmorx.c,
3320 src/gxvalid/gxvmorx0.c, src/gxvalid/gxvmorx1.c,
3321 src/gxvalid/gxvmorx2.c, src/gxvalid/gxvmorx5.c,
3322 src/gxvalid/gxvopbd.c, src/gxvalid/gxvprop.c,
3323 src/truetype/ttgload.c: Remove _many_ compiler warnings when
3324 compiling with Visual C++ at maximum level (/W4).
3325
3326 * src/autofit/afangles.c (af_angle_atan): Replaced CORDIC-based
3327 implementation with one using lookup tables. This simple thing
3328 speeds up glyph loading by 18%, according to ftbench!
3329
3330 * src/sfnt/sfdriver.c (sfnt_get_interface): Don't check for
3331 `get_sfnt' and `load_sfnt' module interfaces.
3332
33332005-09-22 Werner Lemberg <wl@gnu.org>
3334
3335 * docs/CHANGES: Mention SING Glyphlet support.
3336
33372005-09-22 David Turner <david@freetype.org>
3338
3339 * src/base/Jamfile: Disable compilation of ftgxval module
3340 temporarily.
3341
33422005-09-19 David Somers <dsomers@omz13.com>
3343
3344 * freetype2/src/sfnt/ttload.c (sfnt_dir_check): Modified to allow a
3345 font to have no `head' table if tables `SING' and `META' are
3346 present; this is to support `SING Glyphlet'.
3347
3348 `SING Glyphlet' is an extension to OpenType developed by Adobe
3349 primarily to facilitate adding supplemental glyphs to an OpenType
3350 font (with emphasis on, but not necessariy limited to, gaiji to a
3351 CJK font). A SING Glyphlet Font is an OpenType font that contains
3352 the outline(s), either in a `glyf' or `CFF' table, for a glyph;
3353 `cmap', `BASE', and `GSUB' tables are present with the same format
3354 and functionaliy as a regular OpenType font; there are no `name',
3355 `head', `OS/2', and `post' tables; there are two new tables, `SING'
3356 which contains details about the glyphlet, and `META' which contains
3357 metadata.
3358
3359 Further information on the SING Glyphlet format can be found at:
3360
3361 http://www.adobe.com/products/indesign/sing_gaiji.html
3362
3363 * freetype2/include/freetype/ttags.h (TTAG_SING, TTAG_META): New
3364 macros for the OpenType tables `SING' and `META'. These two tables
3365 are used in SING Glyphlet Format fonts.
3366
33672005-09-09 Werner Lemberg <wl@gnu.org>
3368
3369 * src/sfnt/sfobjs.c (sfnt_load_face): Reactivate code to set
3370 FT_FACE_FLAG_KERNING which has been commented out erroneously.
3371
3372 * docs/CHANGES: Document it.
3373
33742005-09-05 Werner Lemberg <wl@gnu.org>
3375
3376 Fixes for `make multi' and using C++ compiler.
3377
3378 * gxvalid/gxvcommn.c (gxv_set_length_by_ushort_offset,
3379 gxv_set_length_by_ulong_offset, gxv_array_getlimits_byte,
3380 gxv_array_getlimits_ushort): Declare with FT_LOCAL_DEF.
3381 (gxv_compare_ranges): Make it static.
3382 (gxv_LookupTable_fmt0_validate, gxv_LookupTable_fmt2_validate,
3383 gxv_LookupTable_fmt4_validate, gxv_LookupTable_fmt6_validate,
3384 gxv_LookupTable_fmt8_validate, gxv_LookupTable_validate): Improve
3385 trace messages.
3386 (gxv_StateArray_validate, gxv_XStateArray_validate): s/class/clazz/.
3387 (GXV_STATETABLE_HEADER_SIZE, GXV_STATEHEADER_SIZE,
3388 GXV_XSTATETABLE_HEADER_SIZE, GXV_XSTATEHEADER_SIZE): Move to
3389 gxvcommn.h.
3390
3391 * gxvalid/gxvcommn.h: Add prototypes for
3392 gxv_StateTable_subtable_setup, gxv_XStateTable_subtable_setup,
3393 gxv_XStateTable_validate, gxv_array_getlimits_byte,
3394 gxv_array_getlimits_ushort, gxv_set_length_by_ushort_offset,
3395 gxv_set_length_by_ulong_offset, gxv_odtect_add_range,
3396 gxv_odtect_validate.
3397 (GXV_STATETABLE_HEADER_SIZE, GXV_STATEHEADER_SIZE,
3398 GXV_XSTATETABLE_HEADER_SIZE, GXV_XSTATEHEADER_SIZE): Moved from
3399 gxvcommn.c.
3400
3401 * src/gxvalid/gxvbsln.c (gxv_bsln_LookupValue_validate,
3402 gxv_bsln_parts_fmt1_validate): Improve trace messages.
3403
3404 * gxvalid/gxvfeat.c: Split off predefined registry stuff to...
3405 * gxvalid/gxvfeat.h: New file.
3406
3407 * gxvalid/gxvjust.c (gxv_just_wdc_entry_validate): Improve trace
3408 message.
3409
3410 * gxvalid/gxvkern.c (GXV_kern_Dialect): Add KERN_DIALECT_UNKNOWN.
3411 (gxv_kern_subtable_fmt1_valueTable_load,
3412 gxv_kern_subtable_fmt1_subtable_setup,
3413 gxv_kern_subtable_fmt1_entry_validate): Fix C++ compiler errors.
3414 (gxv_kern_coverage_validate): Use KERN_DIALECT_UNKWOWN.
3415 Improve trace message.
3416 (gxv_kern_validate_generic): Fix C++ compiler error.
3417 Improve trace message.
3418 (gxv_kern_validate_classic): Fix C++ compiler error.
3419
3420 * gxvalid/gxvmort0.c (gxv_mort_subtable_type0_validate): Declare
3421 with FT_LOCAL_DEF.
3422
3423 * gxvalid/gxvmort1.c
3424 (gxv_mort_subtable_type1_substitutionTable_load,
3425 gxv_mort_subtable_type1_subtable_setup): Fix C++ compiler errors.
3426 (gxv_mort_subtable_type1_substTable_validate): Improve trace
3427 message.
3428 (gxv_mort_subtable_type1_validate): Declare with FT_LOCAL_DEF.
3429
3430 * gxvalid/gxvmort2.c (gxv_mort_subtable_type2_opttable_load,
3431 gxv_mort_subtable_type2_subtable_setup,
3432 gxv_mort_subtable_type2_ligActionOffset_validate,
3433 gxv_mort_subtable_type2_ligatureTable_validate): Fix C++ compiler
3434 errors.
3435 (gxv_mort_subtable_type2_validate): Declare with FT_LOCAL_DEF.
3436
3437 * gxvalid/gxvmort4.c (gxv_mort_subtable_type4_validate): Declare
3438 with FT_LOCAL_DEF.
3439
3440 * gxvalid/gxvmort5.c (gxv_mort_subtable_type5_subtable_setup,
3441 gxv_mort_subtable_type5_InsertList_validate): Fix C++ compiler
3442 errors.
3443 (gxv_mort_subtable_type5_validate): Declare with FT_LOCAL_DEF.
3444
3445 * gxvalid/gxvmort.c: Include gxvfeat.h.
3446 (gxv_mort_featurearray_validate, gxv_mort_coverage_validate):
3447 Declare with FT_LOCAL_DEF.
3448 (gxv_mort_subtables_validate, gxv_mort_validate): Improve trace
3449 messages.
3450
3451 * gxvalid/gxvmort.h (gxv_mort_feature_validate): Remove.
3452
3453 * gxvalid/gxvmorx0.c (gxv_morx_subtable_type0_validate): Declare
3454 with FT_LOCAL_DEF.
3455
3456 * gxvalid/gxvmorx1.c
3457 (gxv_morx_subtable_type1_substitutionTable_load,
3458 gxv_morx_subtable_type1_subtable_setup,
3459 gxv_morx_subtable_type1_entry_validate,
3460 gxv_morx_subtable_type1_substitutionTable_validate): Fix C++
3461 compiler errors.
3462 (gxv_morx_subtable_type1_validate): Declare with FT_LOCAL_DEF.
3463
3464 * gxvalid/gxvmorx2.c (gxv_morx_subtable_type2_opttable_load,
3465 gxv_morx_subtable_type2_subtable_setup,
3466 gxv_morx_subtable_type2_ligActionIndex_validate,
3467 gxv_morx_subtable_type2_ligatureTable_validate): Fix C++ compiler
3468 errors.
3469 (gxv_morx_subtable_type2_validate): Declare with FT_LOCAL_DEF.
3470 Fix typo.
3471
3472 * gxvalid/gxvmorx4.c (gxv_morx_subtable_type4_validate): Declare
3473 with FT_LOCAL_DEF.
3474
3475 * gxvalid/gxvmorx5.c (gxv_morx_subtable_type5_insertionGlyph_load,
3476 gxv_morx_subtable_type5_subtable_setup): Fix C++ compiler error.
3477 (gxv_morx_subtable_type5_validate): Declare with FT_LOCAL_DEF.
3478
3479 * gxvalid/gxvmorx.c (gxv_morx_subtables_validate,
3480 gxv_morx_validate): Improve trace message.
3481
3482 * gxvalid/gxvopbd.c (gxv_opbd_LookupFmt4_transit): Fix compiler
3483 warnings.
3484 (gxv_opbd_validate): Improve trace message.
3485
3486 * gxvalid/gxvprop.c: Decorate constants with `U' and `L' where
3487 appropriate.
3488 (gxv_prop_zero_advance_validate, gxv_prop_validate): Improve trace
3489 message.
3490
3491 * gxvalid/gxvtrak.c (gxv_trak_trackTable_validate): Remove unused
3492 parameter. Update all callers.
3493 (gxv_trak_validate): Improve trace message.
3494
3495 * rules.mk (GXV_DRV_H): Add gxvfeat.h.
3496
34972005-09-01 Werner Lemberg <wl@gnu.org>
3498
3499 * src/gxvalid/gxvbsln.c (GXV_BSLN_VALUE_EMPTY): Add `U'.
3500
3501 * src/gxvalid/gxmort1.c (GXV_MORT_SUBTABLE_TYPE1_HEADER_SIZE),
3502 src/gxvalid/gxmort2.c (GXV_MORT_SUBTABLE_TYPE2_HEADER_SIZE): Fix
3503 typo.
3504
3505 * src/gxvalid/gxvmorx0.c, src/gxvalid/gxvmorx1.c,
3506 src/gxvalid/gxvmorx2.c, src/gxvalid/gxvmorx4.c,
3507 src/gxvalid/gxvmorx5.c, src/gxvalid/gxvmort.c: Improve trace
3508 messages.
3509 Decorate constants with `U' and `L' where appropriate.
3510 Fix compiler warnings.
3511
35122005-08-31 Werner Lemberg <wl@gnu.org>
3513
3514 * src/truetype/ttgload.c (load_truetype_glyph): Fix typo.
3515
3516 * src/gxvalid/gxvbsln.c (gxv_bsln_validate): Fix trace message.
3517
3518 * src/gxvalid/gxvcommn.c (gxv_odtect_add_range): Use `const'.
3519
3520 * src/gxvalid/gxvfeat.c, src/gxvalid/gxvjust.c,
3521 src/gxvalid/gxvkern.c, src/gxvalid/gxvlcar.c, src/gxvalid/gxvmod.c,
3522 src/gxvalid/gxvmort0.c, src/gxvalid/gxvmort1.c,
3523 src/gxvalid/gxvmort2.c, src/gxvalid/gxvmort4.c,
3524 src/gxvalid/gxvmort5.c, src/gxvalid/gxvmort.c: Improve trace
3525 messages.
3526 Decorate constants with `U' and `L' where appropriate.
3527 Fix compiler warnings.
3528
35292005-08-30 Werner Lemberg <wl@gnu.org>
3530
3531 * src/gxvalid/README: Revised.
3532 * src/gxvalid/gxvbsln.c: Fix compiler warnings.
3533 * src/gxvalid/gxvcommn.c: Fix compiler warnings.
3534 (gxv_XEntryTable_validate, gxv_compare_ranges): Remove unused
3535 parameter. Update all callers.
3536 Improve trace messages.
3537 Some formatting.
3538
35392005-08-29 Werner Lemberg <wl@gnu.org>
3540
3541 * include/freetype/freetype.h, include/freetype/ftchapters.h: Add
3542 a preliminary section with some explanations about user allocation.
3543
3544 * src/tools/docmaker/tohtml.py (HtmlFormatter.section_enter):
3545 Don't abort if there are no data types, functions, etc., in a
3546 section.
3547 Print synopsis only if we have a data type, function, etc.
3548
3549 * docs/INSTALL.ANY, docs/INSTALL, docs/INSTALL.UNX, docs/CUSTOMIZE,
3550 docs/INSTALL.GNU, docs/TRUETYPE, docs/DEBUG, docs/UPGRADE.UNX,
3551 docs/VERSION.DLL, docs/formats.txt: Revised, formatted.
3552
35532005-08-28 George Williams <gww@silcom.com>
3554
3555 * src/truetype/ttgload.c [TT_MAX_COMPOSITE_RECURSE]: Removed.
3556 (load_truetype_glyph): Limit recursion depth by `maxComponentDepth'.
3557
35582005-08-25 J. Ali Harlow <ali@avrc.city.ac.uk>
3559
3560 * builds/unix/freetype2.in (CFlags): Add missing directory.
3561
35622005-08-24 Werner Lemberg <wl@gnu.org>
3563
3564 * docs/CHANGES: Mention gxvalid module.
3565
35662005-08-23 Werner Lemberg <wl@gnu.org>
3567
3568 * src/autofit/aflatin.c (af_latin_metrics_scale): Initialize
3569 render mode properly. Reported by chris@dokein.co.uk.
3570
Werner Lemberg6be99f92006-02-09 07:38:57 +000035712005-08-23 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
Werner Lemberg8e6c56f2005-10-18 06:09:13 +00003572
3573 Add gxvalid module to validate TrueType GX/AAT tables.
3574
3575 Modifications on existing files:
3576
3577 * Jamfile: Register gxvalid module.
3578 * src/base/Jamfile: Register ftgxval.c.
3579 * src/base/rule.mk: Register ftgxval.c.
3580 * docs/INSTALL.ANY: Register gxvalid/gxvalid.c.
3581
3582 * include/freetype/config/ftheader.h (FT_GX_VALIDATE_H): New macro
3583 to include gxvalid header file.
3584 * include/freetype/config/ftmodule.h: Register gxv_module_class.
3585
3586 * include/freetype/ftchapters.h: Add comment about gx_validation.
3587 * include/freetype/ftotval.h: Change keyword FT_VALIDATE_XXX
3588 to FT_VALIDATE_OTXXX to co-exist with gxvalid.
3589 * include/freetype/tttags.h: Add tags for TrueType GX/AAT tables.
3590
3591 * include/freetype/internal/ftserv.h (FT_SERVICE_GX_VALIDATE_H): New
3592 macro for gxvalid service.
3593 * include/freetype/internal/fttrace.h: Add trace facilities for
3594 gxvalid.
3595
3596 New files on existing directories:
3597
3598 * include/freetype/internal/services/svgxval.h: Registration of
3599 validation service for TrueType GX/AAT and classic kern table.
3600 * include/freetype/ftgxval.h: Public API definition to use gxvalid.
3601 * src/base/ftgxval.c: Public API of gxvalid.
3602
3603 New files under src/gxvalid/:
3604
3605 * src/gxvalid/Jamfile src/gxvalid/README src/gxvalid/module.mk
3606 src/gxvalid/rules.mk src/gxvalid/gxvalid.c src/gxvalid/gxvalid.h
3607 src/gxvalid/gxvbsln.c src/gxvalid/gxvcommn.c src/gxvalid/gxvcommn.h
3608 src/gxvalid/gxverror.h src/gxvalid/gxvfeat.c src/gxvalid/gxvfgen.c
3609 src/gxvalid/gxvjust.c src/gxvalid/gxvkern.c src/gxvalid/gxvlcar.c
3610 src/gxvalid/gxvmod.c src/gxvalid/gxvmod.h src/gxvalid/gxvmort.c
3611 src/gxvalid/gxvmort.h src/gxvalid/gxvmort0.c src/gxvalid/gxvmort1.c
3612 src/gxvalid/gxvmort2.c src/gxvalid/gxvmort4.c src/gxvalid/gxvmort5.c
3613 src/gxvalid/gxvmorx.c src/gxvalid/gxvmorx.h src/gxvalid/gxvmorx0.c
3614 src/gxvalid/gxvmorx1.c src/gxvalid/gxvmorx2.c src/gxvalid/gxvmorx4.c
3615 src/gxvalid/gxvmorx5.c src/gxvalid/gxvopbd.c src/gxvalid/gxvprop.c
3616 src/gxvalid/gxvtrak.c: New files, gxvalid body.
3617
36182005-08-21 Werner Lemberg <wl@gnu.org>
3619
3620 * src/truetype/ttgload.c (TT_Load_Glyph): Only translate outline
3621 to (0,0) if bit 1 of the `head' table isn't set. This improves
3622 rendering of buggy fonts.
3623
36242005-08-20 Chia I Wu <b90201047@ntu.edu.tw>
3625
3626 * src/truetype/ttdriver.c (Load_Glyph): Don't check the validity of
3627 ttmetrics here. TrueType fonts with only sbits always have
3628 ttmetrics.valid set to false.
3629
3630 * src/truetype/ttgload.c (TT_Load_Glyph): Check that ttmetrics is
3631 valid before loading outline glyph.
3632
3633 * src/cache/ftcimage.c (FTC_INode_New): Fix a memory leak.
3634
36352005-08-20 Werner Lemberg <wl@gnu.org>
3636
3637 * src/sfnt/ttload.c (tt_face_load_metrics_header): Ignore missing
3638 `hhea' table for SFNT Mac fonts. Change based on a patch by
3639 mpsuzuki@hiroshima-u.ac.jp.
3640
36412005-08-20 Masatake YAMATO <jet@gyve.org>
3642
3643 * src/otvalid/otvmod.c (otv_validate): Use ft_validator_run instead
3644 of ft_setjmp.
3645
36462005-08-19 Werner Lemberg <wl@gnu.org>
3647
3648 * src/truetype/ttgload.c (load_truetype_glyph): Fix compiler
3649 warnings.
3650
36512005-08-16 Chia I Wu <b90201047@ntu.edu.tw>
3652
3653 * src/truetype/ttinterp.c, src/truetype/ttinterp.h: Update copyright
3654 messages.
3655
36562005-08-16 Chia I Wu <b90201047@ntu.edu.tw>
3657
3658 * src/truetype/ttinterp.c, src/truetype/ttinterp.h: Remove original
3659 TT_Done_Context and rename TT_Destroy_Context to TT_Done_Context
3660 with slight changes.
3661 Update all callers.
3662 (TT_New_Context): Now takes TT_Driver argument directly.
3663 Update all callers.
3664
3665 * src/truetype/ttobjs.h (tt_slot_init): New function.
3666 * src/truetype/ttobjs.c (tt_driver_init): Initialize execution
3667 context here.
3668 (tt_slot_init): New function to create extra points for the internal
3669 glyph loader. We then use it directly, instead of face's glyph
3670 loader, when loading glyph.
3671
3672 * src/truetype/ttdriver.c (tt_driver_class): Use tt_slot_init for
3673 glyph slot initialization.
3674 (Load_Glyph): Load flag dependencies are handled here. Return error
3675 if size is NULL.
3676
3677 * src/truetype/ttgload.c: Heavy cleanup and refactoring.
3678 (org_to_cur): Removed.
3679 (TT_Load_Simple_Glyph): Call FT_GlyphLoader_CheckPoints.
3680 (TT_Hint_Glyph): New funcion to hint a zone, prepared by caller.
3681 (TT_Process_Simple_Glyph): s/load/loader/.
3682 Use loader->pp values instead of recalculation.
3683 Use TT_Hint_Glyph.
3684 No need to save/restore loader->stream before and after
3685 TT_Vary_Get_Glyph_Deltas now.
3686 (TT_LOADER_SET_PP): New macro to calculate and set the four phantom
3687 points.
3688 (load_truetype_glyph): Never set exec->glyphSize to 0. This closes
3689 Savannah bug #13107.
3690 Forget glyph frame before calling TT_Process_Simple_Glyph.
3691 Use TT_LOADER_SET_PP.
3692 Scale all four phantom points.
3693 Split off some functionality to ...
3694 (TT_Process_Composite_Component, TT_Process_Composite_Glyph): These
3695 new functions.
3696 (TT_Load_Glyph): Set various fields of `glyph' here, not in
3697 load_truetype_glyph and compute_glyph_metrics.
3698 Split off some functionality to ...
3699 (load_sbit_image, tt_loader_init): These new functions.
3700 (compute_glyph_metrics): Call FT_Outline_Get_CBox.
3701
37022005-08-08 Werner Lemberg <wl@gnu.org>
3703
3704 * docs/INSTALL.ANY: Updated.
3705
37062005-08-05 Werner Lemberg <wl@gnu.org>
3707
3708 * src/cff/cffgload.c (cff_builder_close_contour),
3709 src/psaux/psobjs.c (t1_builder_close_contour): Protect against
3710 zero `outline' pointer.
3711
3712 * src/base/ftgloadr.c (FT_GlyphLoader_Add): Protect against zero
3713 `loader' address.
3714
37152005-08-03 Werner Lemberg <wl@gnu.org>
3716
3717 * src/sfnt/sfdriver.c (sfnt_interface) [FT_OPTIMIZE_MEMORY]:
3718 Reactivate pointers to tt_find_sbit_image and tt_load_sbit_metrics
3719 to make X work again.
3720
37212005-08-02 Werner Lemberg <wl@gnu.org>
3722
3723 * src/otvalid/otvcommn.h: Remove dead code.
3724
37252005-07-31 Chia I Wu <b90201047@ntu.edu.tw>
3726
3727 * src/truetype/ttobjs.h (tt_size_run_fpgm, tt_size_run_prep): New
3728 functions.
3729
3730 * src/truetype/ttobjs.c (tt_size_run_fpgm, tt_size_run_prep): New
3731 functions.
3732 (tt_size_init): Add 4, instead of 2, (phantom) points to twilight
3733 zone.
3734 Move code that runs fpgm to tt_size_run_fpgm.
3735 (Reset_Outline_Size): Move code that runs prep to tt_size_run_prep.
3736 (tt_glyphzone_new): Allocate right size of arrays.
3737 Set max_points and max_contours properly.
3738
37392005-07-26 Chia I Wu <b90201047@ntu.edu.tw>
3740
3741 * src/truetype/ttdriver.c (Set_Char_Sizes): Avoid unnecessary
3742 computations and clean up.
3743
3744 * src/truetype/ttobjs.h (struct TT_SizeRec_): Comment on the
3745 internal copy of metrics.
3746
37472005-07-12 Werner Lemberg <wl@gnu.org>
3748
3749 * include/freetype/ftoutln.h (FT_Outline_Embolden): Fix prototype.
3750 Reported by Xerxes.
3751
37522005-07-04 Werner Lemberg <wl@gnu.org>
3753
3754 * include/freetype/internal/ftmemory.h (FT_REALLOC_ARRAY): Fix typo.
3755 Reported by Brett Hutley.
3756
37572005-06-30 David Turner <david@freetype.org>
3758
3759 * src/sfnt/ftbitmap.c, src/truetype/ttgload.c, src/sfnt/ttcmap.c:
3760 Removing compiler warnings (Visual C++ /W4).
3761
3762
3763 Implement a work-around for broken C preprocessor in Visual C++ (it
3764 has been confirmed by the MS developers that it is indeed a bug
3765 which won't be fixed in the very near future).
3766
3767 * Jamfile (FT2_COMPONENTS): Include otvalid (again).
3768
3769 * src/otvalid/otvcommn.h (OTV_NAME, OTV_FUNC): New macros.
3770 (OTV_NEST1, OTV_NEST2, OTV_NEST3): Use OTV_NAME and OTV_FUNC to
3771 avoid argument expansion by argument prescan.
3772 Append `Func' to all affected macros and change them to take just a
3773 single argument. Example: `AttachList' is renamed to
3774 `AttachListFunc'.
3775
3776 * src/otvalid/otvgdef.c, src/otvalid/otvgpos.c,
3777 src/otvalid/otvgsub.c, src/otvjstf.c: Append `Func' to macros
3778 affected by the changes to OTV_NESTx and modify them to take just a
3779 single argument.
3780
37812005-06-20 Chia I Wu <b90201047@ntu.edu.tw>
3782
3783 * include/freetype/internal/ftobjs.h, src/base/ftobjs.c: New function
3784 ft_glyphslot_grid_fit_metrics.
3785
3786 * src/truetype/ttgload.c (compute_glyph_metrics): Use
3787 ft_glyphslot_grid_fit_metrics.
3788
3789 * src/cff/cffgload.c (cff_slot_load), src/cid/cidgload.c
3790 (cid_slot_load_glyph), src/type1/t1gload.c (T1_Load_Glyph): Use
3791 ft_glyphslot_grid_fit_metrics.
3792 FT_Outline_Get_CBox is called twice.
3793
3794 * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Modify metrics to more
3795 reasonable values when emboldening outline glyphs. The theoretic
3796 ones are unrealistic.
3797
37982005-06-16 Chia I Wu <b90201047@ntu.edu.tw>
3799
3800 * src/base/ftoutln.c (FT_Outline_Embolden): Strength should be
3801 halved.
3802
3803 * src/base/ftsynth.c (FT_GlyphSlot_Embolden): Change the default
3804 strength.
3805 Don't increase slot->advance.y.
3806
38072005-06-16 Werner Lemberg <wl@gnu.org>
3808
3809 * include/freetype/freetype.h (FREETYPE_MINOR): Set to 2.
3810 (FREETYPE_PATCH): Set to 0.
3811
3812 * builds/unix/configure.ac (version_info): Set to 9:9:3.
3813 Currently, we are still binary compatible.
3814
3815 * builds/win32/visualc/index.html,
3816 builds/win32/visualc/freetype.dsp,
3817 builds/win32/visualc/freetype.vcproj: s/219/2110/, s/2.1.9/2.1.10/.
3818
3819 * builds/freetype.mk (refdoc), README, Jamfile (RefDoc):
3820 s/2.1.9/2.1.10/.
3821
3822 * docs/CHANGES, docs/VERSION.DLL: Updated.
3823
3824 * ChangeLog: Split off older entries into...
3825 * ChangeLog.20, ChangeLog.21: These new files.
3826
38272005-06-15 Kirill Smelkov <kirr@mns.spb.ru>
3828
3829 The next release will be 2.2.0, so don't worry about source code
3830 backwards compatibility.
3831
3832 * include/freetype/ftimage.h (FT_Outline_MoveToFunc,
3833 FT_Outline_LineToFunc, FT_Outline_ConicToFunc,
3834 FT_Outline_CubicToFunc, FT_SpanFunc, FT_Raster_RenderFunc),
3835 include/freetype/ftrender.h (FT_Glyph_TransformFunc,
3836 FT_Renderer_RenderFunc, FT_Renderer_TransformFunc): Decorate
3837 parameters with `const' where appropriate.
3838
38392005-06-15 Chia I Wu <b90201047@ntu.edu.tw>
3840
3841 * src/sfnt/ttsbit.c (tt_face_load_sbit_image): Compute vertBearingY
3842 to make glyphs centered vertically.
3843
3844 * src/truetype/ttgload.c (compute_glyph_metrics): Compute
3845 vertBearingY to make glyphs centered vertically.
3846 Fix some bugs in vertical metrics:
3847
3848 . loader->pp3.y and loader->pp4.y are in 26.6 format, not in font
3849 units.
3850 . As we use the glyph's cbox to calculate the top bearing now
3851 there iss no need to adjust `top'.
3852
38532005-06-15 Werner Lemberg <wl@gnu.org>
3854
3855 * src/otvalid/otvcommn.h (OTV_OPTIONAL_TABLE): Use FT_UShort to be
3856 in sync with OTV_OPTIONAL_OFFSET. Reported by YAMATO Masatake.
3857
38582005-06-13 Werner Lemberg <wl@gnu.org>
3859
3860 * docs/release: Update.
3861
3862----------------------------------------------------------------------------
3863
Werner Lemberg435046b2006-01-11 10:57:42 +00003864Copyright 2005, 2006 by
Werner Lemberg8e6c56f2005-10-18 06:09:13 +00003865David Turner, Robert Wilhelm, and Werner Lemberg.
3866
3867This file is part of the FreeType project, and may only be used, modified,
3868and distributed under the terms of the FreeType project license,
3869LICENSE.TXT. By continuing to use, modify, or distribute this file you
3870indicate that you have read the license and understand and accept it
3871fully.
3872
3873
3874Local Variables:
3875version-control: never
Werner Lemberg4e03fe72006-04-29 06:20:09 +00003876coding: utf-8
Werner Lemberg8e6c56f2005-10-18 06:09:13 +00003877End: