ReactOS  0.4.15-dev-3439-g2693a26
afmparse.h
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* afmparse.h */
4 /* */
5 /* AFM parser (specification). */
6 /* */
7 /* Copyright 2006-2018 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 
33  FT_Byte* base,
34  FT_Byte* limit );
35 
36 
37  FT_LOCAL( void )
39 
40 
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;
66 
67  } u;
68 
70 
71 #define AFM_MAX_ARGUMENTS 5
72 
73  FT_LOCAL( FT_Int )
75  AFM_Value vals,
76  FT_Int n );
77 
78  /* read the next key from the next line or column */
79  FT_LOCAL( char* )
81  FT_Bool line,
82  FT_Offset* len );
83 
85 
86 #endif /* AFMPARSE_H_ */
87 
88 
89 /* END */
int FT_Error
Definition: fttypes.h:300
FT_Int i
Definition: afmparse.h:63
#define FT_END_HEADER
Definition: ftheader.h:54
afm_parser_parse(AFM_Parser parser)
Definition: afmparse.c:862
signed int FT_Int
Definition: fttypes.h:220
afm_parser_next_key(AFM_Parser parser, FT_Bool line, FT_Offset *len)
Definition: afmparse.c:446
GLdouble n
Definition: glext.h:7729
struct AFM_ValueRec_ * AFM_Value
FT_Bool b
Definition: afmparse.h:65
static char memory[1024 *256]
Definition: process.c:116
afm_parser_done(AFM_Parser parser)
Definition: afmparse.c:558
GLint limit
Definition: glext.h:10326
struct AFM_ValueRec_ AFM_ValueRec
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:108
unsigned char FT_Byte
Definition: fttypes.h:154
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
#define FT_LOCAL(x)
Definition: ftconfig.h:387
Definition: parser.c:48
FT_Fixed f
Definition: afmparse.h:62
enum AFM_ValueType_ type
Definition: afmparse.h:58
afm_parser_read_vals(AFM_Parser parser, AFM_Value vals, FT_Int n)
Definition: afmparse.c:372
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:66
GLenum GLsizei len
Definition: glext.h:6722
signed long FT_Fixed
Definition: fttypes.h:288
unsigned int FT_UInt
Definition: fttypes.h:231
char * s
Definition: afmparse.h:61
Definition: import.c:85
AFM_ValueType_
Definition: afmparse.h:45
FT_UInt u
Definition: afmparse.h:64
size_t FT_Offset
Definition: fttypes.h:324
FT_BEGIN_HEADER afm_parser_init(AFM_Parser parser, FT_Memory memory, FT_Byte *base, FT_Byte *limit)
Definition: afmparse.c:530