ReactOS 0.4.16-dev-1059-gb1cf981
afmparse.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * afmparse.h
4 *
5 * AFM parser (specification).
6 *
7 * Copyright (C) 2006-2019 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
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
75 AFM_Value vals,
76 FT_Int n );
77
78 /* read the next key from the next line or column */
79 FT_LOCAL( char* )
82 FT_Offset* len );
83
85
86#endif /* AFMPARSE_H_ */
87
88
89/* END */
struct AFM_ValueRec_ AFM_ValueRec
struct AFM_ValueRec_ * AFM_Value
afm_parser_read_vals(AFM_Parser parser, AFM_Value vals, FT_Int n)
Definition: afmparse.c:372
afm_parser_parse(AFM_Parser parser)
Definition: afmparse.c:862
AFM_ValueType_
Definition: afmparse.h:46
@ AFM_VALUE_TYPE_NAME
Definition: afmparse.h:48
@ AFM_VALUE_TYPE_STRING
Definition: afmparse.h:47
@ AFM_VALUE_TYPE_INDEX
Definition: afmparse.h:52
@ AFM_VALUE_TYPE_INTEGER
Definition: afmparse.h:50
@ AFM_VALUE_TYPE_BOOL
Definition: afmparse.h:51
@ AFM_VALUE_TYPE_FIXED
Definition: afmparse.h:49
afm_parser_next_key(AFM_Parser parser, FT_Bool line, FT_Offset *len)
Definition: afmparse.c:446
afm_parser_done(AFM_Parser parser)
Definition: afmparse.c:558
FT_BEGIN_HEADER afm_parser_init(AFM_Parser parser, FT_Memory memory, FT_Byte *base, FT_Byte *limit)
Definition: afmparse.c:530
#define FT_LOCAL(x)
Definition: ftconfig.h:386
#define FT_END_HEADER
Definition: ftheader.h:54
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:65
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:108
unsigned char FT_Byte
Definition: fttypes.h:154
signed long FT_Fixed
Definition: fttypes.h:287
int FT_Error
Definition: fttypes.h:299
unsigned int FT_UInt
Definition: fttypes.h:231
size_t FT_Offset
Definition: fttypes.h:323
signed int FT_Int
Definition: fttypes.h:220
GLdouble n
Definition: glext.h:7729
GLint limit
Definition: glext.h:10326
GLenum GLsizei len
Definition: glext.h:6722
static char memory[1024 *256]
Definition: process.c:116
char * s
Definition: afmparse.h:61
FT_Fixed f
Definition: afmparse.h:62
FT_UInt u
Definition: afmparse.h:64
FT_Bool b
Definition: afmparse.h:65
enum AFM_ValueType_ type
Definition: afmparse.h:58
FT_Int i
Definition: afmparse.h:63
Definition: parser.c:49
Definition: import.c:81