sdk-world
v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Toggle main menu visibility
Loading...
Searching...
No Matches
t1parse.h
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* t1parse.h
4
*
5
* Type 1 parser (specification).
6
*
7
* Copyright (C) 1996-2025 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
23
#ifndef T1PARSE_H_
24
#define T1PARSE_H_
25
26
27
#include <
freetype/internal/t1types.h
>
28
#include <
freetype/internal/ftstream.h
>
29
30
31
FT_BEGIN_HEADER
32
33
34
/**************************************************************************
35
*
36
* @Struct:
37
* T1_ParserRec
38
*
39
* @Description:
40
* A PS_ParserRec is an object used to parse a Type 1 fonts very
41
* quickly.
42
*
43
* @Fields:
44
* root ::
45
* The root parser.
46
*
47
* stream ::
48
* The current input stream.
49
*
50
* base_dict ::
51
* A pointer to the top-level dictionary.
52
*
53
* base_len ::
54
* The length in bytes of the top dictionary.
55
*
56
* private_dict ::
57
* A pointer to the private dictionary.
58
*
59
* private_len ::
60
* The length in bytes of the private dictionary.
61
*
62
* in_pfb ::
63
* A boolean. Indicates that we are handling a PFB
64
* file.
65
*
66
* in_memory ::
67
* A boolean. Indicates a memory-based stream.
68
*
69
* single_block ::
70
* A boolean. Indicates that the private dictionary
71
* is stored in lieu of the base dictionary.
72
*/
73
typedef
struct
T1_ParserRec_
74
{
75
PS_ParserRec root;
76
FT_Stream stream;
77
78
FT_Byte* base_dict;
79
FT_ULong base_len;
80
81
FT_Byte* private_dict;
82
FT_ULong private_len;
83
84
FT_Bool in_pfb;
85
FT_Bool in_memory;
86
FT_Bool single_block;
87
88
} T1_ParserRec, *T1_Parser;
89
90
91
#define T1_Add_Table( p, i, o, l ) (p)->funcs.add( (p), i, o, l )
92
#define T1_Release_Table( p ) \
93
do \
94
{ \
95
if ( (p)->funcs.release ) \
96
(p)->funcs.release( p ); \
97
} while ( 0 )
98
99
100
#define T1_Skip_Spaces( p ) (p)->root.funcs.skip_spaces( &(p)->root )
101
#define T1_Skip_PS_Token( p ) (p)->root.funcs.skip_PS_token( &(p)->root )
102
103
#define T1_ToInt( p ) (p)->root.funcs.to_int( &(p)->root )
104
#define T1_ToFixed( p, t ) (p)->root.funcs.to_fixed( &(p)->root, t )
105
106
#define T1_ToCoordArray( p, m, c ) \
107
(p)->root.funcs.to_coord_array( &(p)->root, m, c )
108
#define T1_ToFixedArray( p, m, f, t ) \
109
(p)->root.funcs.to_fixed_array( &(p)->root, m, f, t )
110
#define T1_ToToken( p, t ) \
111
(p)->root.funcs.to_token( &(p)->root, t )
112
#define T1_ToTokenArray( p, t, m, c ) \
113
(p)->root.funcs.to_token_array( &(p)->root, t, m, c )
114
115
#define T1_Load_Field( p, f, o, m, pf ) \
116
(p)->root.funcs.load_field( &(p)->root, f, o, m, pf )
117
118
#define T1_Load_Field_Table( p, f, o, m, pf ) \
119
(p)->root.funcs.load_field_table( &(p)->root, f, o, m, pf )
120
121
122
FT_LOCAL( FT_Error )
123
T1_New_Parser( T1_Parser parser,
124
FT_Stream stream,
125
FT_Memory memory,
126
PSAux_Service psaux );
127
128
FT_LOCAL( FT_Error )
129
T1_Get_Private_Dict( T1_Parser parser,
130
PSAux_Service psaux );
131
132
FT_LOCAL(
void
)
133
T1_Finalize_Parser( T1_Parser parser );
134
135
136
FT_END_HEADER
137
138
#endif
/* T1PARSE_H_ */
139
140
141
/* END */
ftstream.h
T1_ParserRec_
Definition
t1parse.h:74
t1types.h
freetype
src
type1
t1parse.h
Generated by
1.18.0