ChangeLog 91 KB
Newer Older
Werner Lemberg's avatar
   
Werner Lemberg committed
1
2
3
4
5
2002-02-20  Werner Lemberg  <wl@gnu.org>

	* builds/unix/install.mk (check): New dummy target.
	(.PHONY): Add it.

Werner Lemberg's avatar
   
Werner Lemberg committed
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
2002-02-19  Werner Lemberg  <wl@gnu.org>

	* builds/freetype.mk (FT_CFLAGS): Use $(INCLUDE_FLAGS) first.

	* src/cache/ftccache.c (ftc_cache_resize): Mark `error' as unused
	to avoid compiler warning.
	* src/cff/cffload.c (CFF_Get_String): Ditto.
	* src/cff/cffobjs.c (CFF_StrCopy): Ditto.
	* src/psaux/psobjs.c (PS_Table_Done): Ditto.
	* src/pcf/pcfread.c (pcf_seek_to_table_type): Ditto.
	* src/sfnt/sfdriver.c (get_sfnt_postscript_name): Ditto.
	(pcf_get_bitmaps): The same for `sizebitmaps'.
	* src/psaux/t1decode.c (T1_Decode_Parse_Charstrings): The same for
	`orig_y'.
	(t1operator_seac): Comment out more dead code.
	* src/pshinter/pshalgo2.c (ps2_hints_apply): Add `DEBUG_HINTER'
	conditional.
	* src/truetype/ttgload.c (TT_Process_Simple_Glyph,
	load_truetype_glyph): Add `TT_CONFIG_OPTION_BYTECODE_INTERPRETER'
	conditional.

Werner Lemberg's avatar
   
Werner Lemberg committed
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
2002-02-18  Werner Lemberg  <wl@gnu.org>

	* src/autohint/ahglyph.c (ah_outline_link_segments): Remove unused
	variables.
	* src/autohint/ahhint.c (ah_align_serif_edge): Use FT_UNUSED instead
	of UNUSED.
	* src/autohint/ahmodule.c (ft_autohinter_reset): Ditto.
	* src/pshinter/pshrec.c (ps_mask_table_merge): Fix typo in variable
	swapping code.
	* src/pshinter/pshglob.h (PSH_Blue_Align): Add PSH_BLUE_ALIGN_NONE.
	* src/pshinter/pshglob.c (psh_blues_snap_stem): Use it.
	* src/pshinter/pshalgo1.c (psh1_hint_table_optimize): Ditto.
	* src/pshinter/pshalgo2.c (psh2_hint_align): Ditto.
	* include/freetype/internal/ftobjs.h (UNUSED): Removed.

Werner Lemberg's avatar
   
Werner Lemberg committed
42
43
44
45
46
47
48
49
50
51
52
53
54
2002-02-10  Roberto Alameda  <ojancano@geekmail.de>

	Add support for ISOLatin1 PS encoding.

	* include/freetype/freetype.h (ft_encoding_latin_1): New tag
	(`lat1').
	* include/freetype/internal/t1types.h (T1_Encoding_Type): Add
	`t1_encoding_isolatin1'.
	* src/type1/t1driver.c (Get_Char_Index, Get_Next_Char): Handle
	ft_encoding_latin_1.
	* src/type1/t1load.c (parse_encoding): Handle `ISOLatin1Encoding'.
	* src/type1/t1objs.c (T1_Face_Init): Handle `t1_encoding_isolatin1'.

Werner Lemberg's avatar
   
Werner Lemberg committed
55
56
57
58
59
60
61
62
63
64
2002-02-09  Werner Lemberg  <wl@gnu.org>

	* README: Fix typo.
	* docs/CHANGES: Minor fixes.


	* Version 2.0.8 released.
	=========================


65
66
2002-02-08  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
67
	* docs/CHANGES: Updating for 2.0.8.
David Turner's avatar
David Turner committed
68

Werner Lemberg's avatar
   
Werner Lemberg committed
69
70
	* include/freetype/freetype.h: Setting `PATCH_LEVEL' to 8 and
	removing `FT_Get_Next_Char' from the API (temporarily).
David Turner's avatar
David Turner committed
71

Werner Lemberg's avatar
   
Werner Lemberg committed
72
73
74
	* include/freetype/freetype.h: Adding comments to FT_Get_Next_Char;
	note that this function might temporarily be removed for the 2.0.8
	release.
75

76
77
2002-02-07  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
78
79
	* src/pcf/pcfread.c (pcf_load_font): Removed immature support of
	the AVERAGE_WIDTH property.
80

Werner Lemberg's avatar
   
Werner Lemberg committed
81
2002-02-06  David Turner  <david@freetype.org>
82

Werner Lemberg's avatar
   
Werner Lemberg committed
83
84
85
86
	* src/sfnt/sfobjs.c (SFNT_Load_Face): Since many fonts embedded in
	PDF documents do not include 'cmap', 'post' and 'name' tables, the
	SFNT face loader has been changed to not immediately report an
	error if these are not present.
87

Werner Lemberg's avatar
   
Werner Lemberg committed
88
89
	Note that the specification _requires_ these tables, but Adobe
	seems to ignore it completely.
90

Werner Lemberg's avatar
   
Werner Lemberg committed
91
	* src/sfnt/ttcmap.c: Removing compiler warnings.
92

Werner Lemberg's avatar
   
Werner Lemberg committed
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
	* src/pcf/pcfread.c (pcf_read_TOC): Use FT_UInt.
	(pcf_parse_metric, pcf_parse_compressed_metric): Removed.  Code
	is now in ...
	(pcf_get_metric): Here.
	(pcfSeekToType): Renamed to ...
	(pcf_seek_to_table_type): This.
	Use FT_Int.
	(pcfHasType): Renamed to ...
	(pcf_has_table_type): This.
	Use FT_Int.
	(find_property): Renamed to ...
	(pcf_find_property): This.
	Use FT_Int.
	(pcf_get_bitmaps, pcf_get_encodings): Handle invalid PCF fonts
	better (delaying format checks out of FT_Access_Frame ..
	FT_Forget_Frame blocks to avoid leaving the stream in an incorrect
	state when encountering an invalid PCF font).
110
	
Werner Lemberg's avatar
   
Werner Lemberg committed
111
112
113
114
115
116
117
118
119
	* src/pcf/pcfdriver.c (PCF_Done_Face): Renamed to ...
	(PCF_Face_Done): This.
	(PCF_Init_Face): Renamed to ...
	(PCF_Face_Init): This.
	(PCF_Get_Char_Index): Renamed to ...
	(PCF_Char_Get_Index): This.
	(PCF_Get_Next_Char): Renamed to ...
	(PCF_Char_Get_Next): This.
	(pcf_driver_class): Updated.
120
	
Werner Lemberg's avatar
   
Werner Lemberg committed
121
	* src/pcf/pcf.h (PCF_Done_Face): Removed.
122

Werner Lemberg's avatar
   
Werner Lemberg committed
123
2002-02-06  Detlef Wrkner  <TetiSoft@apg.lahn.de>
124

Werner Lemberg's avatar
   
Werner Lemberg committed
125
	* src/pcf/pcfdriver.c (FT_Done_Face): Fixed small memory leak.
126
        
Werner Lemberg's avatar
   
Werner Lemberg committed
127
128
129
	* src/pcf/pcfread.c (pcf_load_font): Now handles the "AVERAGE_WIDTH"
	property to return correct character pixel (width/height) pairs for
	embedded bitmaps.
130

Werner Lemberg's avatar
   
Werner Lemberg committed
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
2002-02-04  Keith Packard  <keithp@keithp.com>

	Adding the function `FT_Get_Next_Char', doing the obvious thing
	w.r.t. the selected charmap.

	* include/freetype/freetype.h: Add prototype.
	* include/freetype/internal/ftdriver.h: Add `FTDriver_getNextChar'
	typedef.
	(FT_Driver_Class): Use it.
	* include/freetype/internal/psnames.h: Add `PS_Next_Unicode_Func'
	typedef.
	(PSNames_Interface): Use it.
	* include/freetype/internal/tttypes.h: Add `TT_CharNext_Func'
	typedef.
	(TT_CMapTable): Use it.

	* src/base/ftobjs.c (FT_Get_Next_Char): New function, implementing
	high-level API.
	* src/cff/cffdrivr.c (cff_get_next_char): New function.
	(cff_driver_class): Add it.
	* src/cid/cidriver.c (Cid_Get_Next_Char): New function.
	(t1cid_driver_class): Add it.
	* src/pcf/pcfdriver.c (PCF_Get_Next_Char): New function.
	(pcf_driver_class): Add it.
	* src/psnames/psmodule.c (PS_Next_Unicode): New function.
	(psnames_interface): Add it.
	* src/sfnt/ttcmap.c (code_to_next0, code_to_next2, code_to_next4,
	code_to_next6, code_to_next_8_12, code_to_next_10): New auxiliary
	functions.
	(TT_CharMap_Load): Use them.
	* src/truetype/ttdriver.c (Get_Next_Char): New function.
	(tt_driver_class): Add it.
	* src/type1/t1driver.c (Get_Next_Char): New function.
	(t1_driver_class): Add it.
	* src/winfnt/winfnt.c (FNT_Get_Next_Char): New function.
	(winfnt_driver_class): Add it.

	* src/pcf/pcfread.c (pcf_load_font): For now, report Unicode for
	Unicode and Latin 1 encodings.

Werner Lemberg's avatar
   
Werner Lemberg committed
171
172
173
174
175
176
177
178
179
2002-02-02  Keith Packard  <keithp@keithp.com>

	* builds/unix/freetype-config.in: Add missing `fi'.


	* Version 2.0.7 released.
	=========================


David Turner's avatar
David Turner committed
180
181
2002-02-01  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
182
183
	* include/freetype/freetype.h: Increasing FREETYPE_PATCH to 7
	for the new release.
David Turner's avatar
David Turner committed
184

185
186
2002-01-31  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
187
188
	* README, README.UNX, docs/CHANGES: Updating documentation for the
	2.0.7 release.
189

190
191
2002-01-30  David Turner  <david@freetype.org>

Werner Lemberg's avatar
Werner Lemberg committed
192
193
194
	* INSTALL: Moved to ...
	* docs/INSTALL: Here to avoid conflicts with the "install" script on
	Windows, where the filesystem doesn't preserve case.
195

196
197
2002-01-29  David Turner  <david@freetype.org>

Werner Lemberg's avatar
Werner Lemberg committed
198
199
200
	* configure: Fixed the script.  It previously didn't accept more
	than one argument correctly.  For example, when typing:

201
202
	  ./configure --disable-shared --disable-nls

Werner Lemberg's avatar
Werner Lemberg committed
203
	the "--disable-nls" was incorrectly sent to the "make" program.
204

Werner Lemberg's avatar
   
Werner Lemberg committed
205
206
207
208
209
2002-01-29  Werner Lemberg  <wl@gnu.org>

	* README.UNX: Fix typo.
	* builds/unix/install.mk (uninstall): Fix library name for libtool.

Werner Lemberg's avatar
   
Werner Lemberg committed
210
211
212
213
214
215
216
2002-01-28  Francesco Zappa Nardelli  <Francesco.Zappa.Nardelli@ens.fr>

	* src/pcf/pcfdriver.c (PCF_Done_Face): Fix incorrect destruction of
	the face object (face->toc.tables, face->root.family_name,
	face->root.available_size, face->charset_encoding,
	face->charset_registry are now freed).  Thanks to Niels Moseley.

Werner Lemberg's avatar
   
Werner Lemberg committed
217
218
219
220
221
222
223
224
2002-01-28  Roberto Alameda  <ojancano@geekmail.de>

	* src/type1/t1load.c (parse_encoding): Set `loader->num_chars'.

2002-01-28  Werner Lemberg  <wl@gnu.org>

	* src/type1/t1load.c (parse_subrs, parse_charstrings): Use copy
	of `base' string for decrypting to not modify the original data.
Werner Lemberg's avatar
Werner Lemberg committed
225
	Based on a patch by Jakub Bogusz <qboosh@pld.org.pl>.
Werner Lemberg's avatar
   
Werner Lemberg committed
226

Werner Lemberg's avatar
   
Werner Lemberg committed
227
228
229
230
231
2002-01-27  Giuliano Pochini  <pochini@shiny.it>

	* src/smooth/ftgrays.c (gray_render_scanline): Fix bug which caused
	bad rendering of thin lines (less than one pixel thick).

Werner Lemberg's avatar
   
Werner Lemberg committed
232
233
234
235
236
2002-01-25  Werner Lemberg  <wl@gnu.org>

	* src/cff/cffdrivr.c (cff_get_name_index): Make last patch work
	actually.

Werner Lemberg's avatar
   
Werner Lemberg committed
237
2002-01-25  Martin Zinser  <zinser@decus.de>
238

Werner Lemberg's avatar
   
Werner Lemberg committed
239
240
241
242
243
244
245
246
247
248
249
250
251
	* src/cache/ftccache.c (ftc_node_done, ftc_node_destroy): Fix
	compilation warnings.
	* src/base/descrip.mms (OBJS): Add `ftmm.obj'.
	* src/cache/descrip.mms (ftcache.obj): Dependencies added.

2002-01-25  WANG Yi  <wangyi@founder.com.cn>

	* src/cff/cffdrivr.c (cff_get_name_index): Fix deallocation bug.

2002-01-21  Antoine Leca  <Antoine-Freetype@Leca-Marti.org>

	* docs/PATENTS: Typo fixed (thanks to Detlef "Hawkeye" Wrkner) in
	the URL for the online resource.
252

Werner Lemberg's avatar
   
Werner Lemberg committed
253
254
255
256
257
258
259
260
261
262
263
2002-01-18  Ian Brown  <ian.brown@printsoft.de>

	* builds/win32/ftdebug.c: New file.
	* builds/win32/visualc/freetype.dsp: Updated.

2002-01-18  Detlef Wrkner  <TetiSoft@apg.lahn.de>

	* builds/amiga/src/base/ftsystem.c: Updated for AmigaOS 3.9.
	* builds/amiga/README: Updated.

2002-01-18  Ian Brown  <ian.brown@printsoft.de>
Werner Lemberg's avatar
   
Werner Lemberg committed
264
265
266

	* builds/win32/visualc/freetype.dsp: Updated.

Werner Lemberg's avatar
   
Werner Lemberg committed
267
268
269
270
271
272
2002-01-13  Werner Lemberg  <wl@gnu.org>

	* builds/unix/freetype2.a4: The script was still buggy.
	* builds/unix/freetype-config.in: Make it really work for any install
	prefix.

Werner Lemberg's avatar
   
Werner Lemberg committed
273
274
275
276
2002-01-10  Werner Lemberg  <wl@gnu.org>

	* builds/unix/freetype2.a4: Fix some serious bugs.

Werner Lemberg's avatar
   
Werner Lemberg committed
277
278
279
280
2002-01-09  David Turner  <david@freetype.org>

	* builds/unix/configure.ac: Build top-level Jamfile.

281
282
2002-01-09  Maxim Shemanarev  <mcseemagg@yahoo.com>

Werner Lemberg's avatar
   
Werner Lemberg committed
283
284
285
	* src/smooth/ftgrays.c (gray_render_line): Small optimization to
	the smooth anti-aliased renderer that deals with vertical segments.
	This results in a 5-7% speedup in rendering speed.
286

287
288
2002-01-08  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
289
290
	Added some wrapper scripts to make the installation more
	Unix-friendly.
291

Werner Lemberg's avatar
   
Werner Lemberg committed
292
	* configure, install: New files.
293

Werner Lemberg's avatar
   
Werner Lemberg committed
294
295
	* INSTALL, README.UNX: Updated installation documentation to use the
	new 'configure' and 'install' scripts.
296

David Turner's avatar
David Turner committed
297
2002-01-07  David Turner  <david@freetype.org>
298

Werner Lemberg's avatar
   
Werner Lemberg committed
299

300
301
302
	* Version 2.0.6 released.
	=========================

David Turner's avatar
David Turner committed
303

Werner Lemberg's avatar
   
Werner Lemberg committed
304
	* docs/BUGS, docs/CHANGES: Updating documentation for 2.0.6 release.
David Turner's avatar
David Turner committed
305

Werner Lemberg's avatar
   
Werner Lemberg committed
306
307
308
309
310
311
	* src/tools/docmaker.py: Fixed HTML quoting in sources.
	(html_format): Replaced with ...
	(html_quote): New function.
	(html_quote0): New function.
	(DocCode::dump_html: Small improvement.
	(DocParagraph::dump, DocBlock::html): Use html_quote0 and html_quote.
312

Werner Lemberg's avatar
   
Werner Lemberg committed
313
314
	* include/freetype/config/ftoption.h: Setting default options for
	a release build (debugging off, bytecode interpreter off).
315

Werner Lemberg's avatar
   
Werner Lemberg committed
316
317
318
319
	* src/base/ftobjs.c, src/base/ftoutln.c, src/cache/ftccmap.c,
	src/cff/cffload.c, src/cff/cffobjs.c, src/pshinter/pshalgo2.c,
	src/sfnt/ttload.c, src/sfnt/ttsbit.c: Removing small compiler
	warnings (in pedantic compilation modes).
320

321
322
2002-01-05  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
323
324
325
326
327
328
329
330
331
	* src/autohint/ahhint.c (ah_align_linked_edge): Modified computation
	of auto-hinted stem widths; this avoids color fringes in
	"ClearType-like" rendering.

	* src/truetype/ttgload.c (TT_Load_Glyph_Header,
	TT_Load_Simple_Glyph, TT_Load_Composite_Glyph, load_truetype_glyph):
	Modified the TrueType loader to make it more paranoid; this avoids
	nasty buffer overflows in the case of invalid glyph data (as
	encountered in the output of some buggy font converters).
332

333
334
2002-01-04  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
335
336
337
338
339
340
	* README.UNX: Added special README file for Unix users.

	* builds/unix/ftsystem.c (FT_New_Stream): Fixed typo.

	* src/base/ftobjs.c: Added #include FT_OUTLINE_H to get rid
	of compiler warnings.
David Turner's avatar
David Turner committed
341

Werner Lemberg's avatar
   
Werner Lemberg committed
342
	* src/base/ftoutln.c (FT_Outline_Check): Remove compiler warning.
343

Werner Lemberg's avatar
   
Werner Lemberg committed
344
345
346
347
2002-01-03  Werner Lemberg  <wl@gnu.org>

	* src/type1/t1objs.c (T1_Face_Init): Add cast to avoid compiler
	warning.
348

Werner Lemberg's avatar
   
Werner Lemberg committed
349
2002-01-03  Keith Packard  <keithp@keithp.com>
350

Werner Lemberg's avatar
   
Werner Lemberg committed
351
352
353
354
	* builds/unix/ftsystem.c (FT_New_Stream): Added a fix to ensure that
	all FreeType input streams are closed in child processes of a "fork"
	on Unix systems.  This is important to avoid (potential) access
	control issues.
355

356
357
2002-01-03  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
358
359
360
361
362
363
364
365
366
367
368
	* src/type1/t1objs.c (T1_Face_Init): Fixed a bug that crashed the
	library when dealing with certain weird fonts like "Stalingrad", in
	"sadn.pfb" (this font has no full font name entry).

	* src/base/ftoutln.c, include/freetype/ftoutln.h (FT_Outline_Check):
	New function to check the consistency of outline data.

	* src/base/ftobjs.c (FT_Load_Glyph): Use `FT_Outline_Check' to
	ensure that loaded glyphs are valid.  This allows certain fonts like
	"tt1095m_.ttf" to be loaded even though it appears they contain
	really funky glyphs.
369

Werner Lemberg's avatar
   
Werner Lemberg committed
370
	There still is a bug there, though.
371

Werner Lemberg's avatar
   
Werner Lemberg committed
372
	* src/truetype/ttgload.c (load_truetype_glyph): Fix error condition.
373

Werner Lemberg's avatar
   
Werner Lemberg committed
374
2001-12-30  David Turner  <david@freetype.org>
375

Werner Lemberg's avatar
   
Werner Lemberg committed
376
377
378
	* src/autohint/ahhint.c (ah_hinter_load): Fix advance width
	computation of auto-hinted glyphs.  This noticeably improves the
	spacing of letters in KDE and Gnome.
379

380
381
2001-12-25  Antoine Leca <Antoine-Freetype@Leca-Marti.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
382
383
	* builds/dos/detect.mk: Correcting the order for Borland compilers:
	16-bit bcc was never selected, always overridden by 32-bit bcc32.
384

Werner Lemberg's avatar
   
Werner Lemberg committed
385
386
387
388
389
2001-12-22  Francesco Zappa Nardelli  <Francesco.Zappa.Nardelli@ens.fr>

	* src/pfc/pcfread.c (pcf_load_font): Handle property `POINT_SIZE'
	and fix incorrect computation of `available_sizes'.

390
391
2001-12-22  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
392
393
394
	* src/autohint/ahhint.c (ah_hinter_load): Auto-hinted glyphs had an
	incorrect glyph advance in the case of mono-width fonts (like
	Courier, Andale Mono, and others).
395

Werner Lemberg's avatar
   
Werner Lemberg committed
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
2001-12-22  Detlef Wrkner  <TetiSoft@apg.lahn.de>

	* builds/amiga/*: Adaptations to latest changes.
	Support added for MorphOS.

2001-12-22  Werner Lemberg  <wl@gnu.org>

	* src/pshinter/pshrec.c (FT_COMPONENT): Redefine to `trace_pshrec'.
	(ps_mask_table_merge, ps_hints_open, ps_hints_stem,
	ps_hints_t1stem3, ps_hints_t2mask, ps_hints_t2counter): Fix
	FT_ERROR messages.
	* src/pshinter/pshalgo1.c (FT_COMPONENT): Define as
	`trace_pshalgo1'.
	* src/pshinter/pshalgo2.c (FT_COMPONENT): Define as
	`trace_pshalgo2'.
	* include/freetype/internal/ftdebug.h (FT_Trace): Updated.

	* docs/modules.txt: New file.

415
416
2001-12-21  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
417
418
419
420
421
422
	* src/pshinter/pshrec.c (ps_hints_t2mask, ps_hints_t2counter):
	Ignore invalid "hintmask" and "cntrmask" operators (instead of
	returning an error).  Glyph 2028 of the CFF font "MSung-Light-Acro"
	couldn't be rendered otherwise (it seems its charstring is buggy,
	though this requires more analysis).
	(FT_COMPONENT): Define.
423

Werner Lemberg's avatar
   
Werner Lemberg committed
424
425
426
427
	* src/cff/cffgload.c (CFF_Parse_CharStrings), src/psaux/t1decode.c
	(T1_Decoder_Parse_Charstrings), src/pshinter/pshalgo2.c (*), Fixed a
	bug where the X and Y axis where inversed in the postscript hinter. 
	This caused problem when displaying on non-square surfaces.
Werner Lemberg's avatar
   
Werner Lemberg committed
428

Werner Lemberg's avatar
   
Werner Lemberg committed
429
	* src/pshinter/pshalgo2.c: s/vertical/dimension/.
430

Werner Lemberg's avatar
   
Werner Lemberg committed
431
432
433
434
	* src/pshinter/pshglob.c (psh_globals_new): Replaced a floating
	point constant with a fixed-float equivalent.  For some reasons not
	all compilers are capable of directly computing a floating pointer
	constant casted to FT_Fixed, and will link a math library instead.
435

Werner Lemberg's avatar
   
Werner Lemberg committed
436
437
438
439
440
441
442
443
2001-12-20  Werner Lemberg  <wl@gnu.org>

	* src/cache/ftccache.c (ftc_node_destroy, ftc_cache_lookup): Fix
	tracing strings.
	* src/cache/ftccmap.c (ftc_cmap_family_init): Ditto.
	* src/cache/ftcmanag.c (ftc_family_table_alloc,
	ftc_family_table_free, FTC_Manager_Check): Ditto.
	* src/cache/ftcsbits.c (ftc_sbit_node_load): Ditto.
444

Werner Lemberg's avatar
   
Werner Lemberg committed
445
	* src/base/ftobjs.c (FT_Done_Library): Remove compiler warning.
David Turner's avatar
David Turner committed
446

Werner Lemberg's avatar
   
Werner Lemberg committed
447
2001-12-20  David Turner  <david@freetype.org>
448

Werner Lemberg's avatar
   
Werner Lemberg committed
449
	Added PostScript hinter support to the CFF and CID drivers.
450

Werner Lemberg's avatar
   
Werner Lemberg committed
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
	* include/freetype/internal/cfftypes.h (CFF_Font): New member
	`pshinter'.
	* src/cff/cffload.c (CFF_Get_Standard_Encoding): New function.
	* src/cff/cffload.h: Updated.
	* src/cff/cffgload.c (CFF_Init_Builder): Renamed to ...
	(CFF_Builder_Init): This.
	Added new argument `hinting'.
	(CFF_Done_Builder): Renamed to ...
	(CFF_Builder_Done): This.
	(CFF_Init_Decoder): Added new argument `hinting'.
	(CFF_Parse_CharStrings): Implement vstem support.
	(CFF_Load_Glyph): Updated.
	Add hinting support.
	(cff_lookup_glyph_by_stdcharcode): Use CFF_Get_Standard_Encoding().
	(cff_argument_counts): Updated.
	* src/cff/cffgload.h: Updated.
	* src/cff/cffobjs.c: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
	(CFF_Size_Get_Globals_Funcs, CFF_Size_Done, CFF_Size_Init,
	CFF_Size_Reset, CFF_GlyphSlot_Done, CFF_GLyphSlot_Init): New
	functions.
	(CFF_Init_Face): Renamed to ...
	(CFF_Face_Init): This.
	Add hinter support.
	(CFF_Done_Face): Renamed to ...
	(CFF_Face_Done): This.
	(CFF_Init_Driver): Renamed to ...
	(CFF_Driver_Init): This.
	(CFF_Done_Driver): Renamed to ...
	(CFF_Driver_Done): This.
	* src/cff/cffobjs.h: Updated.
	* src/cff/cffdrivr.c (cff_driver_class): Updated.
482

Werner Lemberg's avatar
   
Werner Lemberg committed
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
	* include/freetype/internal/t1types.h (CID_FaceRec): New member
	`pshinter'.
	* src/cid/cidgload.c (CID_Load_Glyph): Add hinter support.
	* src/cid/cidobjs.c: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
	(CID_GlyphSlot_Done, CID_GlyphSlot_Init, CID_Size_Get_Globals_Funcs,
	CID_Size_Done, CID_Size_Init, CID_Size_Reset): New functions.
	(CID_Done_Face): Renamed to ...
	(CID_Face_Done): This.
	(CID_Init_Face): Renamed to ...
	(CID_Face_Init): This.
	Add hinting support.
	(CID_Init_Driver): Renamed to ...
	(CID_Driver_Init): This.
	(CID_Done_Driver): Renamed to ...
	(CID_Driver_Done): This.
	* src/cid/cidobjs.h: Updated.
	* src/cidriver.c: Updated.
500

Werner Lemberg's avatar
   
Werner Lemberg committed
501
	* src/pshinter/pshrec.c (t2_hint_stems): Fixed.
502

Werner Lemberg's avatar
   
Werner Lemberg committed
503
504
	* src/base/ftobjs.c (FT_Done_Library): Fixed a stupid bug that
	crashed the library on exit.
505

Werner Lemberg's avatar
   
Werner Lemberg committed
506
507
	* src/type1/t1gload.c (T1_Load_Glyph): Enable font matrix
	transformation of hinted glyphs.
508

Werner Lemberg's avatar
   
Werner Lemberg committed
509
510
511
512
513
	* src/cid/cidload.c (cid_read_subrs): Fix error condition.

	* src/cid/cidobjs.c (CID_Face_Done): Fixed a memory leak; the subrs
	routines were never released when CID faces were destroyed.

Werner Lemberg's avatar
   
Werner Lemberg committed
514
515
516
517
	* src/cff/cffload.h, src/cff/cffload.c, src/cff/cffgload.c: Updated
	to move the definition of encoding tables back within "cffload.c"
	instead of making them part of a shared header (causing problems in
	"multi" builds).  This reverts change 2001-08-08.
518

Werner Lemberg's avatar
   
Werner Lemberg committed
519
520
521
522
	* docs/CHANGES: Updated for 2.0.6 release.
	* docs/TODO: Added "stem3 and counter hints support" to the TODO
	list for the Postscript hinter.
	* docs/BUGS: Closed the AUTOHINT-NO-SBITS bug.
523

David Turner's avatar
   
David Turner committed
524
525
2001-12-19  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
526
527
528
	* include/freetype/cache/ftcache.h: Added comments to indicate that
	some of the exported functions should only be used by applications
	that need to implement custom cache types.
529

Werner Lemberg's avatar
   
Werner Lemberg committed
530
531
532
	* src/truetype/ttgload.c (cur_to_org, org_to_cur): Fixed a nasty bug
	that prevented composites from loading correctly, due to missing
	parentheses around macro parameters.
533

Werner Lemberg's avatar
   
Werner Lemberg committed
534
535
	* src/sfnt/sfobjs.c (SFNT_Load_Face): Make the "post" and "name"
	tables optional to load PCL fonts properly.
536

Werner Lemberg's avatar
   
Werner Lemberg committed
537
538
539
540
541
	* src/truetype/ttgload.c (TT_Load_Glyph), src/base/ftobjs.c
	(FT_Load_Glyph), include/freetype/freetype.h (FT_LOAD_SBITS_ONLY):
	"Fixed" the bug that prevented embedded bitmaps to be loaded when
	the auto-hinter is used.  This actually is a hack but will be enough
	until the internal re-design scheduled for FreeType 2.1.
542

Werner Lemberg's avatar
   
Werner Lemberg committed
543
544
	* src/raster/ftrend1.c (ft_raster1_render): Fixed a nasty outline
	shifting bug in the monochrome renderer.
545

Werner Lemberg's avatar
   
Werner Lemberg committed
546
	* README: Updated version numbers to 2.0.6.
David Turner's avatar
   
David Turner committed
547

Werner Lemberg's avatar
   
Werner Lemberg committed
548
549
550
551
552
2001-12-17  Werner Lemberg  <wl@gnu.org>

	* src/truetype/ttgload.c (load_truetype_glyph): Fix test for invalid
	glyph header.

Werner Lemberg's avatar
   
Werner Lemberg committed
553
554
2001-12-15  Werner Lemberg  <wl@gnu.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
555
	* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Remove compiler warning.
Werner Lemberg's avatar
   
Werner Lemberg committed
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
	* include/freetype/ftcache.h (FTC_Node_Unref): Removed.  It is
	already in ftcmanag.h.
	* src/cache/ftcsbits.c (ftc_sbit_node_load): Remove unused variable
	`gfam'.
	* src/cache/ftcmanag.c (ftc_family_table_alloc,
	* ftc_family_table_free): Use FT_EXPORT_DEF.
	* include/freetype/cache/ftcmanag.h: Updated.
	* src/cache/ftccache.c (ftc_node_destroy): Use FT_EXPORT_DEF.
	* src/cache/ftccmap.c (ftc_cmap_node_init): Remove unused variable
	`cfam'.
	Remove compiler warning.
	(FTC_CMapCache_Lookup): Remove compiler warnings.
	(ftc_cmap_family_init): Ditto.
	(FTC_CMapCache_Lookup): Ditto.

	* builds/unix/configure.ac: Increase `version_info' to 8:0:2.
	* builds/unix/configure: Regenerated.

2001-12-14  Werner Lemberg  <wl@gnu.org>

	* builds/mac/README: Updated.

578
579
2001-12-14  Scott Long  <scott@swiftview.com>

Werner Lemberg's avatar
   
Werner Lemberg committed
580
581
	* src/truetype/ttgload.c (load_truetype_glyph): Fixing crash when
	dealing with invalid fonts (i.e. glyph size < 10 bytes).
582

583
584
2001-12-14  Sam Latinga <slouken@devolution.com>

Werner Lemberg's avatar
   
Werner Lemberg committed
585
586
	* builds/mac/freetype.make: A new Makefile to build with MPW on
	MacOS classic.
587

588
589
2001-12-14  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
590
591
592
593
594
	* src/truetype/ttgload.c (TT_Load_Glyph), src/type1/t1gload.c
	(T1_Load_Glyph), src/cid/cidgload.c (CID_Load_Glyph),
	src/cff/cffgload.c (CFF_Load_Glyph): Fixed a serious bug common to
	all font drivers (the advance width was never hinted when it
	should).
595

Werner Lemberg's avatar
   
Werner Lemberg committed
596
597
598
	* include/freetype/freetype.h (FREETYPE_PATCH): New macro.
	* src/base/ftdbgmem.c (debug_mem_dummy) [!FT_DEBUG_MEMORY]: Don't
	use `extern' keyword.
599

600
601
2001-12-12  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
602
603
604
605
606
607
	* src/pshint/pshglob.c (psh_blues_scale_zones, psh_blues_snap_stem
	psh_globals_new): Adding correct BlueScale/BlueShift support, plus
	family blues processing.
	* src/pshint/pshglob.h (PSH_BluesRec): Updated.

	Started adding support for the Postscript hinter in the CFF module.
608

Werner Lemberg's avatar
   
Werner Lemberg committed
609
610
611
	* src/cff/cffgload.c: Include FT_INTERNAL_POSTSCRIPT_HINTS_H.
	(CFF_Parse_CharStrings): Implement it.
	* src/cff/cffgload.h: Updated.
612

Werner Lemberg's avatar
   
Werner Lemberg committed
613
614
615
616
2001-12-12  Werner Lemberg  <wl@gnu.org>

	* builds/unix/freetype2.m4: Some portability fixes.

Werner Lemberg's avatar
   
Werner Lemberg committed
617
618
619
620
2001-12-11  Jouk Jansen  <joukj@hrem.stm.tudelft.nl>

	* src/base/descrip.mms (OBJS): Add ftdebug.obj.

Werner Lemberg's avatar
   
Werner Lemberg committed
621
622
623
2001-12-11  Werner Lemberg  <wl@gnu.org>

	* src/sfnt/ttload.c (TT_Load_Generic_Header): Typos.
624

Werner Lemberg's avatar
   
Werner Lemberg committed
625
2001-12-11  David Turner  <david@freetype.org>
626

Werner Lemberg's avatar
   
Werner Lemberg committed
627
628
	* builds/unix/freetype-config.in: Modified the script to prevent
	passing "-L/usr/lib" to gcc.
629

Werner Lemberg's avatar
   
Werner Lemberg committed
630
	* docs/FTL.TXT: Simple fix (change "LICENSE.TXT" to "FTL.TXT").
631

632
	* builds/unix/freetype2.m4: New file for checking configure paths.
Werner Lemberg's avatar
   
Werner Lemberg committed
633
634
	We need to install it in $(prefix)/share/aclocal/freetype2.m4 but I
	didn't modify builds/unix/install.mk yet.
635

Werner Lemberg's avatar
   
Werner Lemberg committed
636
637
	* INSTALL: Updated the instructions to build shared libraries with
	Jam.  They were simply wrong.
638

Werner Lemberg's avatar
   
Werner Lemberg committed
639
640
641
	* src/base/fttrigon.c (FT_Cos): Fixed a small bug that caused
	slightly improper results for `FT_Cos' and `FT_Sin' (example:
	FT_Sin(0) == -1!).
642

Werner Lemberg's avatar
   
Werner Lemberg committed
643
2001-12-11  Detlef Wrkner  <TetiSoft@apg.lahn.de>
644

Werner Lemberg's avatar
   
Werner Lemberg committed
645
646
	* include/freetype/internal/ftstream.h (GET_LongLE, GET_ULongLE):
	Fixed incorrect argument types.
647

648
649
2001-12-10  Francesco Zappa Nardelli  <Francesco.Zappa.Nardelli@ens.fr>

Werner Lemberg's avatar
   
Werner Lemberg committed
650
651
	* src/pcf/pcfdriver.c (PCF_Init_Face): Allow Xft to use PCF fonts
	by setting the "face->metrics.max_advance" correctly.
652

653
654
2001-12-07  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
655
656
	* include/freetype/cache/ftccmap.h, src/cache/ftccmap.c: Added new
	charmap cache.
Werner Lemberg's avatar
   
Werner Lemberg committed
657
	* src/cache/ftcache.c: Updated.
658

Werner Lemberg's avatar
   
Werner Lemberg committed
659
660
	* src/autohint/ahhint.c (ah_hinter_hint_edges): s/UNUSED/FT_UNUSED/.

661
662
2001-12-06  Leonard Rosenthol  <leonardr@lazerware.com>

Werner Lemberg's avatar
   
Werner Lemberg committed
663
664
665
666
	Added support for reading .dfont files on Mac OS X.  Also added a
	new routine which looks up a given font by name in the Mac OS and
	returns the disk file where it resides.

Werner Lemberg's avatar
   
Werner Lemberg committed
667
668
	* src/base/ftmac.c: Include <Files.h> and <TextUtils.h>.
	(is_dfont): New auxiliary function.
Werner Lemberg's avatar
   
Werner Lemberg committed
669
670
671
672
673
674
	(FT_New_Face_From_dfont): New function.
	(FT_GetFile_From_Mac_Name): New exported function.
	(FT_New_Face): Updated.
	* include/freetype/ftmac.h: Updated.

2001-12-06  David Turner  <david@freetype.org>
675

Werner Lemberg's avatar
   
Werner Lemberg committed
676
	* src/cache/Jamfile, src/cache/rules.mk: Updated.
677

Werner Lemberg's avatar
Werner Lemberg committed
678
2001-12-06  Werner Lemberg  <wl@gnu.org>
679

Werner Lemberg's avatar
Werner Lemberg committed
680
	* INSTALL: Small update.
681

Werner Lemberg's avatar
Werner Lemberg committed
682
2001-12-05  David Turner  <david@freetype.org>
683

Werner Lemberg's avatar
   
Werner Lemberg committed
684
685
	* src/base/ftglyph.c (FT_Glyph_To_Bitmap): Re-ordered code for
	debugging purposes.
Werner Lemberg's avatar
   
Werner Lemberg committed
686
	Comment out use of `origin'.
687

Werner Lemberg's avatar
   
Werner Lemberg committed
688
689
690
691
	* src/smooth/ftsmooth.c (ft_smooth_render): Fixed a nasty hidden bug
	where outline shifting wasn't correctly undone after bitmap
	rasterization.  This created problems with certain glyphs (like '"'
	of certain fonts) and the cache system.
692

Werner Lemberg's avatar
   
Werner Lemberg committed
693
694
695
	* src/pshinter/pshalgo1.c (psh1_hint_table_init): Fix typo.
	* src/pshinter/pshalgo2.c (psh2_hint_table_init): Fix typo.
	(ps2_hints_apply): Small fix.
696

David Turner's avatar
   
David Turner committed
697
698
2001-12-05  David Turner  <david@freetype.org>

Werner Lemberg's avatar
Werner Lemberg committed
699
700
	* src/pshinter/pshalgo2.c (psh2_hint_table_init),
	src/pshinter/pshalgo1.c (psh1_hint_table_init): Removed compiler
Werner Lemberg's avatar
   
Werner Lemberg committed
701
	warnings.
David Turner's avatar
   
David Turner committed
702

Werner Lemberg's avatar
   
Werner Lemberg committed
703
704
705
706
707
	* include/freetype/ftcache.h, include/freetype/cache/*, src/cache/*:
	Yet another massive rewrite of the caching sub-system in order to
	both increase performance and allow simpler cache sub-classing.  As
	an example, the code for the image and sbit caches is now much
	simpler.
David Turner's avatar
   
David Turner committed
708

Werner Lemberg's avatar
Werner Lemberg committed
709
710
	I still need to update the documentation in
	www/freetype2/docs/cache.html to reflect the new design though.
David Turner's avatar
   
David Turner committed
711

Werner Lemberg's avatar
   
Werner Lemberg committed
712
713
714
715
	* include/freetype/config/ftheader.h (FT_CACHE_CHARMAP_H): New
	macro.
	(FT_CACHE_INTERNAL_CACHE_H): Updated.

Werner Lemberg's avatar
   
Werner Lemberg committed
716
2001-12-05  David Krause  <freetype@davidkrause.com>
717

Werner Lemberg's avatar
   
Werner Lemberg committed
718
	* docs/license.txt: s/X Windows/X Window System/.
719

Werner Lemberg's avatar
   
Werner Lemberg committed
720
2001-12-04  Werner Lemberg  <wl@gnu.org>
721

Werner Lemberg's avatar
   
Werner Lemberg committed
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
	* src/raster/ftraster.c: Fix definition condition of MEM_Set().
	* src/smooth/ftgrays.c (M_Y): Change value to 192.
	* src/base/ftdbgmem.c (ft_mem_table_destroy): Fix printf() parameter.
	Remove unused variable.
	* src/cache/ftcimage.c (ftc_image_node_init,
	ftc_image_node_compare): Remove unused variables.
	* src/cache/ftcsbits.c (ftc_sbit_node_weight): Remove unused
	variable.
	* src/raster/ftraster.c (MEM_Set): Move definition down to avoid
	compiler warning.
	* src/autohint/ahhint.c (ah_hinter_hint_edges): Use UNUSED() to
	avoid compiler warnings.
	* src/pcf/pcfread.c (tableNames): Use `const'.
	(pcf_read_TOC): Change counter name to avoid compiler warning.
	Use `const'.
	* src/pshinter/pshrec.c (ps_hints_close): Remove redundant
	declaration.
	* src/pshinter/pshalgo1.c (psh1_hint_table_init): Rename variables
	to avoid shadowing.
	* src/pshinter/pshalgo2.c (psh2_hint_table_activate_mask): Ditto.
	* src/type1/t1objs.h: Remove double declarations of `T1_Size_Init()'
	and `T1_Size_Done()'.

2001-11-20  Antoine Leca  <antoineleca@multimania.com>
746

Werner Lemberg's avatar
   
Werner Lemberg committed
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
	* include/freetype/ttnameid.h: Added some new Microsoft language
	codes and LCIDs as found in MSDN (Passport SDK).  Also added
	comments about the meaning of bit 57 of the `OS/2' table
	(TT_UCR_SURROGATES) which (with OpenType v.1.3) now means "there is
	a character beyond 0xFFFF in this font".  Thanks to Detlef Wrkner
	<TetiSoft@apg.lahn.de> for noticing this.

2001-11-20  David Turner  <david@freetype.org>

	* src/pshinter/{pshalgo2.c, pshalgo1.c}: Fixed stupid bug in sorting
	routine that created nasty alignment artefacts.

	* src/pshinter/pshrec.c, tests/gview.c: Debugging updates.

	* src/smooth/ftgrays.c: De-activated experimental gamma support.
	Apparently, `optimal' gamma tables depend on the monitor type,
	resolution and general karma, so it's better to compute them outside
	of the rasterizer itself.
	(gray_convert_glyph): Use `volatile' keyword.

2001-10-29  David Turner  <david@freetype.org>

	Adding experimental `gamma' support.  This produces smoother glyphs
	at small sizes for very little cost.

	* src/smooth/ftgrays.c (grays_init_gamma): New function.
	(gray_raster_new): Use it.

	Various fixes to the auto-hinter.  They merely improve the output of
	sans-serif fonts.  Note that there are still problems with serifed
	fonts and composites (accented characters).

	* src/autohint/ahglyph.c (ah_outline_load,
	ah_outline_link_segments): Implement it.
	Fix typos.
	(ah_outline_save, ah_outline_compute_segments): Fix typos.
	* src/autohint/ahhint.c (ah_align_serif_edge): New argument
	`vertical'.  Implement improvement.
	(ah_hint_edges_3, ah_hinter_hint_edges): Implement it.
	Fix typos.
	(ah_hinter_align_strong_points, ah_hinter_align_weak_points): Fix
	typos.
	(ah_hinter_load): Set `ah_debug_hinter' if DEBUG_HINTER is defined.
	* src/autohint/ahmodule.c: Implement support for DEBUG_HINTER macro.
	* src/autohint/ahtypes.h: Ditto.
	(AH_Hinter): Remove `disable_horz_edges' and `disable_vert_edges'
	(making them global as `ah_debug_disable_horz' and
	`ah_debug_disable_vert').
	Fix typos.

	* tests/gview.c: Updated the debugging glyph viewer to show the
	hints generated by the "autohint" module.

2001-10-27  David Turner  <david@freetype.org>

	* src/cache/ftcchunk.c (ftc_chunk_cache_lookup): Fixed a bug that
803
804
	considerably lowered the performance of the abstract chunk cache.

Werner Lemberg's avatar
   
Werner Lemberg committed
805
2001-10-26  David Turner  <david@freetype.org>
806

Werner Lemberg's avatar
   
Werner Lemberg committed
807
808
809
810
	* include/freetype/ftcache.h, include/freetype/cache/*.h,
	src/cache/*.c: Major re-design of the cache sub-system to provide
	better performance as well as an "Acquire"/"Release" API.  Seems to
	work well here, but probably needs a bit more testing.
811

812
813
2001-10-26  Leonard Rosenthol  <leonardr@lazerware.com>

Werner Lemberg's avatar
   
Werner Lemberg committed
814
815
	* builds/mac/README: Updated to reflect my taking over the project
	and that is now being actively maintained.
816

Werner Lemberg's avatar
   
Werner Lemberg committed
817
818
	* src/base/ftmac.c (parse_fond): Applied patches from Paul Miller
	<paulm@profoundeffects.com> to support loading a face other than the
819
	first from a FOND resource.
Werner Lemberg's avatar
   
Werner Lemberg committed
820
	(FT_New_Face_From_FOND): Updated.
821

822
823
2001-10-25  Leonard Rosenthol  <leonardr@lazerware.com>

Werner Lemberg's avatar
   
Werner Lemberg committed
824
825
826
	* builds/mac/ftlib.prj: Update of CodeWarrior project file for Mac
	OS for latest version (7) of CWPro and for recent changes to the FT
	source tree.
827

828
829
2001-10-25  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
830
	* include/freetype/config/ftoption.h: Updated comments to explain
831
	precisely how to use project-specific macro definitions without
Werner Lemberg's avatar
   
Werner Lemberg committed
832
	modifying this file manually.
833

Werner Lemberg's avatar
   
Werner Lemberg committed
834
	(FT_CONFIG_FORCE_INT64): Define.
835

Werner Lemberg's avatar
   
Werner Lemberg committed
836
	(FT_DEBUG_MEMORY): New macro.
837

Werner Lemberg's avatar
   
Werner Lemberg committed
838
2001-10-24  Tom Kacvinsky  <tkacvins@freetype.org>
839

Werner Lemberg's avatar
   
Werner Lemberg committed
840
	* builds/unix/ftsystem.c (FT_New_Memory): Added a missing `{'.
841

842
843
2001-10-23  David Turner  <david@freetype.org>

844
	* include/freetype/internal/ftmemory.h, src/base/ftdbgmem.c:
Werner Lemberg's avatar
   
Werner Lemberg committed
845
846
847
	Improvements to the memory debugger to report more information in
	case of errors.  Also, some allocations that occured through REALLOC
	couldn't be previously catched correctly.
848

Werner Lemberg's avatar
   
Werner Lemberg committed
849
850
851
852
	* src/autohint/ahglyph.c (ah_outline_compute_segments,
	ah_outline_compute_edges), src/raster/ftraster.c (ft_black_new),
	src/smooth/ftgrays.c (gray_render_span, gray_raster_new): Replaced
	liberal uses of memset() by the MEM_Set() macro.
853

Werner Lemberg's avatar
   
Werner Lemberg committed
854
2001-10-23  David Turner  <david@freetype.org>
855

Werner Lemberg's avatar
   
Werner Lemberg committed
856
857
	* src/raster/ftraster.c (Update): Removed to be inlined in ...
	(Sort): Updated.
858

859
860
2001-10-22  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
861
862
863
864
865
866
	* builds/unix/ftsystem.c (FT_New_Memory, FT_Done_Memory),
	builds/vms/ftsystem.c (FT_New_Memory, FT_Done_Memory),
	builds/amiga/ftsystem.c (FT_New_Memory, FT_Done_Memory),
	src/base/ftdbgmem.c: Updated the memory debugger and
	platform-specific implementations of `ftsystem' in order to be able
	to debug memory allocations on Unix, VMS and Amiga too!
867

Werner Lemberg's avatar
   
Werner Lemberg committed
868
869
870
871
872
873
874
	* src/pshinter/pshalgo2.c (psh2_hint_table_record_mask): Removed
	some bogus warnings.

	* include/freetype/internal/ftmemory.h, src/base/ftdbgmem.c:
	Modified the debugging memory manager to report the location (source
	file name + line number) where leaked memory blocks are allocated in
	the source file.
David Turner's avatar
David Turner committed
875

Werner Lemberg's avatar
   
Werner Lemberg committed
876
877
878
879
	* src/base/ftdbgmem.c: New debugging memory manager.  You must
	define the FT_DEBUG_MEMORY macro in "ftoption.h" to enable it.  It
	will record every memory block allocated and report simple errors
	like memory leaks and double deletes.
880

Werner Lemberg's avatar
   
Werner Lemberg committed
881
882
883
	* src/base/Jamfile: Include ftdbgmem.
	* src/base/rules.mk: Ditto.
	* src/base/ftbase.c: Include ftdbgmem.c.
884

Werner Lemberg's avatar
   
Werner Lemberg committed
885
886
	* include/freetype/config/ftoption.h: Added the FT_DEBUG_MEMORY
	macro definition.
887

Werner Lemberg's avatar
   
Werner Lemberg committed
888
	* src/base/ftsystem.c (FT_New_Memory, FT_Done_Memory): Modified the
889
	base component to use the debugging memory manager when the macro
Werner Lemberg's avatar
   
Werner Lemberg committed
890
	FT_DEBUG_MEMORY is defined.
891

892
2001-10-21  Tom Kacvinsky  <tkacvins@freetype.org>
893
894
895
896
897
898

	* src/cff/cffload.c (CFF_Done_Font): Free subfonts array only if
	we are working with a CID keyed CFF font.  Otherwise, a variable
	that was never allocated memory might freed.  This is a correction
	to the previous patch for freeing subfonts.

899
2001-10-21  Tom Kacvinsky  <tkacvins@freetype.org>
900
901
902
903

	* src/cff/cffload.c (CFF_Done_Font): Free the subfonts array to
	avoid a memory leak.

Werner Lemberg's avatar
   
Werner Lemberg committed
904
2001-10-21  David Turner  <david@freetype.org>
905
906

	* src/pshinter/pshalgo2.c, src/pshinter/pshalgo1.c,
Werner Lemberg's avatar
   
Werner Lemberg committed
907
908
	src/pshinter/pshglob.c: Removing compiler warnings in pedantic modes
	(in multi-object compilation mode, mainly).
909

910
2001-10-20  Tom Kacvinsky  <tkacvins@freetype.org>
911

912
913
914
915
	* src/type1/t1load.c (parse_encoding): Add a test to make sure
	that custom encodings (i.e., neither StandardEncoding nor
	ExpertEncoding) are not loaded twice when the Type 1 font is
	synthetic.
916
917
918
919
920
921
922
923

	* src/type1/t1load.c (parse_font_name, parse_subrs): Added a test
	for when loading synthetic fonts to make sure that the font name
	and subrotuines are not loaded twice.  This is to remove a memory
	leak that occured because the original memory blocks for these
	objects were not deallocated when the objects were parsed the
	second time.

Werner Lemberg's avatar
   
Werner Lemberg committed
924
2001-10-19  David Turner  <david@freetype.org>
925

Werner Lemberg's avatar
   
Werner Lemberg committed
926
927
928
	* src/smooth/ftgrays.c, src/pshinter/pshglob.h,
	src/pshinter/pshrec.c, src/pshinter/pshalgo2.c: Getting rid of
	compiler warnings.
929

Werner Lemberg's avatar
   
Werner Lemberg committed
930
931
	* src/pshinter/module.mk, src/pshinter/rules.mk: Adding control
	files to build the PostScript hinter with the "old" build system.
932

Werner Lemberg's avatar
   
Werner Lemberg committed
933
2001-10-19  Jacob Jansen  <joukj@hrem.stm.tudelft.nl>
934

Werner Lemberg's avatar
   
Werner Lemberg committed
935
	* descrip.mms, src/pshinter/descrip.mms: Updates to the VMS build
936
937
	files.

David Turner's avatar
David Turner committed
938
939
2001-10-18  David Turner  <david@freetype.org>

Werner Lemberg's avatar
   
Werner Lemberg committed
940
	* src/psnames/pstables.h, src/tools/glnames.py: Rewrote the
Werner Lemberg's avatar
   
Werner Lemberg committed
941
	"glnames.py" script used to generate the "pstables.h" header file.
Werner Lemberg's avatar
   
Werner Lemberg committed
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
	The old one contained a serious bug that made FreeType return
	incorrect glyph names for certain glyphs.

	* src/truetype/ttdriver.c (Set_Char_Sizes): Changing computation of
	pixel size from character size to use rounding.  This is an
	experiment to see whether this gives values similar to Windows for
	scaled ascent/descent/etc.

	* src/base/ftcalc.c (FT_Div64by32): Changed the implementation
	slightly since the original code was mis-compiled on Mac machines
	using the MPW C compiler.

	* src/base/ftobjs.c (FT_Realloc): When a memory block was grown
	through FT_Realloc(), the new bytes were not set to 0, which created
	some strange bugs in the PostScript hinter.
	(destroy_face): Don't deallocate unconditionally.

	* src/cid/cidgload.c (CID_Compute_Max_Advance, CID_Load_Glyph):
	Adding support to new PostScript hinter.

	* include/freetype/internal/psglobal.h,
	include/freetype/internal/pshints.h,
	include/freetype/config/ftmodule.h, src/pshinter/Jamfile,
	src/pshinter/pshalgo.h, src/pshinter/pshalgo1.h,
	src/pshinter/pshalgo1.c, src/pshinter/pshalgo2.h,
	src/pshinter/pshalgo2.c, src/pshinter/pshglob.h,
	src/pshinter/pshglob.c, src/pshinter/pshinter.c,
	src/pshinter/pshmod.c, src/pshinter/pshmod.h, src/pshinter/pshrec.c,
	src/pshinter/pshrec.h: Adding new PostScript hinter module.

	* include/freetype/internal/ftobjs.h,
	include/freetype/internal/internal.h,
	include/freetype/internal/psaux.h,
	include/freetype/internal/t1types.h, src/psaux/psobjs.c,
	src/psaux/psobjs.h, src/psaux/t1decode.h, src/psaux/t1decode.c,
	src/type1/t1driver.c, src/type1/t1gload.c, src/type1/t1objs.c,
	src/type1/t1objs.h: Updates to use the new PostScript hinter.

	* tests/Jamfile, tests/gview.c: Adding a new glyph hinting
	viewer/debugger to the source tree.  Note that you will _not_ be
	able to compile it since it depends on an unavailable graphics
	library named "Nirvana" to render vector images.
David Turner's avatar
David Turner committed
984

985
2001-10-17  David Turner  <david@freetype.org>
986

Werner Lemberg's avatar
   
Werner Lemberg committed
987

David Turner's avatar
David Turner committed
988
	* Version 2.0.5 released.
David Turner's avatar
David Turner committed
989
990
	=========================

Werner Lemberg's avatar
   
Werner Lemberg committed
991

992
	* include/freetype/freetype.h, include/internal/ftobjs.h,
Werner Lemberg's avatar
   
Werner Lemberg committed
993
994
995
996
997
998
999
	src/base/ftobjs.c, src/type1/t1driver.c: Adding a new function named
	'FT_Get_Postscript_Name' to retrieve the PostScript name of a given
	font.  Should work with all formats except pure CFF/CEF fonts (this
	will be added soon).

	* src/cid/cidriver (cid_get_postscript_name): New function.
	(CID_Get_Interface): Handle `postscript_name' interface.
1000