1 /****************************************************************************
5 * Type 42 font parser (specification).
7 * Copyright (C) 2002-2020 by
10 * This file is part of the FreeType project, and may only be used,
11 * modified, and distributed under the terms of the FreeType project
12 * license, LICENSE.TXT. By continuing to use, modify, or distribute
13 * this file you indicate that you have read the license and
14 * understand and accept it fully.
24 #include <freetype/internal/psaux.h>
29 typedef struct T42_ParserRec_
39 } T42_ParserRec, *T42_Parser;
42 typedef struct T42_Loader_
44 T42_ParserRec parser; /* parser used to read the stream */
46 FT_Int num_chars; /* number of characters in encoding */
47 PS_TableRec encoding_table; /* PS_Table used to store the */
48 /* encoding character names */
51 PS_TableRec glyph_names;
52 PS_TableRec charstrings;
53 PS_TableRec swap_table; /* For moving .notdef glyph to index 0. */
55 } T42_LoaderRec, *T42_Loader;
59 t42_parser_init( T42_Parser parser,
62 PSAux_Service psaux );
65 t42_parser_done( T42_Parser parser );
69 t42_parse_dict( T42_Face face,
76 t42_loader_init( T42_Loader loader,
80 t42_loader_done( T42_Loader loader );
88 #endif /* T42PARSE_H_ */