ReactOS 0.4.16-dev-981-g80eb313
t42objs.c
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * t42objs.c
4 *
5 * Type 42 objects manager (body).
6 *
7 * Copyright (C) 2002-2019 by
8 * Roberto Alameda.
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 "t42objs.h"
20#include "t42parse.h"
21#include "t42error.h"
22#include FT_INTERNAL_DEBUG_H
23#include FT_LIST_H
24#include FT_TRUETYPE_IDS_H
25
26
27#undef FT_COMPONENT
28#define FT_COMPONENT t42
29
30
31 static FT_Error
33 {
34 T42_LoaderRec loader;
36 T1_Font type1 = &face->type1;
37 FT_Memory memory = face->root.memory;
39
40 PSAux_Service psaux = (PSAux_Service)face->psaux;
41
42
43 t42_loader_init( &loader, face );
44
45 parser = &loader.parser;
46
47 if ( FT_ALLOC( face->ttf_data, 12 ) )
48 goto Exit;
49
50 /* while parsing the font we always update `face->ttf_size' so that */
51 /* even in case of buggy data (which might lead to premature end of */
52 /* scanning without causing an error) the call to `FT_Open_Face' in */
53 /* `T42_Face_Init' passes the correct size */
54 face->ttf_size = 12;
55
57 face->root.stream,
58 memory,
59 psaux);
60 if ( error )
61 goto Exit;
62
63 error = t42_parse_dict( face, &loader,
64 parser->base_dict, parser->base_len );
65 if ( error )
66 goto Exit;
67
68 if ( type1->font_type != 42 )
69 {
70 FT_ERROR(( "T42_Open_Face: cannot handle FontType %d\n",
71 type1->font_type ));
72 error = FT_THROW( Unknown_File_Format );
73 goto Exit;
74 }
75
76 /* now, propagate the charstrings and glyphnames tables */
77 /* to the Type1 data */
78 type1->num_glyphs = loader.num_glyphs;
79
80 if ( !loader.charstrings.init )
81 {
82 FT_ERROR(( "T42_Open_Face: no charstrings array in face\n" ));
83 error = FT_THROW( Invalid_File_Format );
84 }
85
86 loader.charstrings.init = 0;
87 type1->charstrings_block = loader.charstrings.block;
88 type1->charstrings = loader.charstrings.elements;
89 type1->charstrings_len = loader.charstrings.lengths;
90
91 /* we copy the glyph names `block' and `elements' fields; */
92 /* the `lengths' field must be released later */
93 type1->glyph_names_block = loader.glyph_names.block;
94 type1->glyph_names = (FT_String**)loader.glyph_names.elements;
95 loader.glyph_names.block = NULL;
96 loader.glyph_names.elements = NULL;
97
98 /* we must now build type1.encoding when we have a custom array */
100 {
101 FT_Int charcode, idx, min_char, max_char;
102 FT_Byte* glyph_name;
103
104
105 /* OK, we do the following: for each element in the encoding */
106 /* table, look up the index of the glyph having the same name */
107 /* as defined in the CharStrings array. */
108 /* The index is then stored in type1.encoding.char_index, and */
109 /* the name in type1.encoding.char_name */
110
111 min_char = 0;
112 max_char = 0;
113
114 charcode = 0;
115 for ( ; charcode < loader.encoding_table.max_elems; charcode++ )
116 {
117 FT_Byte* char_name;
118
119
120 type1->encoding.char_index[charcode] = 0;
121 type1->encoding.char_name [charcode] = (char *)".notdef";
122
123 char_name = loader.encoding_table.elements[charcode];
124 if ( char_name )
125 for ( idx = 0; idx < type1->num_glyphs; idx++ )
126 {
127 glyph_name = (FT_Byte*)type1->glyph_names[idx];
128 if ( ft_strcmp( (const char*)char_name,
129 (const char*)glyph_name ) == 0 )
130 {
131 type1->encoding.char_index[charcode] = (FT_UShort)idx;
132 type1->encoding.char_name [charcode] = (char*)glyph_name;
133
134 /* Change min/max encoded char only if glyph name is */
135 /* not /.notdef */
136 if ( ft_strcmp( (const char*)".notdef",
137 (const char*)glyph_name ) != 0 )
138 {
139 if ( charcode < min_char )
140 min_char = charcode;
141 if ( charcode >= max_char )
142 max_char = charcode + 1;
143 }
144 break;
145 }
146 }
147 }
148
149 type1->encoding.code_first = min_char;
150 type1->encoding.code_last = max_char;
151 type1->encoding.num_chars = loader.num_chars;
152 }
153
154 Exit:
155 t42_loader_done( &loader );
156 return error;
157 }
158
159
160 /***************** Driver Functions *************/
161
162
165 FT_Face t42face, /* T42_Face */
166 FT_Int face_index,
167 FT_Int num_params,
169 {
170 T42_Face face = (T42_Face)t42face;
172 FT_Service_PsCMaps psnames;
173 PSAux_Service psaux;
174 FT_Face root = (FT_Face)&face->root;
175 T1_Font type1 = &face->type1;
176 PS_FontInfo info = &type1->font_info;
177
178 FT_UNUSED( num_params );
179 FT_UNUSED( params );
180 FT_UNUSED( stream );
181
182
183 face->ttf_face = NULL;
184 face->root.num_faces = 1;
185
186 FT_FACE_FIND_GLOBAL_SERVICE( face, psnames, POSTSCRIPT_CMAPS );
187 face->psnames = psnames;
188
190 "psaux" );
191 psaux = (PSAux_Service)face->psaux;
192 if ( !psaux )
193 {
194 FT_ERROR(( "T42_Face_Init: cannot access `psaux' module\n" ));
195 error = FT_THROW( Missing_Module );
196 goto Exit;
197 }
198
199 FT_TRACE2(( "Type 42 driver\n" ));
200
201 /* open the tokenizer, this will also check the font format */
203 if ( error )
204 goto Exit;
205
206 /* if we just wanted to check the format, leave successfully now */
207 if ( face_index < 0 )
208 goto Exit;
209
210 /* check the face index */
211 if ( ( face_index & 0xFFFF ) > 0 )
212 {
213 FT_ERROR(( "T42_Face_Init: invalid face index\n" ));
214 error = FT_THROW( Invalid_Argument );
215 goto Exit;
216 }
217
218 /* Now load the font program into the face object */
219
220 /* Init the face object fields */
221 /* Now set up root face fields */
222
223 root->num_glyphs = type1->num_glyphs;
224 root->num_charmaps = 0;
225 root->face_index = 0;
226
227 root->face_flags |= FT_FACE_FLAG_SCALABLE |
230
231 if ( info->is_fixed_pitch )
232 root->face_flags |= FT_FACE_FLAG_FIXED_WIDTH;
233
234#ifdef TT_CONFIG_OPTION_BYTECODE_INTERPRETER
235 root->face_flags |= FT_FACE_FLAG_HINTER;
236#endif
237
238 /* XXX: TODO -- add kerning with .afm support */
239
240 /* get style name -- be careful, some broken fonts only */
241 /* have a `/FontName' dictionary entry! */
242 root->family_name = info->family_name;
243 /* assume "Regular" style if we don't know better */
244 root->style_name = (char *)"Regular";
245 if ( root->family_name )
246 {
247 char* full = info->full_name;
248 char* family = root->family_name;
249
250
251 if ( full )
252 {
253 while ( *full )
254 {
255 if ( *full == *family )
256 {
257 family++;
258 full++;
259 }
260 else
261 {
262 if ( *full == ' ' || *full == '-' )
263 full++;
264 else if ( *family == ' ' || *family == '-' )
265 family++;
266 else
267 {
268 if ( !*family )
269 root->style_name = full;
270 break;
271 }
272 }
273 }
274 }
275 }
276 else
277 {
278 /* do we have a `/FontName'? */
279 if ( type1->font_name )
280 root->family_name = type1->font_name;
281 }
282
283 /* no embedded bitmap support */
284 root->num_fixed_sizes = 0;
285 root->available_sizes = NULL;
286
287 /* Load the TTF font embedded in the T42 font */
288 {
290
291
294 "truetype" );
295 args.memory_base = face->ttf_data;
296 args.memory_size = face->ttf_size;
297
298 if ( num_params )
299 {
300 args.flags |= FT_OPEN_PARAMS;
301 args.num_params = num_params;
302 args.params = params;
303 }
304
306 &args, 0, &face->ttf_face );
307 }
308
309 if ( error )
310 goto Exit;
311
312 FT_Done_Size( face->ttf_face->size );
313
314 /* Ignore info in FontInfo dictionary and use the info from the */
315 /* loaded TTF font. The PostScript interpreter also ignores it. */
316 root->bbox = face->ttf_face->bbox;
317 root->units_per_EM = face->ttf_face->units_per_EM;
318
319 root->ascender = face->ttf_face->ascender;
320 root->descender = face->ttf_face->descender;
321 root->height = face->ttf_face->height;
322
323 root->max_advance_width = face->ttf_face->max_advance_width;
324 root->max_advance_height = face->ttf_face->max_advance_height;
325
326 root->underline_position = (FT_Short)info->underline_position;
327 root->underline_thickness = (FT_Short)info->underline_thickness;
328
329 /* compute style flags */
330 root->style_flags = 0;
331 if ( info->italic_angle )
332 root->style_flags |= FT_STYLE_FLAG_ITALIC;
333
334 if ( face->ttf_face->style_flags & FT_STYLE_FLAG_BOLD )
335 root->style_flags |= FT_STYLE_FLAG_BOLD;
336
337 if ( face->ttf_face->face_flags & FT_FACE_FLAG_VERTICAL )
338 root->face_flags |= FT_FACE_FLAG_VERTICAL;
339
340 {
341 if ( psnames )
342 {
343 FT_CharMapRec charmap;
344 T1_CMap_Classes cmap_classes = psaux->t1_cmap_classes;
345 FT_CMap_Class clazz;
346
347
348 charmap.face = root;
349
350 /* first of all, try to synthesize a Unicode charmap */
353 charmap.encoding = FT_ENCODING_UNICODE;
354
355 error = FT_CMap_New( cmap_classes->unicode, NULL, &charmap, NULL );
356 if ( error &&
357 FT_ERR_NEQ( error, No_Unicode_Glyph_Name ) &&
358 FT_ERR_NEQ( error, Unimplemented_Feature ) )
359 goto Exit;
361
362 /* now, generate an Adobe Standard encoding when appropriate */
364 clazz = NULL;
365
366 switch ( type1->encoding_type )
367 {
369 charmap.encoding = FT_ENCODING_ADOBE_STANDARD;
371 clazz = cmap_classes->standard;
372 break;
373
375 charmap.encoding = FT_ENCODING_ADOBE_EXPERT;
377 clazz = cmap_classes->expert;
378 break;
379
381 charmap.encoding = FT_ENCODING_ADOBE_CUSTOM;
383 clazz = cmap_classes->custom;
384 break;
385
387 charmap.encoding = FT_ENCODING_ADOBE_LATIN_1;
389 clazz = cmap_classes->unicode;
390 break;
391
392 default:
393 ;
394 }
395
396 if ( clazz )
397 error = FT_CMap_New( clazz, NULL, &charmap, NULL );
398 }
399 }
400 Exit:
401 return error;
402 }
403
404
405 FT_LOCAL_DEF( void )
407 {
408 T42_Face face = (T42_Face)t42face;
409 T1_Font type1;
412
413
414 if ( !face )
415 return;
416
417 type1 = &face->type1;
418 info = &type1->font_info;
419 memory = face->root.memory;
420
421 /* delete internal ttf face prior to freeing face->ttf_data */
422 if ( face->ttf_face )
423 FT_Done_Face( face->ttf_face );
424
425 /* release font info strings */
426 FT_FREE( info->version );
427 FT_FREE( info->notice );
428 FT_FREE( info->full_name );
429 FT_FREE( info->family_name );
430 FT_FREE( info->weight );
431
432 /* release top dictionary */
433 FT_FREE( type1->charstrings_len );
434 FT_FREE( type1->charstrings );
435 FT_FREE( type1->glyph_names );
436
437 FT_FREE( type1->charstrings_block );
438 FT_FREE( type1->glyph_names_block );
439
440 FT_FREE( type1->encoding.char_index );
441 FT_FREE( type1->encoding.char_name );
442 FT_FREE( type1->font_name );
443
444 FT_FREE( face->ttf_data );
445
446#if 0
447 /* release afm data if present */
448 if ( face->afm_data )
449 T1_Done_AFM( memory, (T1_AFM*)face->afm_data );
450#endif
451
452 /* release unicode map, if any */
453 FT_FREE( face->unicode_map.maps );
454 face->unicode_map.num_maps = 0;
455
456 face->root.family_name = NULL;
457 face->root.style_name = NULL;
458 }
459
460
461 /**************************************************************************
462 *
463 * @Function:
464 * T42_Driver_Init
465 *
466 * @Description:
467 * Initializes a given Type 42 driver object.
468 *
469 * @Input:
470 * driver ::
471 * A handle to the target driver object.
472 *
473 * @Return:
474 * FreeType error code. 0 means success.
475 */
477 T42_Driver_Init( FT_Module module ) /* T42_Driver */
478 {
480 FT_Module ttmodule;
481
482
483 ttmodule = FT_Get_Module( module->library, "truetype" );
484 if ( !ttmodule )
485 {
486 FT_ERROR(( "T42_Driver_Init: cannot access `truetype' module\n" ));
487 return FT_THROW( Missing_Module );
488 }
489
490 driver->ttclazz = (FT_Driver_Class)ttmodule->clazz;
491
492 return FT_Err_Ok;
493 }
494
495
496 FT_LOCAL_DEF( void )
498 {
499 FT_UNUSED( module );
500 }
501
502
504 T42_Size_Init( FT_Size size ) /* T42_Size */
505 {
506 T42_Size t42size = (T42_Size)size;
507 FT_Face face = size->face;
508 T42_Face t42face = (T42_Face)face;
509 FT_Size ttsize;
511
512
513 error = FT_New_Size( t42face->ttf_face, &ttsize );
514 t42size->ttsize = ttsize;
515
516 FT_Activate_Size( ttsize );
517
518 return error;
519 }
520
521
523 T42_Size_Request( FT_Size t42size, /* T42_Size */
524 FT_Size_Request req )
525 {
526 T42_Size size = (T42_Size)t42size;
527 T42_Face face = (T42_Face)t42size->face;
529
530
531 FT_Activate_Size( size->ttsize );
532
533 error = FT_Request_Size( face->ttf_face, req );
534 if ( !error )
535 t42size->metrics = face->ttf_face->size->metrics;
536
537 return error;
538 }
539
540
542 T42_Size_Select( FT_Size t42size, /* T42_Size */
543 FT_ULong strike_index )
544 {
545 T42_Size size = (T42_Size)t42size;
546 T42_Face face = (T42_Face)t42size->face;
548
549
550 FT_Activate_Size( size->ttsize );
551
552 error = FT_Select_Size( face->ttf_face, (FT_Int)strike_index );
553 if ( !error )
554 t42size->metrics = face->ttf_face->size->metrics;
555
556 return error;
557
558 }
559
560
561 FT_LOCAL_DEF( void )
562 T42_Size_Done( FT_Size t42size ) /* T42_Size */
563 {
564 T42_Size size = (T42_Size)t42size;
565 FT_Face face = t42size->face;
566 T42_Face t42face = (T42_Face)face;
568
569
570 node = FT_List_Find( &t42face->ttf_face->sizes_list, size->ttsize );
571 if ( node )
572 {
573 FT_Done_Size( size->ttsize );
574 size->ttsize = NULL;
575 }
576 }
577
578
580 T42_GlyphSlot_Init( FT_GlyphSlot t42slot ) /* T42_GlyphSlot */
581 {
583 FT_Face face = t42slot->face;
584 T42_Face t42face = (T42_Face)face;
585 FT_GlyphSlot ttslot;
587
588
589 if ( !face->glyph )
590 {
591 /* First glyph slot for this face */
592 slot->ttslot = t42face->ttf_face->glyph;
593 }
594 else
595 {
596 error = FT_New_GlyphSlot( t42face->ttf_face, &ttslot );
597 slot->ttslot = ttslot;
598 }
599
600 return error;
601 }
602
603
604 FT_LOCAL_DEF( void )
605 T42_GlyphSlot_Done( FT_GlyphSlot t42slot ) /* T42_GlyphSlot */
606 {
608
609
610 FT_Done_GlyphSlot( slot->ttslot );
611 }
612
613
614 static void
616 {
617 /* free bitmap if needed */
619
620 /* clear all public fields in the glyph slot */
621 FT_ZERO( &slot->metrics );
622 FT_ZERO( &slot->outline );
623 FT_ZERO( &slot->bitmap );
624
625 slot->bitmap_left = 0;
626 slot->bitmap_top = 0;
627 slot->num_subglyphs = 0;
628 slot->subglyphs = NULL;
629 slot->control_data = NULL;
630 slot->control_len = 0;
631 slot->other = NULL;
632 slot->format = FT_GLYPH_FORMAT_NONE;
633
634 slot->linearHoriAdvance = 0;
635 slot->linearVertAdvance = 0;
636 }
637
638
642 FT_UInt glyph_index,
643 FT_Int32 load_flags )
644 {
646 T42_GlyphSlot t42slot = (T42_GlyphSlot)glyph;
647 T42_Size t42size = (T42_Size)size;
648 T42_Face t42face = (T42_Face)size->face;
649 FT_Driver_Class ttclazz = ((T42_Driver)glyph->face->driver)->ttclazz;
650
651
652 FT_TRACE1(( "T42_GlyphSlot_Load: glyph index %d\n", glyph_index ));
653
654 /* map T42 glyph index to embedded TTF's glyph index */
655 glyph_index = (FT_UInt)ft_strtol(
656 (const char *)t42face->type1.charstrings[glyph_index],
657 NULL, 10 );
658
659 t42_glyphslot_clear( t42slot->ttslot );
660 error = ttclazz->load_glyph( t42slot->ttslot,
661 t42size->ttsize,
662 glyph_index,
663 load_flags | FT_LOAD_NO_BITMAP );
664
665 if ( !error )
666 {
667 glyph->metrics = t42slot->ttslot->metrics;
668
669 glyph->linearHoriAdvance = t42slot->ttslot->linearHoriAdvance;
670 glyph->linearVertAdvance = t42slot->ttslot->linearVertAdvance;
671
672 glyph->format = t42slot->ttslot->format;
673 glyph->outline = t42slot->ttslot->outline;
674
675 glyph->bitmap = t42slot->ttslot->bitmap;
676 glyph->bitmap_left = t42slot->ttslot->bitmap_left;
677 glyph->bitmap_top = t42slot->ttslot->bitmap_top;
678
679 glyph->num_subglyphs = t42slot->ttslot->num_subglyphs;
680 glyph->subglyphs = t42slot->ttslot->subglyphs;
681
682 glyph->control_data = t42slot->ttslot->control_data;
683 glyph->control_len = t42slot->ttslot->control_len;
684 }
685
686 return error;
687 }
688
689
690/* END */
struct _root root
#define NULL
Definition: types.h:112
unsigned int idx
Definition: utils.c:41
#define TT_MS_ID_UNICODE_CS
Definition: font.c:1181
#define TT_PLATFORM_MICROSOFT
Definition: font.c:1174
#define FT_LOAD_NO_BITMAP
Definition: freetype.h:3030
#define FT_STYLE_FLAG_ITALIC
Definition: freetype.h:1488
#define FT_FACE_FLAG_SCALABLE
Definition: freetype.h:1210
FT_Done_Face(FT_Face face)
Definition: ftobjs.c:2765
#define FT_FACE_FLAG_HINTER
Definition: freetype.h:1221
#define FT_OPEN_PARAMS
Definition: freetype.h:2013
FT_Open_Face(FT_Library library, const FT_Open_Args *args, FT_Long face_index, FT_Face *aface)
Definition: ftobjs.c:2361
#define FT_FACE_FLAG_FIXED_WIDTH
Definition: freetype.h:1212
#define FT_OPEN_DRIVER
Definition: freetype.h:2012
FT_Select_Size(FT_Face face, FT_Int strike_index)
Definition: ftobjs.c:3182
#define FT_FACE_FLAG_VERTICAL
Definition: freetype.h:1215
FT_Request_Size(FT_Face face, FT_Size_Request req)
Definition: ftobjs.c:3236
struct FT_FaceRec_ * FT_Face
Definition: freetype.h:499
#define FT_OPEN_MEMORY
Definition: freetype.h:2009
#define FT_FACE_FLAG_GLYPH_NAMES
Definition: freetype.h:1219
#define FT_STYLE_FLAG_BOLD
Definition: freetype.h:1489
#define FT_FACE_FLAG_HORIZONTAL
Definition: freetype.h:1214
return FT_Err_Ok
Definition: ftbbox.c:527
#define FT_LOCAL_DEF(x)
Definition: ftconfig.h:387
#define FT_UNUSED(arg)
Definition: ftconfig.h:100
#define FT_ERROR(varformat)
Definition: ftdebug.h:209
#define FT_THROW(e)
Definition: ftdebug.h:241
#define FT_TRACE2(varformat)
Definition: ftdebug.h:187
#define FT_TRACE1(varformat)
Definition: ftdebug.h:186
struct FT_Driver_ClassRec_ * FT_Driver_Class
FT_BEGIN_HEADER FT_List_Find(FT_List list, void *data)
Definition: ftutil.c:244
#define FT_ALLOC(ptr, size)
Definition: ftmemory.h:302
#define FT_FREE(ptr)
Definition: ftmemory.h:328
#define FT_ZERO(p)
Definition: ftmemory.h:237
FT_Get_Module(FT_Library library, const char *module_name)
Definition: ftobjs.c:4964
#define FT_FACE_LIBRARY(x)
Definition: ftobjs.h:604
ft_glyphslot_free_bitmap(FT_GlyphSlot slot)
Definition: ftobjs.c:326
FT_New_GlyphSlot(FT_Face face, FT_GlyphSlot *aslot)
Definition: ftobjs.c:596
FT_CMap_New(FT_CMap_Class clazz, FT_Pointer init_data, FT_CharMap charmap, FT_CMap *acmap)
Definition: ftobjs.c:3657
FT_Get_Module_Interface(FT_Library library, const char *mod_name)
Definition: ftobjs.c:4992
FT_Done_GlyphSlot(FT_GlyphSlot slot)
Definition: ftobjs.c:649
#define FT_FACE_FIND_GLOBAL_SERVICE(face, ptr, id)
Definition: ftserv.h:127
FT_Done_Size(FT_Size size)
Definition: ftobjs.c:2871
FT_Activate_Size(FT_Size size)
Definition: ftobjs.c:4273
FT_BEGIN_HEADER FT_New_Size(FT_Face face, FT_Size *size)
Definition: ftobjs.c:2806
#define ft_strcmp
Definition: ftstdlib.h:86
#define ft_strtol
Definition: ftstdlib.h:145
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
Definition: ftsystem.h:65
unsigned long FT_ULong
Definition: fttypes.h:253
unsigned char FT_Byte
Definition: fttypes.h:154
int FT_Error
Definition: fttypes.h:299
#define FT_ERR_NEQ(x, e)
Definition: fttypes.h:606
unsigned short FT_UShort
Definition: fttypes.h:209
char FT_String
Definition: fttypes.h:187
signed short FT_Short
Definition: fttypes.h:198
unsigned int FT_UInt
Definition: fttypes.h:231
signed int FT_Int
Definition: fttypes.h:220
GLsizeiptr size
Definition: glext.h:5919
GLenum GLuint GLint GLenum face
Definition: glext.h:7025
GLenum const GLfloat * params
Definition: glext.h:5645
if(dx< 0)
Definition: linetemp.h:194
#define error(str)
Definition: mkdosfs.c:1605
static char memory[1024 *256]
Definition: process.c:116
struct @1709::@1710 driver
struct PSAux_ServiceRec_ * PSAux_Service
#define args
Definition: format.c:66
static void Exit(void)
Definition: sock.c:1330
FT_Face face
Definition: freetype.h:835
FT_Encoding encoding
Definition: freetype.h:836
FT_UShort platform_id
Definition: freetype.h:837
FT_UShort encoding_id
Definition: freetype.h:838
FT_Int bitmap_top
Definition: freetype.h:1894
FT_SubGlyph subglyphs
Definition: freetype.h:1899
void * control_data
Definition: freetype.h:1901
FT_UInt num_subglyphs
Definition: freetype.h:1898
FT_Int bitmap_left
Definition: freetype.h:1893
FT_Bitmap bitmap
Definition: freetype.h:1892
FT_Outline outline
Definition: freetype.h:1896
FT_Fixed linearHoriAdvance
Definition: freetype.h:1886
FT_Fixed linearVertAdvance
Definition: freetype.h:1887
FT_Glyph_Metrics metrics
Definition: freetype.h:1885
FT_Glyph_Format format
Definition: freetype.h:1890
FT_Module_Class * clazz
Definition: ftobjs.h:502
T1_CMap_Classes t1_cmap_classes
Definition: psaux.h:1371
FT_Byte ** elements
Definition: psaux.h:160
FT_ULong init
Definition: psaux.h:156
FT_Byte * block
Definition: psaux.h:153
FT_Int max_elems
Definition: psaux.h:158
FT_UInt * lengths
Definition: psaux.h:161
FT_CMap_Class standard
Definition: psaux.h:1329
FT_CMap_Class custom
Definition: psaux.h:1331
FT_CMap_Class expert
Definition: psaux.h:1330
FT_CMap_Class unicode
Definition: psaux.h:1332
T1_EncodingType encoding_type
Definition: t1types.h:104
PS_FontInfoRec font_info
Definition: t1types.h:99
FT_Int num_glyphs
Definition: t1types.h:116
FT_UInt * charstrings_len
Definition: t1types.h:119
FT_String ** glyph_names
Definition: t1types.h:117
T1_EncodingRec encoding
Definition: t1types.h:105
FT_String * font_name
Definition: t1types.h:102
FT_Byte * charstrings_block
Definition: t1types.h:108
FT_Byte font_type
Definition: t1types.h:122
FT_Byte ** charstrings
Definition: t1types.h:118
FT_Byte * glyph_names_block
Definition: t1types.h:109
FT_GlyphSlot ttslot
Definition: t42objs.h:49
PS_TableRec encoding_table
Definition: t42parse.h:47
FT_Int num_chars
Definition: t42parse.h:46
PS_TableRec glyph_names
Definition: t42parse.h:51
T42_ParserRec parser
Definition: t42parse.h:44
PS_TableRec charstrings
Definition: t42parse.h:52
FT_Int num_glyphs
Definition: t42parse.h:50
Definition: vfat.h:185
Definition: match.c:390
Definition: import.c:81
Definition: parse.h:23
@ T1_ENCODING_TYPE_ISOLATIN1
Definition: t1tables.h:569
@ T1_ENCODING_TYPE_STANDARD
Definition: t1tables.h:568
@ T1_ENCODING_TYPE_ARRAY
Definition: t1tables.h:567
@ T1_ENCODING_TYPE_EXPERT
Definition: t1tables.h:570
T42_GlyphSlot_Init(FT_GlyphSlot t42slot)
Definition: t42objs.c:580
T42_Size_Done(FT_Size t42size)
Definition: t42objs.c:562
T42_Size_Init(FT_Size size)
Definition: t42objs.c:504
static FT_Error T42_Open_Face(T42_Face face)
Definition: t42objs.c:32
T42_Driver_Done(FT_Module module)
Definition: t42objs.c:497
T42_Driver_Init(FT_Module module)
Definition: t42objs.c:477
T42_GlyphSlot_Load(FT_GlyphSlot glyph, FT_Size size, FT_UInt glyph_index, FT_Int32 load_flags)
Definition: t42objs.c:640
T42_Face_Done(FT_Face t42face)
Definition: t42objs.c:406
static void t42_glyphslot_clear(FT_GlyphSlot slot)
Definition: t42objs.c:615
T42_Size_Select(FT_Size t42size, FT_ULong strike_index)
Definition: t42objs.c:542
T42_Size_Request(FT_Size t42size, FT_Size_Request req)
Definition: t42objs.c:523
T42_GlyphSlot_Done(FT_GlyphSlot t42slot)
Definition: t42objs.c:605
T42_Face_Init(FT_Stream stream, FT_Face t42face, FT_Int face_index, FT_Int num_params, FT_Parameter *params)
Definition: t42objs.c:164
FT_BEGIN_HEADER struct T42_SizeRec_ * T42_Size
struct T42_DriverRec_ * T42_Driver
struct T42_GlyphSlotRec_ * T42_GlyphSlot
t42_parse_dict(T42_Face face, T42_Loader loader, FT_Byte *base, FT_Long size)
Definition: t42parse.c:1150
t42_parser_init(T42_Parser parser, FT_Stream stream, FT_Memory memory, PSAux_Service psaux)
Definition: t42parse.c:136
t42_loader_done(T42_Loader loader)
Definition: t42parse.c:1298
t42_loader_init(T42_Loader loader, T42_Face face)
Definition: t42parse.c:1281
FT_BEGIN_HEADER struct T42_ParserRec_ * T42_Parser
FT_BEGIN_HEADER struct T42_FaceRec_ * T42_Face
#define TT_ADOBE_ID_EXPERT
Definition: ttnameid.h:282
#define TT_ADOBE_ID_STANDARD
Definition: ttnameid.h:281
#define TT_PLATFORM_ADOBE
Definition: ttnameid.h:92
#define TT_ADOBE_ID_LATIN_1
Definition: ttnameid.h:284
#define TT_ADOBE_ID_CUSTOM
Definition: ttnameid.h:283
Definition: dlist.c:348