zenilib: zenilib/jni/external/freetype2/src/psaux/psauxmod.c 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
psauxmod.c
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* psauxmod.c */
4 /* */
5 /* FreeType auxiliary PostScript module implementation (body). */
6 /* */
7 /* Copyright 2000-2001, 2002, 2003, 2006 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 #include <ft2build.h>
20 #include "psauxmod.h"
21 #include "psobjs.h"
22 #include "t1decode.h"
23 #include "t1cmap.h"
24
25 #ifndef T1_CONFIG_OPTION_NO_AFM
26 #include "afmparse.h"
27 #endif
28
29
30 FT_CALLBACK_TABLE_DEF
31 const PS_Table_FuncsRec ps_table_funcs =
32 {
33 ps_table_new,
34 ps_table_done,
35 ps_table_add,
36 ps_table_release
37 };
38
39
40 FT_CALLBACK_TABLE_DEF
41 const PS_Parser_FuncsRec ps_parser_funcs =
42 {
43 ps_parser_init,
44 ps_parser_done,
45 ps_parser_skip_spaces,
46 ps_parser_skip_PS_token,
47 ps_parser_to_int,
48 ps_parser_to_fixed,
49 ps_parser_to_bytes,
50 ps_parser_to_coord_array,
51 ps_parser_to_fixed_array,
52 ps_parser_to_token,
53 ps_parser_to_token_array,
54 ps_parser_load_field,
55 ps_parser_load_field_table
56 };
57
58
59 FT_CALLBACK_TABLE_DEF
60 const T1_Builder_FuncsRec t1_builder_funcs =
61 {
62 t1_builder_init,
63 t1_builder_done,
64 t1_builder_check_points,
65 t1_builder_add_point,
66 t1_builder_add_point1,
67 t1_builder_add_contour,
68 t1_builder_start_point,
69 t1_builder_close_contour
70 };
71
72
73 FT_CALLBACK_TABLE_DEF
74 const T1_Decoder_FuncsRec t1_decoder_funcs =
75 {
76 t1_decoder_init,
77 t1_decoder_done,
78 t1_decoder_parse_charstrings
79 };
80
81
82 #ifndef T1_CONFIG_OPTION_NO_AFM
83 FT_CALLBACK_TABLE_DEF
84 const AFM_Parser_FuncsRec afm_parser_funcs =
85 {
86 afm_parser_init,
87 afm_parser_done,
88 afm_parser_parse
89 };
90 #endif
91
92
93 FT_CALLBACK_TABLE_DEF
94 const T1_CMap_ClassesRec t1_cmap_classes =
95 {
96 &t1_cmap_standard_class_rec,
97 &t1_cmap_expert_class_rec,
98 &t1_cmap_custom_class_rec,
99 &t1_cmap_unicode_class_rec
100 };
101
102
103 static
104 const PSAux_Interface psaux_interface =
105 {
106 &ps_table_funcs,
107 &ps_parser_funcs,
108 &t1_builder_funcs,
109 &t1_decoder_funcs,
110 t1_decrypt,
111
112 (const T1_CMap_ClassesRec*) &t1_cmap_classes,
113
114 #ifndef T1_CONFIG_OPTION_NO_AFM
115 &afm_parser_funcs,
116 #else
117 0,
118 #endif
119 };
120
121
122 FT_CALLBACK_TABLE_DEF
123 const FT_Module_Class psaux_module_class =
124 {
125 0,
126 sizeof ( FT_ModuleRec ),
127 "psaux",
128 0x20000L,
129 0x20000L,
130
131 &psaux_interface, /* module-specific interface */
132
133 (FT_Module_Constructor)0,
134 (FT_Module_Destructor) 0,
135 (FT_Module_Requester) 0
136 };
137
138
139 /* END */
T1_Decoder_FuncsRec_
Definition: psaux.h:635
T1_CMap_ClassesRec_
Definition: psaux.h:776
afmparse.h
t1_builder_done
t1_builder_done(T1_Builder builder)
Definition: psobjs.c:1523
t1_builder_add_point1
t1_builder_add_point1(T1_Builder builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:1568
psauxmod.h
afm_parser_funcs
FT_CALLBACK_TABLE_DEF const AFM_Parser_FuncsRec afm_parser_funcs
Definition: psauxmod.c:84
afm_parser_parse
afm_parser_parse(AFM_Parser parser)
Definition: afmparse.c:844
ps_parser_load_field_table
ps_parser_load_field_table(PS_Parser parser, const T1_Field field, void **objects, FT_UInt max_objects, FT_ULong *pflags)
Definition: psobjs.c:1239
t1_builder_start_point
t1_builder_start_point(T1_Builder builder, FT_Pos x, FT_Pos y)
Definition: psobjs.c:1620
FT_Module_Requester
FT_Module_Interface(* FT_Module_Requester)(FT_Module module, const char *name)
Definition: ftmodapi.h:126
ps_parser_done
ps_parser_done(PS_Parser parser)
Definition: psobjs.c:1432
FT_ModuleRec
struct FT_ModuleRec_ FT_ModuleRec
ps_parser_to_fixed
ps_parser_to_fixed(PS_Parser parser, FT_Int power_ten)
Definition: psobjs.c:1367
psaux_interface
static const PSAux_Interface psaux_interface
Definition: psauxmod.c:104
ps_parser_skip_PS_token
ps_parser_skip_PS_token(PS_Parser parser)
Definition: psobjs.c:514
ps_parser_to_fixed_array
ps_parser_to_fixed_array(PS_Parser parser, FT_Int max_values, FT_Fixed *values, FT_Int power_ten)
Definition: psobjs.c:1387
ps_parser_to_token
ps_parser_to_token(PS_Parser parser, T1_Token token)
Definition: psobjs.c:619
afm_parser_done
afm_parser_done(AFM_Parser parser)
Definition: afmparse.c:553
ps_table_new
ps_table_new(PS_Table table, FT_Int count, FT_Memory memory)
Definition: psobjs.c:69
t1_decoder_init
t1_decoder_init(T1_Decoder decoder, FT_Face face, FT_Size size, FT_GlyphSlot slot, FT_Byte **glyph_names, PS_Blend blend, FT_Bool hinting, FT_Render_Mode hint_mode, T1_Decoder_Callback parse_callback)
Definition: t1decode.c:1560
t1_builder_funcs
FT_CALLBACK_TABLE_DEF const T1_Builder_FuncsRec t1_builder_funcs
Definition: psauxmod.c:60
ps_table_add
ps_table_add(PS_Table table, FT_Int idx, void *object, FT_PtrDist length)
Definition: psobjs.c:168
ps_parser_funcs
FT_CALLBACK_TABLE_DEF const PS_Parser_FuncsRec ps_parser_funcs
Definition: psauxmod.c:41
psaux_module_class
FT_CALLBACK_TABLE_DEF const FT_Module_Class psaux_module_class
Definition: psauxmod.c:123
AFM_Parser_FuncsRec_
Definition: psaux.h:710
PS_Table_FuncsRec_
Definition: psaux.h:63
t1_decoder_funcs
FT_CALLBACK_TABLE_DEF const T1_Decoder_FuncsRec t1_decoder_funcs
Definition: psauxmod.c:74
psobjs.h
ps_parser_skip_spaces
ps_parser_skip_spaces(PS_Parser parser)
Definition: psobjs.c:609
t1_cmap_classes
FT_CALLBACK_TABLE_DEF const T1_CMap_ClassesRec t1_cmap_classes
Definition: psauxmod.c:94
ps_table_release
ps_table_release(PS_Table table)
Definition: psobjs.c:264
ps_parser_load_field
ps_parser_load_field(PS_Parser parser, const T1_Field field, void **objects, FT_UInt max_objects, FT_ULong *pflags)
Definition: psobjs.c:1024
ps_parser_to_int
ps_parser_to_int(PS_Parser parser)
Definition: psobjs.c:1304
FT_Module_Destructor
void(* FT_Module_Destructor)(FT_Module module)
Definition: ftmodapi.h:109
t1_decoder_parse_charstrings
t1_decoder_parse_charstrings(T1_Decoder decoder, FT_Byte *charstring_base, FT_UInt charstring_len)
Definition: t1decode.c:355
FT_Module_Class_
Definition: ftmodapi.h:159
ps_table_done
ps_table_done(PS_Table table)
Definition: psobjs.c:240
t1_cmap_standard_class_rec
FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec t1_cmap_standard_class_rec
Definition: t1cmap.c:131
t1_builder_close_contour
t1_builder_close_contour(T1_Builder builder)
Definition: psobjs.c:1645
t1cmap.h
t1_decrypt
t1_decrypt(FT_Byte *buffer, FT_Offset length, FT_UShort seed)
Definition: psobjs.c:1698
FT_Module_Constructor
FT_Error(* FT_Module_Constructor)(FT_Module module)
Definition: ftmodapi.h:94
t1_cmap_unicode_class_rec
FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec t1_cmap_unicode_class_rec
Definition: t1cmap.c:328
PS_Parser_FuncsRec_
Definition: psaux.h:338
ft2build.h
ps_parser_to_bytes
ps_parser_to_bytes(PS_Parser parser, FT_Byte *bytes, FT_Offset max_bytes, FT_Long *pnum_bytes, FT_Bool delimiters)
Definition: psobjs.c:1314
ps_parser_to_coord_array
ps_parser_to_coord_array(PS_Parser parser, FT_Int max_coords, FT_Short *coords)
Definition: psobjs.c:1376
afm_parser_init
afm_parser_init(AFM_Parser parser, FT_Memory memory, FT_Byte *base, FT_Byte *limit)
Definition: afmparse.c:525
t1_builder_add_point
t1_builder_add_point(T1_Builder builder, FT_Pos x, FT_Pos y, FT_Byte flag)
Definition: psobjs.c:1544
ps_parser_init
ps_parser_init(PS_Parser parser, FT_Byte *base, FT_Byte *limit, FT_Memory memory)
Definition: psobjs.c:1417
t1decode.h
t1_builder_add_contour
t1_builder_add_contour(T1_Builder builder)
Definition: psobjs.c:1585
t1_builder_init
t1_builder_init(T1_Builder builder, FT_Face face, FT_Size size, FT_GlyphSlot glyph, FT_Bool hinting)
Definition: psobjs.c:1467
t1_cmap_custom_class_rec
FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec t1_cmap_custom_class_rec
Definition: t1cmap.c:245
T1_Builder_FuncsRec_
Definition: psaux.h:478
PSAux_ServiceRec_
Definition: psaux.h:794
t1_decoder_done
t1_decoder_done(T1_Decoder decoder)
Definition: t1decode.c:1608
ps_parser_to_token_array
ps_parser_to_token_array(PS_Parser parser, T1_Token tokens, FT_UInt max_tokens, FT_Int *pnum_tokens)
Definition: psobjs.c:722
t1_builder_check_points
t1_builder_check_points(T1_Builder builder, FT_Int count)
Definition: psobjs.c:1535
FT_CALLBACK_TABLE_DEF
#define FT_CALLBACK_TABLE_DEF
Definition: ftconfig.h:564
t1_cmap_expert_class_rec
FT_CALLBACK_TABLE_DEF const FT_CMap_ClassRec t1_cmap_expert_class_rec
Definition: t1cmap.c:152
ps_table_funcs
FT_CALLBACK_TABLE_DEF const PS_Table_FuncsRec ps_table_funcs
Definition: psauxmod.c:31