zenilib: zenilib/jni/external/freetype2/include/freetype/internal/psaux.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
psaux.h
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* psaux.h */
4 /* */
5 /* Auxiliary functions and data structures related to PostScript fonts */
6 /* (specification). */
7 /* */
8 /* Copyright 1996-2001, 2002, 2003, 2004, 2006, 2008, 2009 by */
9 /* David Turner, Robert Wilhelm, and Werner Lemberg. */
10 /* */
11 /* This file is part of the FreeType project, and may only be used, */
12 /* modified, and distributed under the terms of the FreeType project */
13 /* license, LICENSE.TXT. By continuing to use, modify, or distribute */
14 /* this file you indicate that you have read the license and */
15 /* understand and accept it fully. */
16 /* */
17 /***************************************************************************/
18
19
20 #ifndef __PSAUX_H__
21 #define __PSAUX_H__
22
23
24 #include <ft2build.h>
25 #include FT_INTERNAL_OBJECTS_H
26 #include FT_INTERNAL_TYPE1_TYPES_H
27 #include FT_SERVICE_POSTSCRIPT_CMAPS_H
28
29
30 FT_BEGIN_HEADER
31
32
33 /*************************************************************************/
34 /*************************************************************************/
35 /***** *****/
36 /***** T1_TABLE *****/
37 /***** *****/
38 /*************************************************************************/
39 /*************************************************************************/
40
41
42 typedef struct PS_TableRec_* PS_Table;
43 typedef const struct PS_Table_FuncsRec_* PS_Table_Funcs;
44
45
46 /*************************************************************************/
47 /* */
48 /* <Struct> */
49 /* PS_Table_FuncsRec */
50 /* */
51 /* <Description> */
52 /* A set of function pointers to manage PS_Table objects. */
53 /* */
54 /* <Fields> */
55 /* table_init :: Used to initialize a table. */
56 /* */
57 /* table_done :: Finalizes resp. destroy a given table. */
58 /* */
59 /* table_add :: Adds a new object to a table. */
60 /* */
61 /* table_release :: Releases table data, then finalizes it. */
62 /* */
63 typedef struct PS_Table_FuncsRec_
64 {
65 FT_Error
66 (*init)( PS_Table table,
67 FT_Int count,
68 FT_Memory memory );
69
70 void
71 (*done)( PS_Table table );
72
73 FT_Error
74 (*add)( PS_Table table,
75 FT_Int idx,
76 void* object,
77 FT_PtrDist length );
78
79 void
80 (*release)( PS_Table table );
81
82 } PS_Table_FuncsRec;
83
84
85 /*************************************************************************/
86 /* */
87 /* <Struct> */
88 /* PS_TableRec */
89 /* */
90 /* <Description> */
91 /* A PS_Table is a simple object used to store an array of objects in */
92 /* a single memory block. */
93 /* */
94 /* <Fields> */
95 /* block :: The address in memory of the growheap's block. This */
96 /* can change between two object adds, due to */
97 /* reallocation. */
98 /* */
99 /* cursor :: The current top of the grow heap within its block. */
100 /* */
101 /* capacity :: The current size of the heap block. Increments by */
102 /* 1kByte chunks. */
103 /* */
104 /* max_elems :: The maximum number of elements in table. */
105 /* */
106 /* num_elems :: The current number of elements in table. */
107 /* */
108 /* elements :: A table of element addresses within the block. */
109 /* */
110 /* lengths :: A table of element sizes within the block. */
111 /* */
112 /* memory :: The object used for memory operations */
113 /* (alloc/realloc). */
114 /* */
115 /* funcs :: A table of method pointers for this object. */
116 /* */
117 typedef struct PS_TableRec_
118 {
119 FT_Byte* block; /* current memory block */
120 FT_Offset cursor; /* current cursor in memory block */
121 FT_Offset capacity; /* current size of memory block */
122 FT_Long init;
123
124 FT_Int max_elems;
125 FT_Int num_elems;
126 FT_Byte** elements; /* addresses of table elements */
127 FT_PtrDist* lengths; /* lengths of table elements */
128
129 FT_Memory memory;
130 PS_Table_FuncsRec funcs;
131
132 } PS_TableRec;
133
134
135 /*************************************************************************/
136 /*************************************************************************/
137 /***** *****/
138 /***** T1 FIELDS & TOKENS *****/
139 /***** *****/
140 /*************************************************************************/
141 /*************************************************************************/
142
143 typedef struct PS_ParserRec_* PS_Parser;
144
145 typedef struct T1_TokenRec_* T1_Token;
146
147 typedef struct T1_FieldRec_* T1_Field;
148
149
150 /* simple enumeration type used to identify token types */
151 typedef enum T1_TokenType_
152 {
153 T1_TOKEN_TYPE_NONE = 0,
154 T1_TOKEN_TYPE_ANY,
155 T1_TOKEN_TYPE_STRING,
156 T1_TOKEN_TYPE_ARRAY,
157 T1_TOKEN_TYPE_KEY, /* aka `name' */
158
159 /* do not remove */
160 T1_TOKEN_TYPE_MAX
161
162 } T1_TokenType;
163
164
165 /* a simple structure used to identify tokens */
166 typedef struct T1_TokenRec_
167 {
168 FT_Byte* start; /* first character of token in input stream */
169 FT_Byte* limit; /* first character after the token */
170 T1_TokenType type; /* type of token */
171
172 } T1_TokenRec;
173
174
175 /* enumeration type used to identify object fields */
176 typedef enum T1_FieldType_
177 {
178 T1_FIELD_TYPE_NONE = 0,
179 T1_FIELD_TYPE_BOOL,
180 T1_FIELD_TYPE_INTEGER,
181 T1_FIELD_TYPE_FIXED,
182 T1_FIELD_TYPE_FIXED_1000,
183 T1_FIELD_TYPE_STRING,
184 T1_FIELD_TYPE_KEY,
185 T1_FIELD_TYPE_BBOX,
186 T1_FIELD_TYPE_INTEGER_ARRAY,
187 T1_FIELD_TYPE_FIXED_ARRAY,
188 T1_FIELD_TYPE_CALLBACK,
189
190 /* do not remove */
191 T1_FIELD_TYPE_MAX
192
193 } T1_FieldType;
194
195
196 typedef enum T1_FieldLocation_
197 {
198 T1_FIELD_LOCATION_CID_INFO,
199 T1_FIELD_LOCATION_FONT_DICT,
200 T1_FIELD_LOCATION_FONT_EXTRA,
201 T1_FIELD_LOCATION_FONT_INFO,
202 T1_FIELD_LOCATION_PRIVATE,
203 T1_FIELD_LOCATION_BBOX,
204 T1_FIELD_LOCATION_LOADER,
205 T1_FIELD_LOCATION_FACE,
206 T1_FIELD_LOCATION_BLEND,
207
208 /* do not remove */
209 T1_FIELD_LOCATION_MAX
210
211 } T1_FieldLocation;
212
213
214 typedef void
215 (*T1_Field_ParseFunc)( FT_Face face,
216 FT_Pointer parser );
217
218
219 /* structure type used to model object fields */
220 typedef struct T1_FieldRec_
221 {
222 const char* ident; /* field identifier */
223 T1_FieldLocation location;
224 T1_FieldType type; /* type of field */
225 T1_Field_ParseFunc reader;
226 FT_UInt offset; /* offset of field in object */
227 FT_Byte size; /* size of field in bytes */
228 FT_UInt array_max; /* maximal number of elements for */
229 /* array */
230 FT_UInt count_offset; /* offset of element count for */
231 /* arrays; must not be zero if in */
232 /* use -- in other words, a */
233 /* `num_FOO' element must not */
234 /* start the used structure if we */
235 /* parse a `FOO' array */
236 FT_UInt dict; /* where we expect it */
237 } T1_FieldRec;
238
239 #define T1_FIELD_DICT_FONTDICT ( 1 << 0 ) /* also FontInfo and FDArray */
240 #define T1_FIELD_DICT_PRIVATE ( 1 << 1 )
241
242
243
244 #define T1_NEW_SIMPLE_FIELD( _ident, _type, _fname, _dict ) \
245 { \
246 _ident, T1CODE, _type, \
247 0, \
248 FT_FIELD_OFFSET( _fname ), \
249 FT_FIELD_SIZE( _fname ), \
250 0, 0, \
251 _dict \
252 },
253
254 #define T1_NEW_CALLBACK_FIELD( _ident, _reader, _dict ) \
255 { \
256 _ident, T1CODE, T1_FIELD_TYPE_CALLBACK, \
257 (T1_Field_ParseFunc)_reader, \
258 0, 0, \
259 0, 0, \
260 _dict \
261 },
262
263 #define T1_NEW_TABLE_FIELD( _ident, _type, _fname, _max, _dict ) \
264 { \
265 _ident, T1CODE, _type, \
266 0, \
267 FT_FIELD_OFFSET( _fname ), \
268 FT_FIELD_SIZE_DELTA( _fname ), \
269 _max, \
270 FT_FIELD_OFFSET( num_ ## _fname ), \
271 _dict \
272 },
273
274 #define T1_NEW_TABLE_FIELD2( _ident, _type, _fname, _max, _dict ) \
275 { \
276 _ident, T1CODE, _type, \
277 0, \
278 FT_FIELD_OFFSET( _fname ), \
279 FT_FIELD_SIZE_DELTA( _fname ), \
280 _max, 0, \
281 _dict \
282 },
283
284
285 #define T1_FIELD_BOOL( _ident, _fname, _dict ) \
286 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_BOOL, _fname, _dict )
287
288 #define T1_FIELD_NUM( _ident, _fname, _dict ) \
289 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_INTEGER, _fname, _dict )
290
291 #define T1_FIELD_FIXED( _ident, _fname, _dict ) \
292 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_FIXED, _fname, _dict )
293
294 #define T1_FIELD_FIXED_1000( _ident, _fname, _dict ) \
295 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_FIXED_1000, _fname, \
296 _dict )
297
298 #define T1_FIELD_STRING( _ident, _fname, _dict ) \
299 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_STRING, _fname, _dict )
300
301 #define T1_FIELD_KEY( _ident, _fname, _dict ) \
302 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_KEY, _fname, _dict )
303
304 #define T1_FIELD_BBOX( _ident, _fname, _dict ) \
305 T1_NEW_SIMPLE_FIELD( _ident, T1_FIELD_TYPE_BBOX, _fname, _dict )
306
307
308 #define T1_FIELD_NUM_TABLE( _ident, _fname, _fmax, _dict ) \
309 T1_NEW_TABLE_FIELD( _ident, T1_FIELD_TYPE_INTEGER_ARRAY, \
310 _fname, _fmax, _dict )
311
312 #define T1_FIELD_FIXED_TABLE( _ident, _fname, _fmax, _dict ) \
313 T1_NEW_TABLE_FIELD( _ident, T1_FIELD_TYPE_FIXED_ARRAY, \
314 _fname, _fmax, _dict )
315
316 #define T1_FIELD_NUM_TABLE2( _ident, _fname, _fmax, _dict ) \
317 T1_NEW_TABLE_FIELD2( _ident, T1_FIELD_TYPE_INTEGER_ARRAY, \
318 _fname, _fmax, _dict )
319
320 #define T1_FIELD_FIXED_TABLE2( _ident, _fname, _fmax, _dict ) \
321 T1_NEW_TABLE_FIELD2( _ident, T1_FIELD_TYPE_FIXED_ARRAY, \
322 _fname, _fmax, _dict )
323
324 #define T1_FIELD_CALLBACK( _ident, _name, _dict ) \
325 T1_NEW_CALLBACK_FIELD( _ident, _name, _dict )
326
327
328 /*************************************************************************/
329 /*************************************************************************/
330 /***** *****/
331 /***** T1 PARSER *****/
332 /***** *****/
333 /*************************************************************************/
334 /*************************************************************************/
335
336 typedef const struct PS_Parser_FuncsRec_* PS_Parser_Funcs;
337
338 typedef struct PS_Parser_FuncsRec_
339 {
340 void
341 (*init)( PS_Parser parser,
342 FT_Byte* base,
343 FT_Byte* limit,
344 FT_Memory memory );
345
346 void
347 (*done)( PS_Parser parser );
348
349 void
350 (*skip_spaces)( PS_Parser parser );
351 void
352 (*skip_PS_token)( PS_Parser parser );
353
354 FT_Long
355 (*to_int)( PS_Parser parser );
356 FT_Fixed
357 (*to_fixed)( PS_Parser parser,
358 FT_Int power_ten );
359
360 FT_Error
361 (*to_bytes)( PS_Parser parser,
362 FT_Byte* bytes,
363 FT_Offset max_bytes,
364 FT_Long* pnum_bytes,
365 FT_Bool delimiters );
366
367 FT_Int
368 (*to_coord_array)( PS_Parser parser,
369 FT_Int max_coords,
370 FT_Short* coords );
371 FT_Int
372 (*to_fixed_array)( PS_Parser parser,
373 FT_Int max_values,
374 FT_Fixed* values,
375 FT_Int power_ten );
376
377 void
378 (*to_token)( PS_Parser parser,
379 T1_Token token );
380 void
381 (*to_token_array)( PS_Parser parser,
382 T1_Token tokens,
383 FT_UInt max_tokens,
384 FT_Int* pnum_tokens );
385
386 FT_Error
387 (*load_field)( PS_Parser parser,
388 const T1_Field field,
389 void** objects,
390 FT_UInt max_objects,
391 FT_ULong* pflags );
392
393 FT_Error
394 (*load_field_table)( PS_Parser parser,
395 const T1_Field field,
396 void** objects,
397 FT_UInt max_objects,
398 FT_ULong* pflags );
399
400 } PS_Parser_FuncsRec;
401
402
403 /*************************************************************************/
404 /* */
405 /* <Struct> */
406 /* PS_ParserRec */
407 /* */
408 /* <Description> */
409 /* A PS_Parser is an object used to parse a Type 1 font very quickly. */
410 /* */
411 /* <Fields> */
412 /* cursor :: The current position in the text. */
413 /* */
414 /* base :: Start of the processed text. */
415 /* */
416 /* limit :: End of the processed text. */
417 /* */
418 /* error :: The last error returned. */
419 /* */
420 /* memory :: The object used for memory operations (alloc/realloc). */
421 /* */
422 /* funcs :: A table of functions for the parser. */
423 /* */
424 typedef struct PS_ParserRec_
425 {
426 FT_Byte* cursor;
427 FT_Byte* base;
428 FT_Byte* limit;
429 FT_Error error;
430 FT_Memory memory;
431
432 PS_Parser_FuncsRec funcs;
433
434 } PS_ParserRec;
435
436
437 /*************************************************************************/
438 /*************************************************************************/
439 /***** *****/
440 /***** T1 BUILDER *****/
441 /***** *****/
442 /*************************************************************************/
443 /*************************************************************************/
444
445
446 typedef struct T1_BuilderRec_* T1_Builder;
447
448
449 typedef FT_Error
450 (*T1_Builder_Check_Points_Func)( T1_Builder builder,
451 FT_Int count );
452
453 typedef void
454 (*T1_Builder_Add_Point_Func)( T1_Builder builder,
455 FT_Pos x,
456 FT_Pos y,
457 FT_Byte flag );
458
459 typedef FT_Error
460 (*T1_Builder_Add_Point1_Func)( T1_Builder builder,
461 FT_Pos x,
462 FT_Pos y );
463
464 typedef FT_Error
465 (*T1_Builder_Add_Contour_Func)( T1_Builder builder );
466
467 typedef FT_Error
468 (*T1_Builder_Start_Point_Func)( T1_Builder builder,
469 FT_Pos x,
470 FT_Pos y );
471
472 typedef void
473 (*T1_Builder_Close_Contour_Func)( T1_Builder builder );
474
475
476 typedef const struct T1_Builder_FuncsRec_* T1_Builder_Funcs;
477
478 typedef struct T1_Builder_FuncsRec_
479 {
480 void
481 (*init)( T1_Builder builder,
482 FT_Face face,
483 FT_Size size,
484 FT_GlyphSlot slot,
485 FT_Bool hinting );
486
487 void
488 (*done)( T1_Builder builder );
489
490 T1_Builder_Check_Points_Func check_points;
491 T1_Builder_Add_Point_Func add_point;
492 T1_Builder_Add_Point1_Func add_point1;
493 T1_Builder_Add_Contour_Func add_contour;
494 T1_Builder_Start_Point_Func start_point;
495 T1_Builder_Close_Contour_Func close_contour;
496
497 } T1_Builder_FuncsRec;
498
499
500 /* an enumeration type to handle charstring parsing states */
501 typedef enum T1_ParseState_
502 {
503 T1_Parse_Start,
504 T1_Parse_Have_Width,
505 T1_Parse_Have_Moveto,
506 T1_Parse_Have_Path
507
508 } T1_ParseState;
509
510
511 /*************************************************************************/
512 /* */
513 /* <Structure> */
514 /* T1_BuilderRec */
515 /* */
516 /* <Description> */
517 /* A structure used during glyph loading to store its outline. */
518 /* */
519 /* <Fields> */
520 /* memory :: The current memory object. */
521 /* */
522 /* face :: The current face object. */
523 /* */
524 /* glyph :: The current glyph slot. */
525 /* */
526 /* loader :: XXX */
527 /* */
528 /* base :: The base glyph outline. */
529 /* */
530 /* current :: The current glyph outline. */
531 /* */
532 /* max_points :: maximum points in builder outline */
533 /* */
534 /* max_contours :: Maximal number of contours in builder outline. */
535 /* */
536 /* pos_x :: The horizontal translation (if composite glyph). */
537 /* */
538 /* pos_y :: The vertical translation (if composite glyph). */
539 /* */
540 /* left_bearing :: The left side bearing point. */
541 /* */
542 /* advance :: The horizontal advance vector. */
543 /* */
544 /* bbox :: Unused. */
545 /* */
546 /* parse_state :: An enumeration which controls the charstring */
547 /* parsing state. */
548 /* */
549 /* load_points :: If this flag is not set, no points are loaded. */
550 /* */
551 /* no_recurse :: Set but not used. */
552 /* */
553 /* metrics_only :: A boolean indicating that we only want to compute */
554 /* the metrics of a given glyph, not load all of its */
555 /* points. */
556 /* */
557 /* funcs :: An array of function pointers for the builder. */
558 /* */
559 typedef struct T1_BuilderRec_
560 {
561 FT_Memory memory;
562 FT_Face face;
563 FT_GlyphSlot glyph;
564 FT_GlyphLoader loader;
565 FT_Outline* base;
566 FT_Outline* current;
567
568 FT_Pos pos_x;
569 FT_Pos pos_y;
570
571 FT_Vector left_bearing;
572 FT_Vector advance;
573
574 FT_BBox bbox; /* bounding box */
575 T1_ParseState parse_state;
576 FT_Bool load_points;
577 FT_Bool no_recurse;
578
579 FT_Bool metrics_only;
580
581 void* hints_funcs; /* hinter-specific */
582 void* hints_globals; /* hinter-specific */
583
584 T1_Builder_FuncsRec funcs;
585
586 } T1_BuilderRec;
587
588
589 /*************************************************************************/
590 /*************************************************************************/
591 /***** *****/
592 /***** T1 DECODER *****/
593 /***** *****/
594 /*************************************************************************/
595 /*************************************************************************/
596
597 #if 0
598
599 /*************************************************************************/
600 /* */
601 /* T1_MAX_SUBRS_CALLS details the maximum number of nested sub-routine */
602 /* calls during glyph loading. */
603 /* */
604 #define T1_MAX_SUBRS_CALLS 8
605
606
607 /*************************************************************************/
608 /* */
609 /* T1_MAX_CHARSTRING_OPERANDS is the charstring stack's capacity. A */
610 /* minimum of 16 is required. */
611 /* */
612 #define T1_MAX_CHARSTRINGS_OPERANDS 32
613
614 #endif /* 0 */
615
616
617 typedef struct T1_Decoder_ZoneRec_
618 {
619 FT_Byte* cursor;
620 FT_Byte* base;
621 FT_Byte* limit;
622
623 } T1_Decoder_ZoneRec, *T1_Decoder_Zone;
624
625
626 typedef struct T1_DecoderRec_* T1_Decoder;
627 typedef const struct T1_Decoder_FuncsRec_* T1_Decoder_Funcs;
628
629
630 typedef FT_Error
631 (*T1_Decoder_Callback)( T1_Decoder decoder,
632 FT_UInt glyph_index );
633
634
635 typedef struct T1_Decoder_FuncsRec_
636 {
637 FT_Error
638 (*init)( T1_Decoder decoder,
639 FT_Face face,
640 FT_Size size,
641 FT_GlyphSlot slot,
642 FT_Byte** glyph_names,
643 PS_Blend blend,
644 FT_Bool hinting,
645 FT_Render_Mode hint_mode,
646 T1_Decoder_Callback callback );
647
648 void
649 (*done)( T1_Decoder decoder );
650
651 FT_Error
652 (*parse_charstrings)( T1_Decoder decoder,
653 FT_Byte* base,
654 FT_UInt len );
655
656 } T1_Decoder_FuncsRec;
657
658
659 typedef struct T1_DecoderRec_
660 {
661 T1_BuilderRec builder;
662
663 FT_Long stack[T1_MAX_CHARSTRINGS_OPERANDS];
664 FT_Long* top;
665
666 T1_Decoder_ZoneRec zones[T1_MAX_SUBRS_CALLS + 1];
667 T1_Decoder_Zone zone;
668
669 FT_Service_PsCMaps psnames; /* for seac */
670 FT_UInt num_glyphs;
671 FT_Byte** glyph_names;
672
673 FT_Int lenIV; /* internal for sub routine calls */
674 FT_UInt num_subrs;
675 FT_Byte** subrs;
676 FT_PtrDist* subrs_len; /* array of subrs length (optional) */
677
678 FT_Matrix font_matrix;
679 FT_Vector font_offset;
680
681 FT_Int flex_state;
682 FT_Int num_flex_vectors;
683 FT_Vector flex_vectors[7];
684
685 PS_Blend blend; /* for multiple master support */
686
687 FT_Render_Mode hint_mode;
688
689 T1_Decoder_Callback parse_callback;
690 T1_Decoder_FuncsRec funcs;
691
692 FT_Long* buildchar;
693 FT_UInt len_buildchar;
694
695 FT_Bool seac;
696
697 } T1_DecoderRec;
698
699
700 /*************************************************************************/
701 /*************************************************************************/
702 /***** *****/
703 /***** AFM PARSER *****/
704 /***** *****/
705 /*************************************************************************/
706 /*************************************************************************/
707
708 typedef struct AFM_ParserRec_* AFM_Parser;
709
710 typedef struct AFM_Parser_FuncsRec_
711 {
712 FT_Error
713 (*init)( AFM_Parser parser,
714 FT_Memory memory,
715 FT_Byte* base,
716 FT_Byte* limit );
717
718 void
719 (*done)( AFM_Parser parser );
720
721 FT_Error
722 (*parse)( AFM_Parser parser );
723
724 } AFM_Parser_FuncsRec;
725
726
727 typedef struct AFM_StreamRec_* AFM_Stream;
728
729
730 /*************************************************************************/
731 /* */
732 /* <Struct> */
733 /* AFM_ParserRec */
734 /* */
735 /* <Description> */
736 /* An AFM_Parser is a parser for the AFM files. */
737 /* */
738 /* <Fields> */
739 /* memory :: The object used for memory operations (alloc and */
740 /* realloc). */
741 /* */
742 /* stream :: This is an opaque object. */
743 /* */
744 /* FontInfo :: The result will be stored here. */
745 /* */
746 /* get_index :: A user provided function to get a glyph index by its */
747 /* name. */
748 /* */
749 typedef struct AFM_ParserRec_
750 {
751 FT_Memory memory;
752 AFM_Stream stream;
753
754 AFM_FontInfo FontInfo;
755
756 FT_Int
757 (*get_index)( const char* name,
758 FT_Offset len,
759 void* user_data );
760
761 void* user_data;
762
763 } AFM_ParserRec;
764
765
766 /*************************************************************************/
767 /*************************************************************************/
768 /***** *****/
769 /***** TYPE1 CHARMAPS *****/
770 /***** *****/
771 /*************************************************************************/
772 /*************************************************************************/
773
774 typedef const struct T1_CMap_ClassesRec_* T1_CMap_Classes;
775
776 typedef struct T1_CMap_ClassesRec_
777 {
778 FT_CMap_Class standard;
779 FT_CMap_Class expert;
780 FT_CMap_Class custom;
781 FT_CMap_Class unicode;
782
783 } T1_CMap_ClassesRec;
784
785
786 /*************************************************************************/
787 /*************************************************************************/
788 /***** *****/
789 /***** PSAux Module Interface *****/
790 /***** *****/
791 /*************************************************************************/
792 /*************************************************************************/
793
794 typedef struct PSAux_ServiceRec_
795 {
796 /* don't use `PS_Table_Funcs' and friends to avoid compiler warnings */
797 const PS_Table_FuncsRec* ps_table_funcs;
798 const PS_Parser_FuncsRec* ps_parser_funcs;
799 const T1_Builder_FuncsRec* t1_builder_funcs;
800 const T1_Decoder_FuncsRec* t1_decoder_funcs;
801
802 void
803 (*t1_decrypt)( FT_Byte* buffer,
804 FT_Offset length,
805 FT_UShort seed );
806
807 T1_CMap_Classes t1_cmap_classes;
808
809 /* fields after this comment line were added after version 2.1.10 */
810 const AFM_Parser_FuncsRec* afm_parser_funcs;
811
812 } PSAux_ServiceRec, *PSAux_Service;
813
814 /* backwards-compatible type definition */
815 typedef PSAux_ServiceRec PSAux_Interface;
816
817
818 /*************************************************************************/
819 /*************************************************************************/
820 /***** *****/
821 /***** Some convenience functions *****/
822 /***** *****/
823 /*************************************************************************/
824 /*************************************************************************/
825
826 #define IS_PS_NEWLINE( ch ) \
827 ( (ch) == '\r' || \
828 (ch) == '\n' )
829
830 #define IS_PS_SPACE( ch ) \
831 ( (ch) == ' ' || \
832 IS_PS_NEWLINE( ch ) || \
833 (ch) == '\t' || \
834 (ch) == '\f' || \
835 (ch) == '\0' )
836
837 #define IS_PS_SPECIAL( ch ) \
838 ( (ch) == '/' || \
839 (ch) == '(' || (ch) == ')' || \
840 (ch) == '<' || (ch) == '>' || \
841 (ch) == '[' || (ch) == ']' || \
842 (ch) == '{' || (ch) == '}' || \
843 (ch) == '%' )
844
845 #define IS_PS_DELIM( ch ) \
846 ( IS_PS_SPACE( ch ) || \
847 IS_PS_SPECIAL( ch ) )
848
849 #define IS_PS_DIGIT( ch ) \
850 ( (ch) >= '0' && (ch) <= '9' )
851
852 #define IS_PS_XDIGIT( ch ) \
853 ( IS_PS_DIGIT( ch ) || \
854 ( (ch) >= 'A' && (ch) <= 'F' ) || \
855 ( (ch) >= 'a' && (ch) <= 'f' ) )
856
857 #define IS_PS_BASE85( ch ) \
858 ( (ch) >= '!' && (ch) <= 'u' )
859
860 #define IS_PS_TOKEN( cur, limit, token ) \
861 ( (char)(cur)[0] == (token)[0] && \
862 ( (cur) + sizeof ( (token) ) == (limit) || \
863 ( (cur) + sizeof( (token) ) < (limit) && \
864 IS_PS_DELIM( (cur)[sizeof ( (token) ) - 1] ) ) ) && \
865 ft_strncmp( (char*)(cur), (token), sizeof ( (token) ) - 1 ) == 0 )
866
867
868 FT_END_HEADER
869
870 #endif /* __PSAUX_H__ */
871
872
873 /* END */
T1_Decoder_ZoneRec_
Definition: psaux.h:617
AFM_ParserRec_
Definition: psaux.h:749
PSAux_ServiceRec_::t1_cmap_classes
T1_CMap_Classes t1_cmap_classes
Definition: psaux.h:807
T1_TokenType
enum T1_TokenType_ T1_TokenType
table
GLenum GLsizei GLenum GLenum const GLvoid * table
Definition: glew.h:4422
T1_Decoder_FuncsRec_
Definition: psaux.h:635
FT_SizeRec_
Definition: freetype.h:1395
FT_Error
int FT_Error
Definition: fttypes.h:296
T1_CMap_ClassesRec_
Definition: psaux.h:776
PS_Parser_FuncsRec_::skip_PS_token
void(* skip_PS_token)(PS_Parser parser)
Definition: psaux.h:352
T1_Builder_FuncsRec_::start_point
T1_Builder_Start_Point_Func start_point
Definition: psaux.h:494
T1_FieldLocation_
T1_FieldLocation_
Definition: psaux.h:196
T1_ParseState_
T1_ParseState_
Definition: psaux.h:501
T1_Builder_FuncsRec
struct T1_Builder_FuncsRec_ T1_Builder_FuncsRec
FT_PtrDist
ft_ptrdiff_t FT_PtrDist
Definition: fttypes.h:333
FT_Long
signed long FT_Long
Definition: fttypes.h:238
T1_BuilderRec_
Definition: psaux.h:559
FT_ULong
unsigned long FT_ULong
Definition: fttypes.h:249
PSAux_ServiceRec_::afm_parser_funcs
const AFM_Parser_FuncsRec * afm_parser_funcs
Definition: psaux.h:810
FT_Pos
FT_BEGIN_HEADER typedef signed long FT_Pos
Definition: ftimage.h:59
PS_Parser_FuncsRec
struct PS_Parser_FuncsRec_ PS_Parser_FuncsRec
FT_GlyphSlotRec_
Definition: freetype.h:1605
T1_Builder_Funcs
struct T1_Builder_FuncsRec_ * T1_Builder_Funcs
Definition: psaux.h:476
void
GLvoid **typedef void(GLAPIENTRY *PFNGLGETVERTEXATTRIBDVPROC)(GLuint
Definition: glew.h:1824
T1_CMap_ClassesRec_::expert
FT_CMap_Class expert
Definition: psaux.h:779
T1_FIELD_LOCATION_LOADER
Definition: psaux.h:204
AFM_Stream
struct AFM_StreamRec_ * AFM_Stream
Definition: psaux.h:727
FT_END_HEADER
#define FT_END_HEADER
Definition: ftheader.h:54
T1_FieldRec
struct T1_FieldRec_ T1_FieldRec
PSAux_ServiceRec_::t1_decoder_funcs
const T1_Decoder_FuncsRec * t1_decoder_funcs
Definition: psaux.h:800
AFM_ParserRec_::memory
FT_Memory memory
Definition: psaux.h:751
T1_FieldType
enum T1_FieldType_ T1_FieldType
T1_Decoder
struct T1_DecoderRec_ * T1_Decoder
Definition: psaux.h:626
AFM_ParserRec
struct AFM_ParserRec_ AFM_ParserRec
FT_Int
signed int FT_Int
Definition: fttypes.h:216
T1_Parse_Have_Moveto
Definition: psaux.h:505
T1_FieldLocation
enum T1_FieldLocation_ T1_FieldLocation
T1_FIELD_LOCATION_MAX
Definition: psaux.h:209
T1_DecoderRec_::len_buildchar
FT_UInt len_buildchar
Definition: psaux.h:693
T1_Decoder_ZoneRec
struct T1_Decoder_ZoneRec_ T1_Decoder_ZoneRec
PS_Parser_FuncsRec_::to_fixed
FT_Fixed(* to_fixed)(PS_Parser parser, FT_Int power_ten)
Definition: psaux.h:357
FT_Render_Mode
enum FT_Render_Mode_ FT_Render_Mode
T1_BuilderRec_::no_recurse
FT_Bool no_recurse
Definition: psaux.h:577
T1_Builder_Close_Contour_Func
void(* T1_Builder_Close_Contour_Func)(T1_Builder builder)
Definition: psaux.h:473
FT_Matrix_
Definition: fttypes.h:381
T1_CMap_ClassesRec_::standard
FT_CMap_Class standard
Definition: psaux.h:778
PS_Parser_FuncsRec_::to_coord_array
FT_Int(* to_coord_array)(PS_Parser parser, FT_Int max_coords, FT_Short *coords)
Definition: psaux.h:368
T1_FIELD_LOCATION_PRIVATE
Definition: psaux.h:202
PS_Parser_FuncsRec_::skip_spaces
void(* skip_spaces)(PS_Parser parser)
Definition: psaux.h:350
object
GLuint object
Definition: gl2ext.h:1080
T1_DecoderRec_::lenIV
FT_Int lenIV
Definition: psaux.h:673
T1_FIELD_LOCATION_FONT_DICT
Definition: psaux.h:199
x
EGLSurface EGLint x
Definition: eglext.h:293
T1_Parse_Have_Width
Definition: psaux.h:504
T1_DecoderRec_::num_glyphs
FT_UInt num_glyphs
Definition: psaux.h:670
T1_DecoderRec_::num_flex_vectors
FT_Int num_flex_vectors
Definition: psaux.h:682
PS_ParserRec_
Definition: psaux.h:424
T1_Builder_FuncsRec_::add_point1
T1_Builder_Add_Point1_Func add_point1
Definition: psaux.h:492
coords
GLenum GLuint coords
Definition: glew.h:7189
T1_CMap_ClassesRec_::custom
FT_CMap_Class custom
Definition: psaux.h:780
FT_Outline_
Definition: ftimage.h:383
AFM_Parser_FuncsRec_::init
FT_Error(* init)(AFM_Parser parser, FT_Memory memory, FT_Byte *base, FT_Byte *limit)
Definition: psaux.h:713
T1_DecoderRec_::subrs_len
FT_PtrDist * subrs_len
Definition: psaux.h:676
PSAux_Interface
PSAux_ServiceRec PSAux_Interface
Definition: psaux.h:815
T1_FIELD_LOCATION_BLEND
Definition: psaux.h:206
PSAux_ServiceRec_::ps_table_funcs
const PS_Table_FuncsRec * ps_table_funcs
Definition: psaux.h:797
T1_BuilderRec_::left_bearing
FT_Vector left_bearing
Definition: psaux.h:571
T1_Builder_FuncsRec_::done
void(* done)(T1_Builder builder)
Definition: psaux.h:488
PS_Table_Funcs
struct PS_Table_FuncsRec_ * PS_Table_Funcs
Definition: psaux.h:43
T1_DecoderRec_::zone
T1_Decoder_Zone zone
Definition: psaux.h:667
name
EGLImageKHR EGLint * name
Definition: eglext.h:284
T1_TokenRec
struct T1_TokenRec_ T1_TokenRec
T1_DecoderRec_::parse_callback
T1_Decoder_Callback parse_callback
Definition: psaux.h:689
T1_Parse_Have_Path
Definition: psaux.h:506
PSAux_ServiceRec_::t1_builder_funcs
const T1_Builder_FuncsRec * t1_builder_funcs
Definition: psaux.h:799
T1_Builder_Check_Points_Func
FT_Error(* T1_Builder_Check_Points_Func)(T1_Builder builder, FT_Int count)
Definition: psaux.h:450
AFM_ParserRec_::user_data
void * user_data
Definition: psaux.h:761
PS_TableRec_::cursor
FT_Offset cursor
Definition: psaux.h:120
len
GLenum GLsizei len
Definition: glew.h:7035
PS_TableRec_::init
FT_Long init
Definition: psaux.h:122
T1_BuilderRec_::base
FT_Outline * base
Definition: psaux.h:565
PS_Parser_FuncsRec_::to_fixed_array
FT_Int(* to_fixed_array)(PS_Parser parser, FT_Int max_values, FT_Fixed *values, FT_Int power_ten)
Definition: psaux.h:372
PSAux_ServiceRec_::ps_parser_funcs
const PS_Parser_FuncsRec * ps_parser_funcs
Definition: psaux.h:798
T1_Builder_FuncsRec_::check_points
T1_Builder_Check_Points_Func check_points
Definition: psaux.h:490
FT_Bool
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:104
T1_FIELD_LOCATION_FONT_EXTRA
Definition: psaux.h:200
T1_CMap_Classes
struct T1_CMap_ClassesRec_ * T1_CMap_Classes
Definition: psaux.h:774
T1_BuilderRec_::loader
FT_GlyphLoader loader
Definition: psaux.h:564
PS_TableRec_::lengths
FT_PtrDist * lengths
Definition: psaux.h:127
PS_TableRec_::max_elems
FT_Int max_elems
Definition: psaux.h:124
T1_BuilderRec_::glyph
FT_GlyphSlot glyph
Definition: psaux.h:563
FT_GlyphLoader
typedefFT_BEGIN_HEADER struct FT_GlyphLoaderRec_ * FT_GlyphLoader
Definition: ftgloadr.h:43
T1_BuilderRec_::pos_y
FT_Pos pos_y
Definition: psaux.h:569
FT_Byte
unsigned char FT_Byte
Definition: fttypes.h:150
FT_BEGIN_HEADER
#define FT_BEGIN_HEADER
Definition: ftheader.h:36
PS_ParserRec
struct PS_ParserRec_ PS_ParserRec
T1_FIELD_LOCATION_FACE
Definition: psaux.h:205
PS_Parser_Funcs
struct PS_Parser_FuncsRec_ * PS_Parser_Funcs
Definition: psaux.h:336
AFM_ParserRec_::stream
AFM_Stream stream
Definition: psaux.h:752
T1_FIELD_LOCATION_CID_INFO
Definition: psaux.h:198
T1_Decoder_FuncsRec_::init
FT_Error(* 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 callback)
Definition: psaux.h:638
AFM_Parser_FuncsRec_
Definition: psaux.h:710
PS_Table_FuncsRec_
Definition: psaux.h:63
T1_TOKEN_TYPE_NONE
Definition: psaux.h:153
PS_Parser
struct PS_ParserRec_ * PS_Parser
Definition: psaux.h:143
buffer
EGLContext EGLenum EGLClientBuffer buffer
Definition: eglext.h:87
T1_TOKEN_TYPE_MAX
Definition: psaux.h:160
PS_BlendRec_
Definition: t1tables.h:262
T1_DecoderRec_::blend
PS_Blend blend
Definition: psaux.h:685
PS_Table_FuncsRec_::init
FT_Error(* init)(PS_Table table, FT_Int count, FT_Memory memory)
Definition: psaux.h:66
AFM_Parser_FuncsRec
struct AFM_Parser_FuncsRec_ AFM_Parser_FuncsRec
PS_Parser_FuncsRec_::init
void(* init)(PS_Parser parser, FT_Byte *base, FT_Byte *limit, FT_Memory memory)
Definition: psaux.h:341
PS_TableRec_::block
FT_Byte * block
Definition: psaux.h:119
T1_FIELD_TYPE_STRING
Definition: psaux.h:183
T1_Builder_FuncsRec_::add_contour
T1_Builder_Add_Contour_Func add_contour
Definition: psaux.h:493
T1_Decoder_FuncsRec_::parse_charstrings
FT_Error(* parse_charstrings)(T1_Decoder decoder, FT_Byte *base, FT_UInt len)
Definition: psaux.h:652
T1_DecoderRec_::num_subrs
FT_UInt num_subrs
Definition: psaux.h:674
PS_TableRec_::funcs
PS_Table_FuncsRec funcs
Definition: psaux.h:130
T1_FIELD_TYPE_FIXED_1000
Definition: psaux.h:182
T1_Field
struct T1_FieldRec_ * T1_Field
Definition: psaux.h:147
PS_ParserRec_::funcs
PS_Parser_FuncsRec funcs
Definition: psaux.h:432
T1_DecoderRec_::builder
T1_BuilderRec builder
Definition: psaux.h:661
T1_FIELD_TYPE_KEY
Definition: psaux.h:184
T1_FieldRec_::array_max
FT_UInt array_max
Definition: psaux.h:228
FT_FaceRec_
Definition: freetype.h:912
PS_TableRec_::memory
FT_Memory memory
Definition: psaux.h:129
PS_ParserRec_::cursor
FT_Byte * cursor
Definition: psaux.h:426
idx
FT_UInt idx
Definition: cffcmap.c:125
AFM_FontInfoRec_
Definition: t1types.h:167
PSAux_ServiceRec_::t1_decrypt
void(* t1_decrypt)(FT_Byte *buffer, FT_Offset length, FT_UShort seed)
Definition: psaux.h:803
length
GLsizei GLsizei * length
Definition: gl2ext.h:792
T1_ParseState
enum T1_ParseState_ T1_ParseState
PS_Parser_FuncsRec_::to_token
void(* to_token)(PS_Parser parser, T1_Token token)
Definition: psaux.h:378
T1_FIELD_TYPE_FIXED_ARRAY
Definition: psaux.h:187
T1_DecoderRec_::flex_vectors
FT_Vector flex_vectors[7]
Definition: psaux.h:683
T1_TokenRec_::start
FT_Byte * start
Definition: psaux.h:168
FT_Pointer
void * FT_Pointer
Definition: fttypes.h:307
T1_TokenRec_
Definition: psaux.h:166
count
GLint GLsizei count
Definition: gl2ext.h:1011
face
GLenum face
Definition: gl2ext.h:1490
T1_BuilderRec_::parse_state
T1_ParseState parse_state
Definition: psaux.h:575
T1_BuilderRec_::current
FT_Outline * current
Definition: psaux.h:566
PS_Table_FuncsRec
struct PS_Table_FuncsRec_ PS_Table_FuncsRec
PS_Table_FuncsRec_::add
FT_Error(* add)(PS_Table table, FT_Int idx, void *object, FT_PtrDist length)
Definition: psaux.h:74
PSAux_Service
struct PSAux_ServiceRec_ * PSAux_Service
PS_Parser_FuncsRec_::load_field
FT_Error(* load_field)(PS_Parser parser, const T1_Field field, void **objects, FT_UInt max_objects, FT_ULong *pflags)
Definition: psaux.h:387
T1_Builder_FuncsRec_::close_contour
T1_Builder_Close_Contour_Func close_contour
Definition: psaux.h:495
T1_BuilderRec_::funcs
T1_Builder_FuncsRec funcs
Definition: psaux.h:584
T1_Field_ParseFunc
void(* T1_Field_ParseFunc)(FT_Face face, FT_Pointer parser)
Definition: psaux.h:215
T1_DecoderRec_::funcs
T1_Decoder_FuncsRec funcs
Definition: psaux.h:690
T1_FIELD_LOCATION_BBOX
Definition: psaux.h:203
limit
GLint limit
Definition: glew.h:11829
T1_FIELD_LOCATION_FONT_INFO
Definition: psaux.h:201
FT_Vector_
Definition: ftimage.h:75
T1_DecoderRec_::psnames
FT_Service_PsCMaps psnames
Definition: psaux.h:669
PS_Parser_FuncsRec_::to_token_array
void(* to_token_array)(PS_Parser parser, T1_Token tokens, FT_UInt max_tokens, FT_Int *pnum_tokens)
Definition: psaux.h:381
T1_FieldRec_::size
FT_Byte size
Definition: psaux.h:227
T1_Builder_Add_Point1_Func
FT_Error(* T1_Builder_Add_Point1_Func)(T1_Builder builder, FT_Pos x, FT_Pos y)
Definition: psaux.h:460
T1_BuilderRec_::load_points
FT_Bool load_points
Definition: psaux.h:576
T1_FieldRec_::type
T1_FieldType type
Definition: psaux.h:224
T1_MAX_CHARSTRINGS_OPERANDS
#define T1_MAX_CHARSTRINGS_OPERANDS
Definition: ftoption.h:694
AFM_Parser
struct AFM_ParserRec_ * AFM_Parser
Definition: psaux.h:708
T1_FieldRec_::ident
const char * ident
Definition: psaux.h:222
PS_TableRec_
Definition: psaux.h:117
FT_Short
signed short FT_Short
Definition: fttypes.h:194
T1_Decoder_Callback
FT_Error(* T1_Decoder_Callback)(T1_Decoder decoder, FT_UInt glyph_index)
Definition: psaux.h:631
T1_DecoderRec_::font_matrix
FT_Matrix font_matrix
Definition: psaux.h:678
T1_FIELD_TYPE_BOOL
Definition: psaux.h:179
FT_Memory
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:66
T1_Builder_FuncsRec_::add_point
T1_Builder_Add_Point_Func add_point
Definition: psaux.h:491
PS_ParserRec_::memory
FT_Memory memory
Definition: psaux.h:430
T1_FIELD_TYPE_NONE
Definition: psaux.h:178
T1_Decoder_Funcs
struct T1_Decoder_FuncsRec_ * T1_Decoder_Funcs
Definition: psaux.h:627
T1_FIELD_TYPE_FIXED
Definition: psaux.h:181
T1_Token
struct T1_TokenRec_ * T1_Token
Definition: psaux.h:145
y
EGLSurface EGLint EGLint y
Definition: eglext.h:293
PS_ParserRec_::base
FT_Byte * base
Definition: psaux.h:427
T1_DecoderRec_::font_offset
FT_Vector font_offset
Definition: psaux.h:679
T1_Builder_FuncsRec_::init
void(* init)(T1_Builder builder, FT_Face face, FT_Size size, FT_GlyphSlot slot, FT_Bool hinting)
Definition: psaux.h:481
T1_Decoder_ZoneRec_::limit
FT_Byte * limit
Definition: psaux.h:621
T1_BuilderRec
struct T1_BuilderRec_ T1_BuilderRec
PS_Parser_FuncsRec_
Definition: psaux.h:338
PS_Table
typedefFT_BEGIN_HEADER struct PS_TableRec_ * PS_Table
Definition: psaux.h:42
T1_Builder_Add_Point_Func
void(* T1_Builder_Add_Point_Func)(T1_Builder builder, FT_Pos x, FT_Pos y, FT_Byte flag)
Definition: psaux.h:454
T1_FieldType_
T1_FieldType_
Definition: psaux.h:176
T1_BuilderRec_::bbox
FT_BBox bbox
Definition: psaux.h:574
AFM_Parser_FuncsRec_::parse
FT_Error(* parse)(AFM_Parser parser)
Definition: psaux.h:722
T1_DecoderRec_::hint_mode
FT_Render_Mode hint_mode
Definition: psaux.h:687
T1_MAX_SUBRS_CALLS
#define T1_MAX_SUBRS_CALLS
Definition: ftoption.h:684
T1_Builder
struct T1_BuilderRec_ * T1_Builder
Definition: psaux.h:446
T1_BuilderRec_::metrics_only
FT_Bool metrics_only
Definition: psaux.h:579
ft2build.h
T1_BuilderRec_::pos_x
FT_Pos pos_x
Definition: psaux.h:568
PS_Parser_FuncsRec_::load_field_table
FT_Error(* load_field_table)(PS_Parser parser, const T1_Field field, void **objects, FT_UInt max_objects, FT_ULong *pflags)
Definition: psaux.h:394
FT_Fixed
signed long FT_Fixed
Definition: fttypes.h:284
T1_TOKEN_TYPE_KEY
Definition: psaux.h:157
T1_Builder_Start_Point_Func
FT_Error(* T1_Builder_Start_Point_Func)(T1_Builder builder, FT_Pos x, FT_Pos y)
Definition: psaux.h:468
T1_DecoderRec_::subrs
FT_Byte ** subrs
Definition: psaux.h:675
T1_FieldRec_::reader
T1_Field_ParseFunc reader
Definition: psaux.h:225
T1_TOKEN_TYPE_STRING
Definition: psaux.h:155
T1_Decoder_ZoneRec_::base
FT_Byte * base
Definition: psaux.h:620
T1_DecoderRec_
Definition: psaux.h:659
FT_UInt
unsigned int FT_UInt
Definition: fttypes.h:227
PS_Parser_FuncsRec_::to_bytes
FT_Error(* to_bytes)(PS_Parser parser, FT_Byte *bytes, FT_Offset max_bytes, FT_Long *pnum_bytes, FT_Bool delimiters)
Definition: psaux.h:361
T1_FieldRec_::dict
FT_UInt dict
Definition: psaux.h:236
T1_BuilderRec_::face
FT_Face face
Definition: psaux.h:562
AFM_Parser_FuncsRec_::done
void(* done)(AFM_Parser parser)
Definition: psaux.h:719
T1_BuilderRec_::hints_globals
void * hints_globals
Definition: psaux.h:582
T1_FIELD_TYPE_MAX
Definition: psaux.h:191
PS_ParserRec_::error
FT_Error error
Definition: psaux.h:429
T1_FieldRec_::count_offset
FT_UInt count_offset
Definition: psaux.h:230
T1_DecoderRec_::glyph_names
FT_Byte ** glyph_names
Definition: psaux.h:671
PS_TableRec_::num_elems
FT_Int num_elems
Definition: psaux.h:125
T1_CMap_ClassesRec_::unicode
FT_CMap_Class unicode
Definition: psaux.h:781
PS_Parser_FuncsRec_::to_int
FT_Long(* to_int)(PS_Parser parser)
Definition: psaux.h:355
T1_FIELD_TYPE_INTEGER
Definition: psaux.h:180
T1_BuilderRec_::advance
FT_Vector advance
Definition: psaux.h:572
T1_TokenType_
T1_TokenType_
Definition: psaux.h:151
T1_FieldRec_::location
T1_FieldLocation location
Definition: psaux.h:223
T1_Decoder_FuncsRec_::done
void(* done)(T1_Decoder decoder)
Definition: psaux.h:649
T1_CMap_ClassesRec
struct T1_CMap_ClassesRec_ T1_CMap_ClassesRec
T1_BuilderRec_::hints_funcs
void * hints_funcs
Definition: psaux.h:581
T1_BuilderRec_::memory
FT_Memory memory
Definition: psaux.h:561
T1_Decoder_FuncsRec
struct T1_Decoder_FuncsRec_ T1_Decoder_FuncsRec
T1_DecoderRec_::flex_state
FT_Int flex_state
Definition: psaux.h:681
T1_FieldRec_::offset
FT_UInt offset
Definition: psaux.h:226
T1_FIELD_TYPE_CALLBACK
Definition: psaux.h:188
PS_Table_FuncsRec_::release
void(* release)(PS_Table table)
Definition: psaux.h:80
PSAux_ServiceRec
struct PSAux_ServiceRec_ PSAux_ServiceRec
T1_FIELD_TYPE_INTEGER_ARRAY
Definition: psaux.h:186
T1_DecoderRec_::buildchar
FT_Long * buildchar
Definition: psaux.h:692
AFM_ParserRec_::FontInfo
AFM_FontInfo FontInfo
Definition: psaux.h:754
FT_CMap_ClassRec_
Definition: ftobjs.h:190
T1_FieldRec_
Definition: psaux.h:220
AFM_ParserRec_::get_index
FT_Int(* get_index)(const char *name, FT_Offset len, void *user_data)
Definition: psaux.h:757
T1_DecoderRec_::seac
FT_Bool seac
Definition: psaux.h:695
T1_TOKEN_TYPE_ANY
Definition: psaux.h:154
T1_TokenRec_::type
T1_TokenType type
Definition: psaux.h:170
T1_TOKEN_TYPE_ARRAY
Definition: psaux.h:156
PS_TableRec_::capacity
FT_Offset capacity
Definition: psaux.h:121
PS_ParserRec_::limit
FT_Byte * limit
Definition: psaux.h:428
FT_UShort
unsigned short FT_UShort
Definition: fttypes.h:205
T1_Builder_FuncsRec_
Definition: psaux.h:478
T1_Decoder_Zone
struct T1_Decoder_ZoneRec_ * T1_Decoder_Zone
T1_Decoder_ZoneRec_::cursor
FT_Byte * cursor
Definition: psaux.h:619
PSAux_ServiceRec_
Definition: psaux.h:794
FT_BBox_
Definition: ftimage.h:116
PS_Table_FuncsRec_::done
void(* done)(PS_Table table)
Definition: psaux.h:71
T1_DecoderRec
struct T1_DecoderRec_ T1_DecoderRec
PS_TableRec
struct PS_TableRec_ PS_TableRec
T1_TokenRec_::limit
FT_Byte * limit
Definition: psaux.h:169
T1_Builder_Add_Contour_Func
FT_Error(* T1_Builder_Add_Contour_Func)(T1_Builder builder)
Definition: psaux.h:465
values
GLint GLsizei const GLuint64 * values
Definition: glew.h:3473
T1_Parse_Start
Definition: psaux.h:503
T1_DecoderRec_::zones
T1_Decoder_ZoneRec zones[T1_MAX_SUBRS_CALLS+1]
Definition: psaux.h:666
PS_TableRec_::elements
FT_Byte ** elements
Definition: psaux.h:126
FT_Offset
size_t FT_Offset
Definition: fttypes.h:320
T1_FIELD_TYPE_BBOX
Definition: psaux.h:185
PS_Parser_FuncsRec_::done
void(* done)(PS_Parser parser)
Definition: psaux.h:347
T1_DecoderRec_::stack
FT_Long stack[T1_MAX_CHARSTRINGS_OPERANDS]
Definition: psaux.h:663
T1_DecoderRec_::top
FT_Long * top
Definition: psaux.h:664
size
GLsizei size
Definition: gl2ext.h:1467