zenilib: zenilib/jni/external/freetype2/src/type1/t1load.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
t1load.h
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* t1load.h */
4 /* */
5 /* Type 1 font loader (specification). */
6 /* */
7 /* Copyright 1996-2001, 2002, 2004, 2006, 2007 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 __T1LOAD_H__
20 #define __T1LOAD_H__
21
22
23 #include <ft2build.h>
24 #include FT_INTERNAL_STREAM_H
25 #include FT_INTERNAL_POSTSCRIPT_AUX_H
26 #include FT_MULTIPLE_MASTERS_H
27
28 #include "t1parse.h"
29
30
31 FT_BEGIN_HEADER
32
33
34 typedef struct T1_Loader_
35 {
36 T1_ParserRec parser; /* parser used to read the stream */
37
38 FT_Int num_chars; /* number of characters in encoding */
39 PS_TableRec encoding_table; /* PS_Table used to store the */
40 /* encoding character names */
41
42 FT_Int num_glyphs;
43 PS_TableRec glyph_names;
44 PS_TableRec charstrings;
45 PS_TableRec swap_table; /* For moving .notdef glyph to index 0. */
46
47 FT_Int num_subrs;
48 PS_TableRec subrs;
49 FT_Bool fontdata;
50
51 FT_UInt keywords_encountered; /* T1_LOADER_ENCOUNTERED_XXX */
52
53 } T1_LoaderRec, *T1_Loader;
54
55
56 /* treatment of some keywords differs depending on whether */
57 /* they precede or follow certain other keywords */
58
59 #define T1_PRIVATE ( 1 << 0 )
60 #define T1_FONTDIR_AFTER_PRIVATE ( 1 << 1 )
61
62
63 FT_LOCAL( FT_Error )
64 T1_Open_Face( T1_Face face );
65
66 #ifndef T1_CONFIG_OPTION_NO_MM_SUPPORT
67
68 FT_LOCAL( FT_Error )
69 T1_Get_Multi_Master( T1_Face face,
70 FT_Multi_Master* master );
71
72 FT_LOCAL_DEF( FT_Error )
73 T1_Get_MM_Var( T1_Face face,
74 FT_MM_Var* *master );
75
76 FT_LOCAL( FT_Error )
77 T1_Set_MM_Blend( T1_Face face,
78 FT_UInt num_coords,
79 FT_Fixed* coords );
80
81 FT_LOCAL( FT_Error )
82 T1_Set_MM_Design( T1_Face face,
83 FT_UInt num_coords,
84 FT_Long* coords );
85
86 FT_LOCAL_DEF( FT_Error )
87 T1_Set_Var_Design( T1_Face face,
88 FT_UInt num_coords,
89 FT_Fixed* coords );
90
91 FT_LOCAL( void )
92 T1_Done_Blend( T1_Face face );
93
94 #endif /* !T1_CONFIG_OPTION_NO_MM_SUPPORT */
95
96
97 FT_END_HEADER
98
99 #endif /* __T1LOAD_H__ */
100
101
102 /* END */
FT_Error
int FT_Error
Definition: fttypes.h:296
T1_ParserRec
FT_BEGIN_HEADER struct T1_ParserRec_ T1_ParserRec
FT_Long
signed long FT_Long
Definition: fttypes.h:238
T1_Loader_::swap_table
PS_TableRec swap_table
Definition: t1load.h:45
FT_END_HEADER
#define FT_END_HEADER
Definition: ftheader.h:54
T1_Loader_::num_glyphs
FT_Int num_glyphs
Definition: t1load.h:42
FT_Int
signed int FT_Int
Definition: fttypes.h:216
T1_Loader_::num_subrs
FT_Int num_subrs
Definition: t1load.h:47
T1_Loader_::keywords_encountered
FT_UInt keywords_encountered
Definition: t1load.h:51
T1_Set_MM_Blend
T1_Set_MM_Blend(T1_Face face, FT_UInt num_coords, FT_Fixed *coords)
Definition: t1load.c:366
coords
GLenum GLuint coords
Definition: glew.h:7189
t1parse.h
T1_Set_Var_Design
T1_Set_Var_Design(T1_Face face, FT_UInt num_coords, FT_Fixed *coords)
Definition: t1load.c:489
T1_Loader_::fontdata
FT_Bool fontdata
Definition: t1load.h:49
FT_Bool
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:104
FT_BEGIN_HEADER
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
T1_Set_MM_Design
T1_Set_MM_Design(T1_Face face, FT_UInt num_coords, FT_Long *coords)
Definition: t1load.c:413
FT_LOCAL
#define FT_LOCAL(x)
Definition: ftconfig.h:466
FT_MM_Var_
Definition: ftmm.h:210
FT_Multi_Master_
Definition: ftmm.h:103
FT_LOCAL_DEF
#define FT_LOCAL_DEF(x)
Definition: ftconfig.h:467
face
GLenum face
Definition: gl2ext.h:1490
T1_Loader
FT_BEGIN_HEADER struct T1_Loader_ * T1_Loader
T1_LoaderRec
FT_BEGIN_HEADER struct T1_Loader_ T1_LoaderRec
T1_Loader_::parser
T1_ParserRec parser
Definition: t1load.h:36
T1_Loader_::charstrings
PS_TableRec charstrings
Definition: t1load.h:44
T1_Loader_::subrs
PS_TableRec subrs
Definition: t1load.h:48
T1_FaceRec_
Definition: t1types.h:198
PS_TableRec_
Definition: psaux.h:117
T1_Done_Blend
T1_Done_Blend(T1_Face face)
Definition: t1load.c:511
T1_Loader_::num_chars
FT_Int num_chars
Definition: t1load.h:38
ft2build.h
FT_Fixed
signed long FT_Fixed
Definition: fttypes.h:284
T1_Loader_::encoding_table
PS_TableRec encoding_table
Definition: t1load.h:39
T1_Loader_
Definition: t1load.h:34
FT_UInt
unsigned int FT_UInt
Definition: fttypes.h:227
T1_Get_MM_Var
T1_Get_MM_Var(T1_Face face, FT_MM_Var **master)
Definition: t1load.c:301
T1_Open_Face
T1_Open_Face(T1_Face face)
Definition: t1load.c:2046
T1_Loader_::glyph_names
PS_TableRec glyph_names
Definition: t1load.h:43
T1_Get_Multi_Master
T1_Get_Multi_Master(T1_Face face, FT_Multi_Master *master)
Definition: t1load.c:184