zenilib: zenilib/jni/external/freetype2/src/type1/t1objs.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
t1objs.c
Go to the documentation of this file.
1 /***************************************************************************/
2 /* */
3 /* t1objs.c */
4 /* */
5 /* Type 1 objects manager (body). */
6 /* */
7 /* Copyright 1996-2009, 2011 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 FT_INTERNAL_CALC_H
21 #include FT_INTERNAL_DEBUG_H
22 #include FT_INTERNAL_STREAM_H
23 #include FT_TRUETYPE_IDS_H
24
25 #include "t1gload.h"
26 #include "t1load.h"
27
28 #include "t1errors.h"
29
30 #ifndef T1_CONFIG_OPTION_NO_AFM
31 #include "t1afm.h"
32 #endif
33
34 #include FT_SERVICE_POSTSCRIPT_CMAPS_H
35 #include FT_INTERNAL_POSTSCRIPT_AUX_H
36
37
38 /*************************************************************************/
39 /* */
40 /* The macro FT_COMPONENT is used in trace mode. It is an implicit */
41 /* parameter of the FT_TRACE() and FT_ERROR() macros, used to print/log */
42 /* messages during execution. */
43 /* */
44 #undef FT_COMPONENT
45 #define FT_COMPONENT trace_t1objs
46
47
48 /*************************************************************************/
49 /* */
50 /* SIZE FUNCTIONS */
51 /* */
52 /* note that we store the global hints in the size's "internal" root */
53 /* field */
54 /* */
55 /*************************************************************************/
56
57
58 static PSH_Globals_Funcs
59 T1_Size_Get_Globals_Funcs( T1_Size size )
60 {
61 T1_Face face = (T1_Face)size->root.face;
62 PSHinter_Service pshinter = (PSHinter_Service)face->pshinter;
63 FT_Module module;
64
65
66 module = FT_Get_Module( size->root.face->driver->root.library,
67 "pshinter" );
68 return ( module && pshinter && pshinter->get_globals_funcs )
69 ? pshinter->get_globals_funcs( module )
70 : 0 ;
71 }
72
73
74 FT_LOCAL_DEF( void )
75 T1_Size_Done( FT_Size t1size ) /* T1_Size */
76 {
77 T1_Size size = (T1_Size)t1size;
78
79
80 if ( size->root.internal )
81 {
82 PSH_Globals_Funcs funcs;
83
84
85 funcs = T1_Size_Get_Globals_Funcs( size );
86 if ( funcs )
87 funcs->destroy( (PSH_Globals)size->root.internal );
88
89 size->root.internal = 0;
90 }
91 }
92
93
94 FT_LOCAL_DEF( FT_Error )
95 T1_Size_Init( FT_Size t1size ) /* T1_Size */
96 {
97 T1_Size size = (T1_Size)t1size;
98 FT_Error error = T1_Err_Ok;
99 PSH_Globals_Funcs funcs = T1_Size_Get_Globals_Funcs( size );
100
101
102 if ( funcs )
103 {
104 PSH_Globals globals;
105 T1_Face face = (T1_Face)size->root.face;
106
107
108 error = funcs->create( size->root.face->memory,
109 &face->type1.private_dict, &globals );
110 if ( !error )
111 size->root.internal = (FT_Size_Internal)(void*)globals;
112 }
113
114 return error;
115 }
116
117
118 FT_LOCAL_DEF( FT_Error )
119 T1_Size_Request( FT_Size t1size, /* T1_Size */
120 FT_Size_Request req )
121 {
122 T1_Size size = (T1_Size)t1size;
123 PSH_Globals_Funcs funcs = T1_Size_Get_Globals_Funcs( size );
124
125
126 FT_Request_Metrics( size->root.face, req );
127
128 if ( funcs )
129 funcs->set_scale( (PSH_Globals)size->root.internal,
130 size->root.metrics.x_scale,
131 size->root.metrics.y_scale,
132 0, 0 );
133
134 return T1_Err_Ok;
135 }
136
137
138 /*************************************************************************/
139 /* */
140 /* SLOT FUNCTIONS */
141 /* */
142 /*************************************************************************/
143
144 FT_LOCAL_DEF( void )
145 T1_GlyphSlot_Done( FT_GlyphSlot slot )
146 {
147 slot->internal->glyph_hints = 0;
148 }
149
150
151 FT_LOCAL_DEF( FT_Error )
152 T1_GlyphSlot_Init( FT_GlyphSlot slot )
153 {
154 T1_Face face;
155 PSHinter_Service pshinter;
156
157
158 face = (T1_Face)slot->face;
159 pshinter = (PSHinter_Service)face->pshinter;
160
161 if ( pshinter )
162 {
163 FT_Module module;
164
165
166 module = FT_Get_Module( slot->face->driver->root.library,
167 "pshinter" );
168 if ( module )
169 {
170 T1_Hints_Funcs funcs;
171
172
173 funcs = pshinter->get_t1_funcs( module );
174 slot->internal->glyph_hints = (void*)funcs;
175 }
176 }
177
178 return 0;
179 }
180
181
182 /*************************************************************************/
183 /* */
184 /* FACE FUNCTIONS */
185 /* */
186 /*************************************************************************/
187
188
189 /*************************************************************************/
190 /* */
191 /* <Function> */
192 /* T1_Face_Done */
193 /* */
194 /* <Description> */
195 /* The face object destructor. */
196 /* */
197 /* <Input> */
198 /* face :: A typeless pointer to the face object to destroy. */
199 /* */
200 FT_LOCAL_DEF( void )
201 T1_Face_Done( FT_Face t1face ) /* T1_Face */
202 {
203 T1_Face face = (T1_Face)t1face;
204 FT_Memory memory;
205 T1_Font type1;
206
207
208 if ( !face )
209 return;
210
211 memory = face->root.memory;
212 type1 = &face->type1;
213
214 #ifndef T1_CONFIG_OPTION_NO_MM_SUPPORT
215 /* release multiple masters information */
216 FT_ASSERT( ( face->len_buildchar == 0 ) == ( face->buildchar == NULL ) );
217
218 if ( face->buildchar )
219 {
220 FT_FREE( face->buildchar );
221
222 face->buildchar = NULL;
223 face->len_buildchar = 0;
224 }
225
226 T1_Done_Blend( face );
227 face->blend = 0;
228 #endif
229
230 /* release font info strings */
231 {
232 PS_FontInfo info = &type1->font_info;
233
234
235 FT_FREE( info->version );
236 FT_FREE( info->notice );
237 FT_FREE( info->full_name );
238 FT_FREE( info->family_name );
239 FT_FREE( info->weight );
240 }
241
242 /* release top dictionary */
243 FT_FREE( type1->charstrings_len );
244 FT_FREE( type1->charstrings );
245 FT_FREE( type1->glyph_names );
246
247 FT_FREE( type1->subrs );
248 FT_FREE( type1->subrs_len );
249
250 FT_FREE( type1->subrs_block );
251 FT_FREE( type1->charstrings_block );
252 FT_FREE( type1->glyph_names_block );
253
254 FT_FREE( type1->encoding.char_index );
255 FT_FREE( type1->encoding.char_name );
256 FT_FREE( type1->font_name );
257
258 #ifndef T1_CONFIG_OPTION_NO_AFM
259 /* release afm data if present */
260 if ( face->afm_data )
261 T1_Done_Metrics( memory, (AFM_FontInfo)face->afm_data );
262 #endif
263
264 /* release unicode map, if any */
265 #if 0
266 FT_FREE( face->unicode_map_rec.maps );
267 face->unicode_map_rec.num_maps = 0;
268 face->unicode_map = NULL;
269 #endif
270
271 face->root.family_name = NULL;
272 face->root.style_name = NULL;
273 }
274
275
276 /*************************************************************************/
277 /* */
278 /* <Function> */
279 /* T1_Face_Init */
280 /* */
281 /* <Description> */
282 /* The face object constructor. */
283 /* */
284 /* <Input> */
285 /* stream :: input stream where to load font data. */
286 /* */
287 /* face_index :: The index of the font face in the resource. */
288 /* */
289 /* num_params :: Number of additional generic parameters. Ignored. */
290 /* */
291 /* params :: Additional generic parameters. Ignored. */
292 /* */
293 /* <InOut> */
294 /* face :: The face record to build. */
295 /* */
296 /* <Return> */
297 /* FreeType error code. 0 means success. */
298 /* */
299 FT_LOCAL_DEF( FT_Error )
300 T1_Face_Init( FT_Stream stream,
301 FT_Face t1face, /* T1_Face */
302 FT_Int face_index,
303 FT_Int num_params,
304 FT_Parameter* params )
305 {
306 T1_Face face = (T1_Face)t1face;
307 FT_Error error;
308 FT_Service_PsCMaps psnames;
309 PSAux_Service psaux;
310 T1_Font type1 = &face->type1;
311 PS_FontInfo info = &type1->font_info;
312
313 FT_UNUSED( num_params );
314 FT_UNUSED( params );
315 FT_UNUSED( stream );
316
317
318 face->root.num_faces = 1;
319
320 FT_FACE_FIND_GLOBAL_SERVICE( face, psnames, POSTSCRIPT_CMAPS );
321 face->psnames = psnames;
322
323 face->psaux = FT_Get_Module_Interface( FT_FACE_LIBRARY( face ),
324 "psaux" );
325 psaux = (PSAux_Service)face->psaux;
326 if ( !psaux )
327 {
328 FT_ERROR(( "T1_Face_Init: cannot access `psaux' module\n" ));
329 error = T1_Err_Missing_Module;
330 goto Exit;
331 }
332
333 face->pshinter = FT_Get_Module_Interface( FT_FACE_LIBRARY( face ),
334 "pshinter" );
335
336 FT_TRACE2(( "Type 1 driver\n" ));
337
338 /* open the tokenizer; this will also check the font format */
339 error = T1_Open_Face( face );
340 if ( error )
341 goto Exit;
342
343 /* if we just wanted to check the format, leave successfully now */
344 if ( face_index < 0 )
345 goto Exit;
346
347 /* check the face index */
348 if ( face_index > 0 )
349 {
350 FT_ERROR(( "T1_Face_Init: invalid face index\n" ));
351 error = T1_Err_Invalid_Argument;
352 goto Exit;
353 }
354
355 /* now load the font program into the face object */
356
357 /* initialize the face object fields */
358
359 /* set up root face fields */
360 {
361 FT_Face root = (FT_Face)&face->root;
362
363
364 root->num_glyphs = type1->num_glyphs;
365 root->face_index = 0;
366
367 root->face_flags = FT_FACE_FLAG_SCALABLE |
368 FT_FACE_FLAG_HORIZONTAL |
369 FT_FACE_FLAG_GLYPH_NAMES |
370 FT_FACE_FLAG_HINTER;
371
372 if ( info->is_fixed_pitch )
373 root->face_flags |= FT_FACE_FLAG_FIXED_WIDTH;
374
375 if ( face->blend )
376 root->face_flags |= FT_FACE_FLAG_MULTIPLE_MASTERS;
377
378 /* XXX: TODO -- add kerning with .afm support */
379
380
381 /* The following code to extract the family and the style is very */
382 /* simplistic and might get some things wrong. For a full-featured */
383 /* algorithm you might have a look at the whitepaper given at */
384 /* */
385 /* http://blogs.msdn.com/text/archive/2007/04/23/wpf-font-selection-model.aspx */
386
387 /* get style name -- be careful, some broken fonts only */
388 /* have a `/FontName' dictionary entry! */
389 root->family_name = info->family_name;
390 root->style_name = NULL;
391
392 if ( root->family_name )
393 {
394 char* full = info->full_name;
395 char* family = root->family_name;
396
397
398 if ( full )
399 {
400 FT_Bool the_same = TRUE;
401
402
403 while ( *full )
404 {
405 if ( *full == *family )
406 {
407 family++;
408 full++;
409 }
410 else
411 {
412 if ( *full == ' ' || *full == '-' )
413 full++;
414 else if ( *family == ' ' || *family == '-' )
415 family++;
416 else
417 {
418 the_same = FALSE;
419
420 if ( !*family )
421 root->style_name = full;
422 break;
423 }
424 }
425 }
426
427 if ( the_same )
428 root->style_name = (char *)"Regular";
429 }
430 }
431 else
432 {
433 /* do we have a `/FontName'? */
434 if ( type1->font_name )
435 root->family_name = type1->font_name;
436 }
437
438 if ( !root->style_name )
439 {
440 if ( info->weight )
441 root->style_name = info->weight;
442 else
443 /* assume `Regular' style because we don't know better */
444 root->style_name = (char *)"Regular";
445 }
446
447 /* compute style flags */
448 root->style_flags = 0;
449 if ( info->italic_angle )
450 root->style_flags |= FT_STYLE_FLAG_ITALIC;
451 if ( info->weight )
452 {
453 if ( !ft_strcmp( info->weight, "Bold" ) ||
454 !ft_strcmp( info->weight, "Black" ) )
455 root->style_flags |= FT_STYLE_FLAG_BOLD;
456 }
457
458 /* no embedded bitmap support */
459 root->num_fixed_sizes = 0;
460 root->available_sizes = 0;
461
462 root->bbox.xMin = type1->font_bbox.xMin >> 16;
463 root->bbox.yMin = type1->font_bbox.yMin >> 16;
464 /* no `U' suffix here to 0xFFFF! */
465 root->bbox.xMax = ( type1->font_bbox.xMax + 0xFFFF ) >> 16;
466 root->bbox.yMax = ( type1->font_bbox.yMax + 0xFFFF ) >> 16;
467
468 /* Set units_per_EM if we didn't set it in t1_parse_font_matrix. */
469 if ( !root->units_per_EM )
470 root->units_per_EM = 1000;
471
472 root->ascender = (FT_Short)( root->bbox.yMax );
473 root->descender = (FT_Short)( root->bbox.yMin );
474
475 root->height = (FT_Short)( ( root->units_per_EM * 12 ) / 10 );
476 if ( root->height < root->ascender - root->descender )
477 root->height = (FT_Short)( root->ascender - root->descender );
478
479 /* now compute the maximum advance width */
480 root->max_advance_width =
481 (FT_Short)( root->bbox.xMax );
482 {
483 FT_Pos max_advance;
484
485
486 error = T1_Compute_Max_Advance( face, &max_advance );
487
488 /* in case of error, keep the standard width */
489 if ( !error )
490 root->max_advance_width = (FT_Short)FIXED_TO_INT( max_advance );
491 else
492 error = T1_Err_Ok; /* clear error */
493 }
494
495 root->max_advance_height = root->height;
496
497 root->underline_position = (FT_Short)info->underline_position;
498 root->underline_thickness = (FT_Short)info->underline_thickness;
499 }
500
501 {
502 FT_Face root = &face->root;
503
504
505 if ( psnames )
506 {
507 FT_CharMapRec charmap;
508 T1_CMap_Classes cmap_classes = psaux->t1_cmap_classes;
509 FT_CMap_Class clazz;
510
511
512 charmap.face = root;
513
514 /* first of all, try to synthesize a Unicode charmap */
515 charmap.platform_id = TT_PLATFORM_MICROSOFT;
516 charmap.encoding_id = TT_MS_ID_UNICODE_CS;
517 charmap.encoding = FT_ENCODING_UNICODE;
518
519 error = FT_CMap_New( cmap_classes->unicode, NULL, &charmap, NULL );
520 if ( error && FT_Err_No_Unicode_Glyph_Name != error )
521 goto Exit;
522 error = FT_Err_Ok;
523
524 /* now, generate an Adobe Standard encoding when appropriate */
525 charmap.platform_id = TT_PLATFORM_ADOBE;
526 clazz = NULL;
527
528 switch ( type1->encoding_type )
529 {
530 case T1_ENCODING_TYPE_STANDARD:
531 charmap.encoding = FT_ENCODING_ADOBE_STANDARD;
532 charmap.encoding_id = TT_ADOBE_ID_STANDARD;
533 clazz = cmap_classes->standard;
534 break;
535
536 case T1_ENCODING_TYPE_EXPERT:
537 charmap.encoding = FT_ENCODING_ADOBE_EXPERT;
538 charmap.encoding_id = TT_ADOBE_ID_EXPERT;
539 clazz = cmap_classes->expert;
540 break;
541
542 case T1_ENCODING_TYPE_ARRAY:
543 charmap.encoding = FT_ENCODING_ADOBE_CUSTOM;
544 charmap.encoding_id = TT_ADOBE_ID_CUSTOM;
545 clazz = cmap_classes->custom;
546 break;
547
548 case T1_ENCODING_TYPE_ISOLATIN1:
549 charmap.encoding = FT_ENCODING_ADOBE_LATIN_1;
550 charmap.encoding_id = TT_ADOBE_ID_LATIN_1;
551 clazz = cmap_classes->unicode;
552 break;
553
554 default:
555 ;
556 }
557
558 if ( clazz )
559 error = FT_CMap_New( clazz, NULL, &charmap, NULL );
560
561 #if 0
562 /* Select default charmap */
563 if (root->num_charmaps)
564 root->charmap = root->charmaps[0];
565 #endif
566 }
567 }
568
569 Exit:
570 return error;
571 }
572
573
574 /*************************************************************************/
575 /* */
576 /* <Function> */
577 /* T1_Driver_Init */
578 /* */
579 /* <Description> */
580 /* Initializes a given Type 1 driver object. */
581 /* */
582 /* <Input> */
583 /* driver :: A handle to the target driver object. */
584 /* */
585 /* <Return> */
586 /* FreeType error code. 0 means success. */
587 /* */
588 FT_LOCAL_DEF( FT_Error )
589 T1_Driver_Init( FT_Module driver )
590 {
591 FT_UNUSED( driver );
592
593 return T1_Err_Ok;
594 }
595
596
597 /*************************************************************************/
598 /* */
599 /* <Function> */
600 /* T1_Driver_Done */
601 /* */
602 /* <Description> */
603 /* Finalizes a given Type 1 driver. */
604 /* */
605 /* <Input> */
606 /* driver :: A handle to the target Type 1 driver. */
607 /* */
608 FT_LOCAL_DEF( void )
609 T1_Driver_Done( FT_Module driver )
610 {
611 FT_UNUSED( driver );
612 }
613
614
615 /* END */
FT_FaceRec_::units_per_EM
FT_UShort units_per_EM
Definition: freetype.h:938
T1_FontRec_::subrs_len
FT_PtrDist * subrs_len
Definition: t1types.h:109
PSH_Globals_FuncsRec_::set_scale
PSH_Globals_SetScaleFunc set_scale
Definition: pshints.h:62
PSAux_ServiceRec_::t1_cmap_classes
T1_CMap_Classes t1_cmap_classes
Definition: psaux.h:807
FIXED_TO_INT
#define FIXED_TO_INT(x)
Definition: ftcalc.h:168
PSH_Globals
typedefFT_BEGIN_HEADER struct PSH_GlobalsRec_ * PSH_Globals
Definition: pshints.h:41
FT_SizeRec_::face
FT_Face face
Definition: freetype.h:1397
FT_SizeRec_
Definition: freetype.h:1395
FT_Error
int FT_Error
Definition: fttypes.h:296
T1_CMap_ClassesRec_
Definition: psaux.h:776
T1_SizeRec_::root
FT_SizeRec root
Definition: t1objs.h:92
FT_FaceRec_::num_fixed_sizes
FT_Int num_fixed_sizes
Definition: freetype.h:925
T1_FaceRec_::type1
T1_FontRec type1
Definition: t1types.h:201
t1gload.h
T1_Face
struct T1_FaceRec_ * T1_Face
Definition: t1types.h:194
FT_Pos
FT_BEGIN_HEADER typedef signed long FT_Pos
Definition: ftimage.h:59
FT_GlyphSlotRec_
Definition: freetype.h:1605
T1_Hints_FuncsRec_
Definition: pshints.h:342
T1_Size_Done
T1_Size_Done(FT_Size t1size)
Definition: t1objs.c:75
T1_CMap_ClassesRec_::expert
FT_CMap_Class expert
Definition: psaux.h:779
T1_ENCODING_TYPE_ARRAY
Definition: t1tables.h:509
T1_FontRec_::private_dict
PS_PrivateRec private_dict
Definition: t1types.h:97
TT_ADOBE_ID_STANDARD
#define TT_ADOBE_ID_STANDARD
Definition: ttnameid.h:309
FT_FaceRec_::charmap
FT_CharMap charmap
Definition: freetype.h:951
TT_ADOBE_ID_LATIN_1
#define TT_ADOBE_ID_LATIN_1
Definition: ttnameid.h:312
FT_ModuleRec_
Definition: ftobjs.h:439
NULL
#define NULL
Definition: ftobjs.h:61
PSHinter_Interface_
Definition: pshints.h:672
FT_Int
signed int FT_Int
Definition: fttypes.h:216
FT_FaceRec_::ascender
FT_Short ascender
Definition: freetype.h:939
FT_FaceRec_::face_index
FT_Long face_index
Definition: freetype.h:915
T1_ENCODING_TYPE_EXPERT
Definition: t1tables.h:512
T1_GlyphSlot_Init
T1_GlyphSlot_Init(FT_GlyphSlot slot)
Definition: t1objs.c:152
FT_FaceRec_::underline_thickness
FT_Short underline_thickness
Definition: freetype.h:947
FT_FaceRec_::num_faces
FT_Long num_faces
Definition: freetype.h:914
stream
GLuint GLuint stream
Definition: glew.h:6573
T1_CMap_ClassesRec_::standard
FT_CMap_Class standard
Definition: psaux.h:778
FT_FACE_FLAG_SCALABLE
#define FT_FACE_FLAG_SCALABLE
Definition: freetype.h:1069
T1_FontRec_::num_glyphs
FT_Int num_glyphs
Definition: t1types.h:111
T1_Face_Init
T1_Face_Init(FT_Stream stream, FT_Face t1face, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
Definition: t1objs.c:300
FT_ModuleRec_::library
FT_Library library
Definition: ftobjs.h:442
FT_FaceRec_::family_name
FT_String * family_name
Definition: freetype.h:922
FT_FaceRec_::descender
FT_Short descender
Definition: freetype.h:940
T1_FaceRec_::root
FT_FaceRec root
Definition: t1types.h:200
FT_FACE_FLAG_MULTIPLE_MASTERS
#define FT_FACE_FLAG_MULTIPLE_MASTERS
Definition: freetype.h:1077
T1_CMap_ClassesRec_::custom
FT_CMap_Class custom
Definition: psaux.h:780
FT_FaceRec_::style_name
FT_String * style_name
Definition: freetype.h:923
FT_CharMapRec_::platform_id
FT_UShort platform_id
Definition: freetype.h:740
FT_FaceRec_::available_sizes
FT_Bitmap_Size * available_sizes
Definition: freetype.h:926
T1_FontRec_::charstrings
FT_Byte ** charstrings
Definition: t1types.h:113
FT_FACE_FIND_GLOBAL_SERVICE
#define FT_FACE_FIND_GLOBAL_SERVICE(face, ptr, id)
Definition: ftserv.h:132
PSH_Globals_FuncsRec_::create
PSH_Globals_NewFunc create
Definition: pshints.h:61
T1_FontRec_
Definition: t1types.h:93
PS_FontInfoRec_::italic_angle
FT_Long italic_angle
Definition: t1tables.h:76
FT_Err_Ok
return FT_Err_Ok
Definition: ftbbox.c:658
t1errors.h
FT_Size_Internal
struct FT_Size_InternalRec_ * FT_Size_Internal
Definition: freetype.h:1302
T1_Driver_Init
T1_Driver_Init(FT_Module driver)
Definition: t1objs.c:589
TT_PLATFORM_MICROSOFT
#define TT_PLATFORM_MICROSOFT
Definition: ttnameid.h:89
T1_FontRec_::subrs_block
FT_Byte * subrs_block
Definition: t1types.h:103
PSH_Globals_FuncsRec_::destroy
PSH_Globals_DestroyFunc destroy
Definition: pshints.h:63
T1_Done_Metrics
T1_Done_Metrics(FT_Memory memory, AFM_FontInfo fi)
Definition: t1afm.c:37
if
if(!yyg->yy_init)
Definition: glslang_lex.cpp:1037
FT_CharMapRec_::encoding_id
FT_UShort encoding_id
Definition: freetype.h:741
T1_Face_Done
T1_Face_Done(FT_Face t1face)
Definition: t1objs.c:201
FT_Bool
FT_BEGIN_HEADER typedef unsigned char FT_Bool
Definition: fttypes.h:104
FT_CharMapRec_::face
FT_Face face
Definition: freetype.h:738
T1_FaceRec_::blend
PS_Blend blend
Definition: t1types.h:213
T1_ENCODING_TYPE_STANDARD
Definition: t1tables.h:510
FT_FaceRec_::max_advance_height
FT_Short max_advance_height
Definition: freetype.h:944
PSHinter_Interface_::get_t1_funcs
T1_Hints_Funcs(* get_t1_funcs)(FT_Module module)
Definition: pshints.h:675
T1_FaceRec_::len_buildchar
FT_UInt len_buildchar
Definition: t1types.h:223
FT_ERROR
#define FT_ERROR(varformat)
Definition: ftdebug.h:181
FT_ASSERT
#define FT_ASSERT(condition)
Definition: ftdebug.h:204
FT_STYLE_FLAG_BOLD
#define FT_STYLE_FLAG_BOLD
Definition: freetype.h:1290
params
GLenum GLvoid ** params
Definition: gl2ext.h:806
T1_SizeRec_
Definition: t1objs.h:90
PS_FontInfoRec_::notice
FT_String * notice
Definition: t1tables.h:72
FT_SizeRec_::internal
FT_Size_Internal internal
Definition: freetype.h:1400
T1_Size_Init
T1_Size_Init(FT_Size t1size)
Definition: t1objs.c:95
TT_ADOBE_ID_CUSTOM
#define TT_ADOBE_ID_CUSTOM
Definition: ttnameid.h:311
T1_FontRec_::charstrings_block
FT_Byte * charstrings_block
Definition: t1types.h:104
FT_FaceRec_::num_charmaps
FT_Int num_charmaps
Definition: freetype.h:928
FT_FREE
#define FT_FREE(ptr)
Definition: ftmemory.h:286
T1_Driver_Done
T1_Driver_Done(FT_Module driver)
Definition: t1objs.c:609
FT_FACE_FLAG_FIXED_WIDTH
#define FT_FACE_FLAG_FIXED_WIDTH
Definition: freetype.h:1071
FT_BBox_::yMax
FT_Pos yMax
Definition: ftimage.h:119
FT_LOCAL_DEF
#define FT_LOCAL_DEF(x)
Definition: ftconfig.h:467
FT_BBox_::xMin
FT_Pos xMin
Definition: ftimage.h:118
FT_DriverRec_::root
FT_ModuleRec root
Definition: ftobjs.h:717
T1_FontRec_::font_name
FT_String * font_name
Definition: t1types.h:98
FT_Request_Metrics
FT_Request_Metrics(FT_Face face, FT_Size_Request req)
Definition: ftobjs.c:2637
FT_FaceRec_
Definition: freetype.h:912
AFM_FontInfoRec_
Definition: t1types.h:167
error
FT_Error error
Definition: cffdrivr.c:407
t1load.h
TT_ADOBE_ID_EXPERT
#define TT_ADOBE_ID_EXPERT
Definition: ttnameid.h:310
T1_Size
struct T1_SizeRec_ * T1_Size
Definition: t1objs.h:45
face
GLenum face
Definition: gl2ext.h:1490
FT_FACE_FLAG_HORIZONTAL
#define FT_FACE_FLAG_HORIZONTAL
Definition: freetype.h:1073
FT_Size_RequestRec_
Definition: freetype.h:2185
T1_FaceRec_::psaux
const void * psaux
Definition: t1types.h:203
PSAux_Service
struct PSAux_ServiceRec_ * PSAux_Service
PS_FontInfoRec_::family_name
FT_String * family_name
Definition: t1tables.h:74
FT_TRACE2
#define FT_TRACE2(varformat)
Definition: ftdebug.h:159
TT_PLATFORM_ADOBE
#define TT_PLATFORM_ADOBE
Definition: ttnameid.h:91
T1_FontRec_::charstrings_len
FT_PtrDist * charstrings_len
Definition: t1types.h:114
FT_Face
struct FT_FaceRec_ * FT_Face
Definition: freetype.h:399
PS_FontInfoRec_::underline_position
FT_Short underline_position
Definition: t1tables.h:78
T1_FontRec_::subrs
FT_Byte ** subrs
Definition: t1types.h:108
FT_CharMapRec_::encoding
FT_Encoding encoding
Definition: freetype.h:739
PS_FontInfoRec_
Definition: t1tables.h:69
FALSE
#define FALSE
Definition: ftobjs.h:57
FT_BBox_::xMax
FT_Pos xMax
Definition: ftimage.h:119
T1_ENCODING_TYPE_ISOLATIN1
Definition: t1tables.h:511
FT_FaceRec_::charmaps
FT_CharMap * charmaps
Definition: freetype.h:929
FT_FaceRec_::bbox
FT_BBox bbox
Definition: freetype.h:936
T1_FaceRec_
Definition: t1types.h:198
T1_FontRec_::font_info
PS_FontInfoRec font_info
Definition: t1types.h:95
T1_FontRec_::glyph_names_block
FT_Byte * glyph_names_block
Definition: t1types.h:105
FT_Short
signed short FT_Short
Definition: fttypes.h:194
T1_FaceRec_::afm_data
const void * afm_data
Definition: t1types.h:204
T1_Done_Blend
T1_Done_Blend(T1_Face face)
Definition: t1load.c:511
FT_FaceRec_::face_flags
FT_Long face_flags
Definition: freetype.h:917
FT_Memory
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:66
T1_FontRec_::encoding_type
T1_EncodingType encoding_type
Definition: t1types.h:100
FT_FACE_FLAG_HINTER
#define FT_FACE_FLAG_HINTER
Definition: freetype.h:1080
T1_FaceRec_::psnames
const void * psnames
Definition: t1types.h:202
T1_FontRec_::font_bbox
FT_BBox font_bbox
Definition: t1types.h:120
FT_CMap_New
FT_CMap_New(FT_CMap_Class clazz, FT_Pointer init_data, FT_CharMap charmap, FT_CMap *acmap)
Definition: ftobjs.c:3236
FT_Size_Metrics_::y_scale
FT_Fixed y_scale
Definition: freetype.h:1366
ft2build.h
PS_FontInfoRec_::version
FT_String * version
Definition: t1tables.h:71
FT_CharMapRec_
Definition: freetype.h:736
t1afm.h
PS_FontInfoRec_::full_name
FT_String * full_name
Definition: t1tables.h:73
FT_FaceRec_::num_glyphs
FT_Long num_glyphs
Definition: freetype.h:920
PSH_Globals_FuncsRec_
Definition: pshints.h:59
T1_FaceRec_::buildchar
FT_Long * buildchar
Definition: t1types.h:224
PS_FontInfoRec_::underline_thickness
FT_UShort underline_thickness
Definition: t1tables.h:79
PS_FontInfoRec_::weight
FT_String * weight
Definition: t1tables.h:75
T1_Open_Face
T1_Open_Face(T1_Face face)
Definition: t1load.c:2046
FT_FaceRec_::height
FT_Short height
Definition: freetype.h:941
T1_Size_Request
T1_Size_Request(FT_Size t1size, FT_Size_Request req)
Definition: t1objs.c:119
T1_CMap_ClassesRec_::unicode
FT_CMap_Class unicode
Definition: psaux.h:781
FT_Size_Metrics_::x_scale
FT_Fixed x_scale
Definition: freetype.h:1365
FT_Get_Module
FT_Get_Module(FT_Library library, const char *module_name)
Definition: ftobjs.c:4256
FT_FaceRec_::style_flags
FT_Long style_flags
Definition: freetype.h:918
T1_Compute_Max_Advance
T1_Compute_Max_Advance(T1_Face face, FT_Pos *max_advance)
Definition: t1gload.c:153
PS_FontInfoRec_::is_fixed_pitch
FT_Bool is_fixed_pitch
Definition: t1tables.h:77
FT_FaceRec_::driver
FT_Driver driver
Definition: freetype.h:955
FT_Get_Module_Interface
FT_Get_Module_Interface(FT_Library library, const char *mod_name)
Definition: ftobjs.c:4284
TT_MS_ID_UNICODE_CS
#define TT_MS_ID_UNICODE_CS
Definition: ttnameid.h:280
T1_GlyphSlot_Done
T1_GlyphSlot_Done(FT_GlyphSlot slot)
Definition: t1objs.c:145
T1_FontRec_::encoding
T1_EncodingRec encoding
Definition: t1types.h:101
FT_CMap_ClassRec_
Definition: ftobjs.h:190
FT_STYLE_FLAG_ITALIC
#define FT_STYLE_FLAG_ITALIC
Definition: freetype.h:1289
FT_FACE_LIBRARY
#define FT_FACE_LIBRARY(x)
Definition: ftobjs.h:528
FT_StreamRec_
Definition: ftsystem.h:321
FT_BBox_::yMin
FT_Pos yMin
Definition: ftimage.h:118
PSAux_ServiceRec_
Definition: psaux.h:794
FT_FACE_FLAG_GLYPH_NAMES
#define FT_FACE_FLAG_GLYPH_NAMES
Definition: freetype.h:1078
FT_FaceRec_::max_advance_width
FT_Short max_advance_width
Definition: freetype.h:943
FT_UNUSED
#define FT_UNUSED(arg)
Definition: ftconfig.h:101
T1_Size_Get_Globals_Funcs
static PSH_Globals_Funcs T1_Size_Get_Globals_Funcs(T1_Size size)
Definition: t1objs.c:59
TRUE
#define TRUE
Definition: ftobjs.h:53
FT_SizeRec_::metrics
FT_Size_Metrics metrics
Definition: freetype.h:1399
FT_FaceRec_::underline_position
FT_Short underline_position
Definition: freetype.h:946
FT_FaceRec_::memory
FT_Memory memory
Definition: freetype.h:956
FT_Parameter_
Definition: freetype.h:1763
ft_strcmp
#define ft_strcmp
Definition: ftstdlib.h:85
T1_FontRec_::glyph_names
FT_String ** glyph_names
Definition: t1types.h:112
T1_FaceRec_::pshinter
const void * pshinter
Definition: t1types.h:227
size
GLsizei size
Definition: gl2ext.h:1467