00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __CIDPARSE_H__
00020 #define __CIDPARSE_H__
00021
00022
00023 #include <ft2build.h>
00024 #include FT_INTERNAL_TYPE1_TYPES_H
00025 #include FT_INTERNAL_STREAM_H
00026 #include FT_INTERNAL_POSTSCRIPT_AUX_H
00027
00028
00029 FT_BEGIN_HEADER
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061 typedef struct CID_Parser_
00062 {
00063 PS_ParserRec root;
00064 FT_Stream stream;
00065
00066 FT_Byte* postscript;
00067 FT_Long postscript_len;
00068
00069 FT_ULong data_offset;
00070
00071 FT_Long binary_length;
00072
00073 CID_FaceInfo cid;
00074 FT_Int num_dict;
00075
00076 } CID_Parser;
00077
00078
00079 FT_LOCAL( FT_Error )
00080 cid_parser_new( CID_Parser* parser,
00081 FT_Stream stream,
00082 FT_Memory memory,
00083 PSAux_Service psaux );
00084
00085 FT_LOCAL( void )
00086 cid_parser_done( CID_Parser* parser );
00087
00088
00089
00090
00091
00092
00093
00094
00095 #define cid_parser_skip_spaces( p ) \
00096 (p)->root.funcs.skip_spaces( &(p)->root )
00097 #define cid_parser_skip_PS_token( p ) \
00098 (p)->root.funcs.skip_PS_token( &(p)->root )
00099
00100 #define cid_parser_to_int( p ) (p)->root.funcs.to_int( &(p)->root )
00101 #define cid_parser_to_fixed( p, t ) (p)->root.funcs.to_fixed( &(p)->root, t )
00102
00103 #define cid_parser_to_coord_array( p, m, c ) \
00104 (p)->root.funcs.to_coord_array( &(p)->root, m, c )
00105 #define cid_parser_to_fixed_array( p, m, f, t ) \
00106 (p)->root.funcs.to_fixed_array( &(p)->root, m, f, t )
00107 #define cid_parser_to_token( p, t ) \
00108 (p)->root.funcs.to_token( &(p)->root, t )
00109 #define cid_parser_to_token_array( p, t, m, c ) \
00110 (p)->root.funcs.to_token_array( &(p)->root, t, m, c )
00111
00112 #define cid_parser_load_field( p, f, o ) \
00113 (p)->root.funcs.load_field( &(p)->root, f, o, 0, 0 )
00114 #define cid_parser_load_field_table( p, f, o ) \
00115 (p)->root.funcs.load_field_table( &(p)->root, f, o, 0, 0 )
00116
00117
00118 FT_END_HEADER
00119
00120 #endif
00121
00122
00123