freetype2/src/psaux
Werner Lemberg 95867077e8 * src/cid/cidload.c (cid_face_open): Always allocate
face->cid_stream so that we can deallocate it safely.


Make the PS parser more tolerant w.r.t. non-standard font data.  In
general, an error is only reported in case of a syntax error; a
wrong type is now simply ignored (if possible).  To be independent
of the order of various MM-specific keywords, the parse_shared_dict
routine has been removed -- the PS parser is now capable to skip
this data.  It no longer fails on parsing e.g.

  dup /WeightVector exch def

Since the token following /WeightVector isn't `[' (starting an
array) it is simply ignored.

* include/freetype/fterrdef.h: Define `FT_Err_Ignore' (0xA2) as a
new internal error value.

* src/type1/t1load.c (parse_blend_axis_types,
parse_blend_design_positions, parse_blend_design_map): Return
T1_Err_Ignore if no proper array is following the keyword.
(parse_weight_vector): Use T1_ToTokenArray, initializing `blend'
structure, if necessary.
Return T1_Err_Ignore if no proper array is following the keyword.
(parse_shared_dict): Removed.
(parse_encoding): Set parser->root.error to return T1_Err_Ignore
if no result can be obtained.
Check for errors before accessing `elements' array.
(t1_keywords): Remove /shareddict.
(parse_dict): Reset error if t1_load_keyword returns T1_Err_Ignore.
Set keyword_flag only in case of success.
Check error code if skipping an unrecognized token.
(T1_Open_Face) [!T1_CONFIG_OPTION_NO_MM_SUPPORT]: Call T1_Done_Blend
if blend commands haven't set up a proper MM font.

* src/psaux/psobjs.c (ps_parser_load_field_table): Remove special
code for synthetic fonts.
Return PSaux_Err_Ignore if no proper value has been found.
2004-02-12 08:33:20 +00:00
..
Jamfile 2002-11-05 David Turner <david@freetype.org> 2002-11-06 22:32:54 +00:00
descrip.mms * src/psaux/t1cmap.c: s/index/idx/. 2002-03-31 11:18:15 +00:00
module.mk Added copyright messages to all Makefiles. 2000-10-17 03:38:43 +00:00
psaux.c * src/psaux/t1cmap.c: s/index/idx/. 2002-03-31 11:18:15 +00:00
psauxerr.h Formatting. 2001-06-19 23:03:41 +00:00
psauxmod.c Heavy modification of the PS parser to handle comments and strings 2003-10-07 05:49:41 +00:00
psauxmod.h finishing function header formatting 2001-06-28 17:49:10 +00:00
psobjs.c * src/cid/cidload.c (cid_face_open): Always allocate 2004-02-12 08:33:20 +00:00
psobjs.h Heavy modification of the PS parser to handle comments and strings 2003-10-07 05:49:41 +00:00
rules.mk Completely revised FreeType's make management. 2003-06-09 04:46:30 +00:00
t1cmap.c * include/freetype/internal/bdftypes.h: removed obsolete header 2003-10-29 21:43:52 +00:00
t1cmap.h Updated copyright years. 2003-09-30 07:00:42 +00:00
t1decode.c * src/cff/cffgload.c (cff_operator_seac): Fix magnitude of 2004-02-01 00:49:56 +00:00
t1decode.h Updated copyright years. 2003-09-30 07:00:42 +00:00