zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
afmparse.h
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* afmparse.h */
4 /* */
5 /* AFM parser (specification). */
6 /* */
7 /* Copyright 2006 by */
8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
9 /* */
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. */
15 /* */
16 /***************************************************************************/
17 
18 
19 #ifndef __AFMPARSE_H__
20 #define __AFMPARSE_H__
21 
22 
23 #include <ft2build.h>
24 #include FT_INTERNAL_POSTSCRIPT_AUX_H
25 
26 
28 
29 
32  FT_Memory memory,
33  FT_Byte* base,
34  FT_Byte* limit );
35 
36 
37  FT_LOCAL( void )
38  afm_parser_done( AFM_Parser parser );
39 
40 
42  afm_parser_parse( AFM_Parser parser );
43 
44 
46  {
49  AFM_VALUE_TYPE_FIXED, /* real number */
52  AFM_VALUE_TYPE_INDEX /* glyph index */
53  };
54 
55 
56  typedef struct AFM_ValueRec_
57  {
59  union
60  {
61  char* s;
65 
66  } u;
67 
69 
70 #define AFM_MAX_ARGUMENTS 5
71 
72  FT_LOCAL( FT_Int )
74  AFM_Value vals,
75  FT_UInt n );
76 
77  /* read the next key from the next line or column */
78  FT_LOCAL( char* )
80  FT_Bool line,
81  FT_Offset* len );
82 
84 
85 #endif /* __AFMPARSE_H__ */
86 
87 
88 /* END */
char * s
Definition: afmparse.h:61
int FT_Error
Definition: fttypes.h:296
#define FT_END_HEADER
Definition: ftheader.h:54
signed int FT_Int
Definition: fttypes.h:216
afm_parser_parse(AFM_Parser parser)
Definition: afmparse.c:844
GLclampd n
Definition: glew.h:7287
struct AFM_ValueRec_ * AFM_Value
union AFM_ValueRec_::@39 u
afm_parser_next_key(AFM_Parser parser, FT_Bool line, FT_Offset *len)
Definition: afmparse.c:441
GLenum GLsizei len
Definition: glew.h:7035
struct AFM_ValueRec_ AFM_ValueRec
FT_Int i
Definition: afmparse.h:63
afm_parser_done(AFM_Parser parser)
Definition: afmparse.c:553
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:104
unsigned char FT_Byte
Definition: fttypes.h:150
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
#define FT_LOCAL(x)
Definition: ftconfig.h:466
FT_Fixed f
Definition: afmparse.h:62
GLint limit
Definition: glew.h:11829
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:66
signed long FT_Fixed
Definition: fttypes.h:284
FT_Bool b
Definition: afmparse.h:64
unsigned int FT_UInt
Definition: fttypes.h:227
afm_parser_init(AFM_Parser parser, FT_Memory memory, FT_Byte *base, FT_Byte *limit)
Definition: afmparse.c:525
AFM_ValueType_
Definition: afmparse.h:45
enum AFM_ValueType_ type
Definition: afmparse.h:58
afm_parser_read_vals(AFM_Parser parser, AFM_Value vals, FT_UInt n)
Definition: afmparse.c:367
size_t FT_Offset
Definition: fttypes.h:320