1
/***************************************************************************/
5
/* Type 42 font parser (specification). */
7
/* Copyright 2002, 2003 by Roberto Alameda. */
9
/* This file is part of the FreeType project, and may only be used, */
10
/* modified, and distributed under the terms of the FreeType project */
11
/* license, LICENSE.TXT. By continuing to use, modify, or distribute */
12
/* this file you indicate that you have read the license and */
13
/* understand and accept it fully. */
15
/***************************************************************************/
18
#ifndef __T42PARSE_H__
19
#define __T42PARSE_H__
23
#include FT_INTERNAL_POSTSCRIPT_AUX_H
28
typedef struct T42_ParserRec_
38
} T42_ParserRec, *T42_Parser;
41
typedef struct T42_Loader_
43
T42_ParserRec parser; /* parser used to read the stream */
45
FT_UInt num_chars; /* number of characters in encoding */
46
PS_TableRec encoding_table; /* PS_Table used to store the */
47
/* encoding character names */
50
PS_TableRec glyph_names;
51
PS_TableRec charstrings;
52
PS_TableRec swap_table; /* For moving .notdef glyph to index 0. */
54
} T42_LoaderRec, *T42_Loader;
58
t42_parser_init( T42_Parser parser,
61
PSAux_Service psaux );
64
t42_parser_done( T42_Parser parser );
68
t42_parse_dict( T42_Face face,
75
t42_loader_init( T42_Loader loader,
79
t42_loader_done( T42_Loader loader );
87
#endif /* __T42PARSE_H__ */