zenilib: zenilib/jni/external/freetype2/src/type42/t42parse.h Source File

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
t42parse.h
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* t42parse.h */
4 /* */
5 /* Type 42 font parser (specification). */
6 /* */
7 /* Copyright 2002, 2003 by Roberto Alameda. */
8 /* */
9 /* This file is part of the FreeType project, and may only be used, */
10 /* modified, and distributed under the terms of the FreeType project */
11 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
12 /* this file you indicate that you have read the license and */
13 /* understand and accept it fully. */
14 /* */
15 /***************************************************************************/
16
17
18 #ifndef __T42PARSE_H__
19 #define __T42PARSE_H__
20
21
22 #include "t42objs.h"
23 #include FT_INTERNAL_POSTSCRIPT_AUX_H
24
25
26 FT_BEGIN_HEADER
27
28 typedef struct T42_ParserRec_
29 {
30 PS_ParserRec root;
31 FT_Stream stream;
32
33 FT_Byte* base_dict;
34 FT_Long base_len;
35
36 FT_Bool in_memory;
37
38 } T42_ParserRec, *T42_Parser;
39
40
41 typedef struct T42_Loader_
42 {
43 T42_ParserRec parser; /* parser used to read the stream */
44
45 FT_UInt num_chars; /* number of characters in encoding */
46 PS_TableRec encoding_table; /* PS_Table used to store the */
47 /* encoding character names */
48
49 FT_UInt num_glyphs;
50 PS_TableRec glyph_names;
51 PS_TableRec charstrings;
52 PS_TableRec swap_table; /* For moving .notdef glyph to index 0. */
53
54 } T42_LoaderRec, *T42_Loader;
55
56
57 FT_LOCAL( FT_Error )
58 t42_parser_init( T42_Parser parser,
59 FT_Stream stream,
60 FT_Memory memory,
61 PSAux_Service psaux );
62
63 FT_LOCAL( void )
64 t42_parser_done( T42_Parser parser );
65
66
67 FT_LOCAL( FT_Error )
68 t42_parse_dict( T42_Face face,
69 T42_Loader loader,
70 FT_Byte* base,
71 FT_Long size );
72
73
74 FT_LOCAL( void )
75 t42_loader_init( T42_Loader loader,
76 T42_Face face );
77
78 FT_LOCAL( void )
79 t42_loader_done( T42_Loader loader );
80
81
82 /* */
83
84 FT_END_HEADER
85
86
87 #endif /* __T42PARSE_H__ */
88
89
90 /* END */
FT_Error
int FT_Error
Definition: fttypes.h:296
T42_ParserRec_::stream
FT_Stream stream
Definition: t42parse.h:31
t42objs.h
FT_Long
signed long FT_Long
Definition: fttypes.h:238
T42_Loader_::charstrings
PS_TableRec charstrings
Definition: t42parse.h:51
FT_END_HEADER
#define FT_END_HEADER
Definition: ftheader.h:54
t42_parser_done
t42_parser_done(T42_Parser parser)
Definition: t42parse.c:226
t42_parser_init
t42_parser_init(T42_Parser parser, FT_Stream stream, FT_Memory memory, PSAux_Service psaux)
Definition: t42parse.c:142
T42_ParserRec_::base_dict
FT_Byte * base_dict
Definition: t42parse.h:33
stream
GLuint GLuint stream
Definition: glew.h:6573
T42_Loader_::glyph_names
PS_TableRec glyph_names
Definition: t42parse.h:50
PS_ParserRec_
Definition: psaux.h:424
T42_ParserRec_::root
PS_ParserRec root
Definition: t42parse.h:30
FT_Bool
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:104
T42_Face
FT_BEGIN_HEADER struct T42_FaceRec_ * T42_Face
T42_Loader_::num_chars
FT_UInt num_chars
Definition: t42parse.h:45
FT_Byte
unsigned char FT_Byte
Definition: fttypes.h:150
FT_BEGIN_HEADER
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
FT_LOCAL
#define FT_LOCAL(x)
Definition: ftconfig.h:466
T42_Loader_::swap_table
PS_TableRec swap_table
Definition: t42parse.h:52
T42_ParserRec_::base_len
FT_Long base_len
Definition: t42parse.h:34
face
GLenum face
Definition: gl2ext.h:1490
T42_Loader_::num_glyphs
FT_UInt num_glyphs
Definition: t42parse.h:49
T42_LoaderRec
struct T42_Loader_ T42_LoaderRec
T42_Loader
struct T42_Loader_ * T42_Loader
T42_Loader_::encoding_table
PS_TableRec encoding_table
Definition: t42parse.h:46
PS_TableRec_
Definition: psaux.h:117
FT_Memory
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:66
t42_parse_dict
t42_parse_dict(T42_Face face, T42_Loader loader, FT_Byte *base, FT_Long size)
Definition: t42parse.c:1024
T42_Parser
FT_BEGIN_HEADER struct T42_ParserRec_ * T42_Parser
t42_loader_done
t42_loader_done(T42_Loader loader)
Definition: t42parse.c:1172
T42_Loader_
Definition: t42parse.h:41
FT_UInt
unsigned int FT_UInt
Definition: fttypes.h:227
T42_ParserRec
FT_BEGIN_HEADER struct T42_ParserRec_ T42_ParserRec
T42_ParserRec_
Definition: t42parse.h:28
t42_loader_init
t42_loader_init(T42_Loader loader, T42_Face face)
Definition: t42parse.c:1155
FT_StreamRec_
Definition: ftsystem.h:321
T42_ParserRec_::in_memory
FT_Bool in_memory
Definition: t42parse.h:36
PSAux_ServiceRec_
Definition: psaux.h:794
T42_Loader_::parser
T42_ParserRec parser
Definition: t42parse.h:43
size
GLsizei size
Definition: gl2ext.h:1467