sdk-world
v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Toggle main menu visibility
Loading...
Searching...
No Matches
t42parse.h
Go to the documentation of this file.
1
/****************************************************************************
2
*
3
* t42parse.h
4
*
5
* Type 42 font parser (specification).
6
*
7
* Copyright (C) 2002-2025 by
8
* Roberto Alameda.
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 T42PARSE_H_
24
#define T42PARSE_H_
25
26
27
#include "
t42objs.h
"
28
#include <
freetype/internal/psaux.h
>
29
30
31
FT_BEGIN_HEADER
32
33
typedef
struct
T42_ParserRec_
34
{
35
PS_ParserRec root;
36
FT_Stream stream;
37
38
FT_Byte* base_dict;
39
FT_Long base_len;
40
41
FT_Bool in_memory;
42
43
} T42_ParserRec, *T42_Parser;
44
45
46
typedef
struct
T42_Loader_
47
{
48
T42_ParserRec parser;
/* parser used to read the stream */
49
50
FT_Int num_chars;
/* number of characters in encoding */
51
PS_TableRec encoding_table;
/* PS_Table used to store the */
52
/* encoding character names */
53
54
FT_Int num_glyphs;
55
PS_TableRec glyph_names;
56
PS_TableRec charstrings;
57
PS_TableRec swap_table;
/* For moving .notdef glyph to index 0. */
58
59
} T42_LoaderRec, *T42_Loader;
60
61
62
FT_LOCAL( FT_Error )
63
t42_parser_init( T42_Parser parser,
64
FT_Stream stream,
65
FT_Memory memory,
66
PSAux_Service psaux );
67
68
FT_LOCAL(
void
)
69
t42_parser_done( T42_Parser parser );
70
71
72
FT_LOCAL( FT_Error )
73
t42_parse_dict( T42_Face face,
74
T42_Loader loader,
75
FT_Byte* base,
76
FT_Long size );
77
78
79
FT_LOCAL(
void
)
80
t42_loader_init( T42_Loader loader,
81
T42_Face face );
82
83
FT_LOCAL(
void
)
84
t42_loader_done( T42_Loader loader );
85
86
87
/* */
88
89
FT_END_HEADER
90
91
92
#endif
/* T42PARSE_H_ */
93
94
95
/* END */
psaux.h
T42_Loader_
Definition
t42parse.h:47
T42_ParserRec_
Definition
t42parse.h:34
t42objs.h
freetype
src
type42
t42parse.h
Generated by
1.18.0