20#include FT_INTERNAL_DEBUG_H
21#include FT_INTERNAL_OBJECTS_H
22#include FT_INTERNAL_STREAM_H
36#define FT_COMPONENT trace_cidparse
50#define STARTDATA "StartData"
51#define STARTDATA_LEN ( sizeof ( STARTDATA ) - 1 )
53#define SFNTS_LEN ( sizeof ( SFNTS ) - 1 )
69 psaux->ps_parser_funcs->init( &
parser->root, 0, 0,
memory );
80 "%!PS-Adobe-3.0 Resource-CIDFont", 31 ) )
126 read_len =
FT_MIN( read_len, stream_len );
144 else if (
p[1] ==
's' &&
154 FT_TRACE2((
"cid_parser_new: no `StartData' keyword found\n" ));
175 ps_len =
offset - base_offset;
181 parser->postscript_len = ps_len;
210 if (
cur[0] ==
'S' &&
221 FT_ERROR((
"cid_parser_new: invalid length of hex data\n" ));
230 else if (
cur[1] ==
's' &&
233 FT_TRACE2((
"cid_parser_new: cannot handle Type 11 fonts\n" ));
cid_parser_new(CID_Parser *parser, FT_Stream stream, FT_Memory memory, PSAux_Service psaux)
cid_parser_done(CID_Parser *parser)
#define cid_parser_skip_PS_token(p)
FT_BEGIN_HEADER struct CID_Parser_ CID_Parser
#define cid_parser_skip_spaces(p)
#define FT_ERROR(varformat)
#define FT_TRACE2(varformat)
#define FT_MEM_MOVE(dest, source, count)
#define FT_FRAME_ENTER(size)
#define FT_FRAME_RELEASE(bytes)
#define FT_STREAM_SEEK(position)
#define FT_FRAME_EXTRACT(size, bytes)
#define FT_STREAM_READ(buffer, count)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
GLuint GLuint GLuint GLuint arg1
GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg2
static char memory[1024 *256]