1 |
2005-03-15 David Turner <david@freetype.org> |
2005-03-15 David Turner <david@freetype.org> |
2 |
|
|
3 |
* src/bdf/bdflib.c: removing compiler warnings |
* src/bdf/bdflib.c: Remove compiler warnings. |
4 |
|
(hash_rehash, hash_init): Don't call FT_MEM_ZERO. |
5 |
|
(_bdf_list_t): Add `memory' field. |
6 |
|
(_bdf_list_init, _bdf_list_done, _bdf_list_ensure): New functions. |
7 |
|
(_bdf_shift, _bdf_join): Rename to... |
8 |
|
(_bdf_list_shift, _bdf_list_join): This. |
9 |
|
(_bdf_split): Renamed to... |
10 |
|
(_bdf_list_split): This. Use new functions. |
11 |
|
(bdf_internal_readstream): Removed. |
12 |
|
(NO_SKIP): New macro. |
13 |
|
(_bdf_readstream): Rewritten. |
14 |
|
(bdf_create_property, _bdf_add_comment): Improve allocation. |
15 |
|
(_bdf_set_default_spacing, _bdf_parse_glyphs): Updated. Improve |
16 |
|
allocation. |
17 |
|
(_bdf_parse_properties, _bdf_parse_start): Updated. |
18 |
|
(bdf_load_font): Updated to use new functions. |
19 |
|
|
20 |
|
* src/type1/t1parse.c (check_type1_format): New function. |
21 |
|
(T1_New_Parser): Use it to check font header before allocating |
22 |
|
anything on the heap. |
23 |
|
|
24 |
|
* src/type42/t42parse.c (t42_parser_init): Modify functions to check |
25 |
|
the font header before allocating anything on the heap. |
26 |
|
|
27 |
|
* include/freetype/internal/ftmemory.h (FT_ARRAY_MAX, |
28 |
|
FT_ARRAY_CHECK): New macros. |
29 |
|
|
30 |
|
* src/base/ftstream.c (FT_Stream_TryRead): New function. |
31 |
|
* include/freetype/internal/ftstream.h: Updated. |
32 |
|
|
33 |
|
* src/pcf/pcfread.c (pcf_read_TOC), src/pcf/pcfutil.c |
34 |
|
(BitOrderInvert, TwoByteSwap, FourByteSwap): Minor fixes and |
35 |
|
simplifications. Try to protect the PCF driver from doing stupid |
36 |
|
things with broken fonts. |
37 |
|
|
38 |
|
* src/lzw/ftlzw.c (FT_Stream_OpenLZW): Check the LZW header before |
39 |
|
doing anything else. This avoids unnecessary heap allocations |
40 |
|
(400KByte of heap memory for the LZW decoder). |
41 |
|
|
42 |
* docs/CHANGES: updating |
* src/gzip/ftgzip.c (FT_Stream_OpenGZip): Ditto for the gzip |
43 |
|
decoder, although the code savings are smaller. |
|
* src/type1/t1parse.c (T1_New_Parser), src/type42/t42parse.c |
|
|
(t42_parser_init): modifying functions to check the font header before |
|
|
allocating anything on the heap. |
|
|
|
|
|
* internal/freetype/ftmemory.h: introducing the new macros FT_ARRAY_MAX |
|
|
and FT_ARRAY_CHECK |
|
|
|
|
|
* src/pcf/pcfread.c, src/pcf/pcfutil.c: minor fixes and simplifications. |
|
|
try to protect the PCF driver from doing stupid things with broken fonts. |
|
|
|
|
|
* src/lzw/ftlzw.c (FT_Stream_OpenLZW): modified the function to check |
|
|
the LZW header before doing anything else. This helps avoid un-necessary |
|
|
heap allocations (400 Kb of heap memory for the LZW decoder ! Oh my !) |
|
44 |
|
|
45 |
* src/gzip/ftgzip.c (FT_Stream_OpenGZip): ditto for the .gz decoder, |
* docs/CHANGES: Updated. |
|
though the code savings is smaller. |
|
46 |
|
|
47 |
2005-03-10 David Turner <david@freetype.org> |
2005-03-10 David Turner <david@freetype.org> |
48 |
|
|