freetype2/src/type42
Werner Lemberg ef512e3ec6 Add support for the hexadicimal representation of binary data
started with `StartData' in CID-keyed Type 1 fonts.

* include/freetype/internal/t1types.h (CID_FaceRec): Add new
members `binary_data' and `cid_stream'.

* src/cid/cidload.c (cid_read_subrs): Use `face->cid_stream'.
(cid_hex_to_binary): New auxiliary function.
(cid_face_open): Add new argument `face_index' to return quickly
if less than zero.  Updated all callers.
Call `cid_hex_to_binary', then open and assign memory stream to
`face->cid_stream' if `parser->binary_length' is non-zero.
* src/cid/cidload.h: Updated.

* src/cid/cidobjs.c (cid_face_done): Free `binary_data' and
`cid_stream'.

* src/cid/cidparse.c (cid_parser_new): Check arguments to
`StartData' and set parser->binary_length accordingly.
* src/cid/cidparse.h (CID_Parser): New member `binary_length'.

* src/cid/cidgload.c (cid_load_glyph): Use `face->cid_stream'.

* docs/CHANGES: Updated.


include/freetype/config/ftstdlib.h (ft_atoi): Replaced with...
(ft_atol): This.
* src/base/ftdbgmem.c: s/atol/ft_atol/.
* src/type42/t42drivr.c: s/ft_atoi/ft_atol/.
2004-01-23 19:52:40 +00:00
..
Jamfile 2002-11-05 David Turner <david@freetype.org> 2002-11-06 22:32:54 +00:00
descrip.mms * src/type42/t42drivr.c, src/type42/t42drivr.h, src/type42/t42parse.c, 2002-06-07 07:23:06 +00:00
module.mk Initial revision 2002-05-15 06:16:57 +00:00
rules.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
t42drivr.c Add support for the hexadicimal representation of binary data 2004-01-23 19:52:40 +00:00
t42drivr.h * src/cache/ftccache.c (ftc_node_hash_unlink, ftc_node_hash_link) 2002-06-08 06:47:18 +00:00
t42error.h * src/tools/glnames.py: Updated to AGL 2.0. 2003-06-23 19:26:53 +00:00
t42objs.c * include/freetype/internal/bdftypes.h: removed obsolete header 2003-10-29 21:43:52 +00:00
t42objs.h * include/freetype/internal/bdftypes.h: removed obsolete header 2003-10-29 21:43:52 +00:00
t42parse.c * include/freetype/internal/psaux.h (PS_TableRec): Change type 2003-12-09 02:12:14 +00:00
t42parse.h Completely revised Type 42 parser. It now handles both fonts 2003-10-16 15:48:39 +00:00
t42types.h * src/base/fttrigon.c, src/base/ftgloadr.c: Inlude 2003-12-26 07:26:08 +00:00
type42.c * src/cache/ftccache.c (ftc_node_hash_unlink, ftc_node_hash_link) 2002-06-08 06:47:18 +00:00