1 /***************************************************************************/
5 /* AFM parser (specification). */
7 /* Copyright 2006 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
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. */
16 /***************************************************************************/
19 #ifndef __AFMPARSE_H__
20 #define __AFMPARSE_H__
24 #include FT_INTERNAL_POSTSCRIPT_AUX_H
31 afm_parser_init( AFM_Parser parser,
38 afm_parser_done( AFM_Parser parser );
42 afm_parser_parse( AFM_Parser parser );
47 AFM_VALUE_TYPE_STRING,
49 AFM_VALUE_TYPE_FIXED, /* real number */
50 AFM_VALUE_TYPE_INTEGER,
52 AFM_VALUE_TYPE_INDEX /* glyph index */
56 typedef struct AFM_ValueRec_
58 enum AFM_ValueType_ type;
68 } AFM_ValueRec, *AFM_Value;
70 #define AFM_MAX_ARGUMENTS 5
73 afm_parser_read_vals( AFM_Parser parser,
77 /* read the next key from the next line or column */
79 afm_parser_next_key( AFM_Parser parser,
85 #endif /* __AFMPARSE_H__ */