9f95babf3e
src/type42/t42parse.h, src/type42/t42objs.h, src/type42/t42objs.c, src/type42/type42.c: updated the Type42 driver by splitting it into several files since it makes the code easier to read and maintain. Also fixed the bug that prevented the correct display of fonts with "ftview"
67 lines
1.4 KiB
C
67 lines
1.4 KiB
C
#ifndef __TYPE42_PARSE_H__
|
|
#define __TYPE42_PARSE_H__
|
|
|
|
#include "t42objs.h"
|
|
#include FT_INTERNAL_POSTSCRIPT_AUX_H
|
|
|
|
FT_BEGIN_HEADER
|
|
|
|
typedef struct T42_ParserRec_
|
|
{
|
|
PS_ParserRec root;
|
|
FT_Stream stream;
|
|
|
|
FT_Byte* base_dict;
|
|
FT_Int base_len;
|
|
|
|
FT_Byte in_memory;
|
|
|
|
} T42_ParserRec, *T42_Parser;
|
|
|
|
|
|
typedef struct T42_Loader_
|
|
{
|
|
T42_ParserRec parser; /* parser used to read the stream */
|
|
|
|
FT_Int num_chars; /* number of characters in encoding */
|
|
PS_TableRec encoding_table; /* PS_Table used to store the */
|
|
/* encoding character names */
|
|
|
|
FT_Int num_glyphs;
|
|
PS_TableRec glyph_names;
|
|
PS_TableRec charstrings;
|
|
|
|
} T42_LoaderRec, *T42_Loader;
|
|
|
|
|
|
FT_LOCAL( FT_Error )
|
|
t42_parser_init( T42_Parser parser,
|
|
FT_Stream stream,
|
|
FT_Memory memory,
|
|
PSAux_Service psaux );
|
|
|
|
FT_LOCAL( void )
|
|
t42_parser_done( T42_Parser parser );
|
|
|
|
|
|
FT_LOCAL( FT_Error )
|
|
t42_parse_dict( T42_Face face,
|
|
T42_Loader loader,
|
|
FT_Byte* base,
|
|
FT_Long size );
|
|
|
|
|
|
FT_LOCAL( void )
|
|
t42_loader_init( T42_Loader loader,
|
|
T42_Face face );
|
|
|
|
FT_LOCAL( void )
|
|
t42_loader_done( T42_Loader loader );
|
|
|
|
|
|
/* */
|
|
|
|
FT_END_HEADER
|
|
|
|
#endif /* __TYPE42_PARSE_H__ */
|