ReactOS 0.4.16-dev-2380-gf63df20
cidparse.h
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * cidparse.h
4 *
5 * CID-keyed Type1 parser (specification).
6 *
7 * Copyright (C) 1996-2020 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 CIDPARSE_H_
20#define CIDPARSE_H_
21
22
26
27
29
30
31 /**************************************************************************
32 *
33 * @Struct:
34 * CID_Parser
35 *
36 * @Description:
37 * A CID_Parser is an object used to parse a Type 1 fonts very
38 * quickly.
39 *
40 * @Fields:
41 * root ::
42 * The root PS_ParserRec fields.
43 *
44 * stream ::
45 * The current input stream.
46 *
47 * postscript ::
48 * A pointer to the data to be parsed.
49 *
50 * postscript_len ::
51 * The length of the data to be parsed.
52 *
53 * data_offset ::
54 * The start position of the binary data (i.e., the
55 * end of the data to be parsed.
56 *
57 * binary_length ::
58 * The length of the data after the `StartData'
59 * command if the data format is hexadecimal.
60 *
61 * cid ::
62 * A structure which holds the information about
63 * the current font.
64 *
65 * num_dict ::
66 * The number of font dictionaries.
67 */
68 typedef struct CID_Parser_
69 {
72
75
77
79
82
84
85
90 PSAux_Service psaux );
91
92 FT_LOCAL( void )
94
95
96 /**************************************************************************
97 *
98 * PARSING ROUTINES
99 *
100 */
101
102#define cid_parser_skip_spaces( p ) \
103 (p)->root.funcs.skip_spaces( &(p)->root )
104#define cid_parser_skip_PS_token( p ) \
105 (p)->root.funcs.skip_PS_token( &(p)->root )
106
107#define cid_parser_to_int( p ) (p)->root.funcs.to_int( &(p)->root )
108#define cid_parser_to_fixed( p, t ) (p)->root.funcs.to_fixed( &(p)->root, t )
109
110#define cid_parser_to_coord_array( p, m, c ) \
111 (p)->root.funcs.to_coord_array( &(p)->root, m, c )
112#define cid_parser_to_fixed_array( p, m, f, t ) \
113 (p)->root.funcs.to_fixed_array( &(p)->root, m, f, t )
114#define cid_parser_to_token( p, t ) \
115 (p)->root.funcs.to_token( &(p)->root, t )
116#define cid_parser_to_token_array( p, t, m, c ) \
117 (p)->root.funcs.to_token_array( &(p)->root, t, m, c )
118
119#define cid_parser_load_field( p, f, o ) \
120 (p)->root.funcs.load_field( &(p)->root, f, o, 0, 0 )
121#define cid_parser_load_field_table( p, f, o ) \
122 (p)->root.funcs.load_field_table( &(p)->root, f, o, 0, 0 )
123
124
126
127#endif /* CIDPARSE_H_ */
128
129
130/* END */
cid_parser_new(CID_Parser *parser, FT_Stream stream, FT_Memory memory, PSAux_Service psaux)
Definition: cidparse.c:56
FT_BEGIN_HEADER struct CID_Parser_ CID_Parser
cid_parser_done(CID_Parser *parser)
Definition: cidparse.c:262
#define FT_LOCAL(x)
#define FT_END_HEADER
Definition: ftheader.h:57
#define FT_BEGIN_HEADER
Definition: ftheader.h:37
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:64
unsigned long FT_ULong
Definition: fttypes.h:253
unsigned char FT_Byte
Definition: fttypes.h:154
int FT_Error
Definition: fttypes.h:299
signed int FT_Int
Definition: fttypes.h:220
static char memory[1024 *256]
Definition: process.c:122
PS_ParserRec root
Definition: cidparse.h:70
FT_Byte * postscript
Definition: cidparse.h:73
FT_Int num_dict
Definition: cidparse.h:81
FT_Stream stream
Definition: cidparse.h:71
FT_ULong data_offset
Definition: cidparse.h:76
CID_FaceInfo cid
Definition: cidparse.h:80
FT_ULong postscript_len
Definition: cidparse.h:74
FT_ULong binary_length
Definition: cidparse.h:78
Definition: import.c:81
Definition: parse.h:23