20 #include FT_FREETYPE_H 21 #include FT_INTERNAL_OBJECTS_H 27 #ifdef FT_CONFIG_OPTION_PIC 38 FT_Service_PsInfoRec* clazz );
41 FT_Service_GlyphDictRec* clazz );
44 FT_Service_PsFontNameRec* clazz );
47 FT_Service_TTCMapsRec* clazz );
50 FT_Service_CIDRec* clazz );
64 FT_PIC_Container* pic_container = &library->pic_container;
68 if ( pic_container->cff )
70 CffModulePIC* container = (CffModulePIC*)pic_container->cff;
73 if ( container->cff_services )
74 FT_Destroy_Class_cff_services( library,
75 container->cff_services );
76 container->cff_services =
NULL;
77 if ( container->cff_field_handlers )
78 FT_Destroy_Class_cff_field_handlers(
79 library, container->cff_field_handlers );
80 container->cff_field_handlers =
NULL;
82 pic_container->cff =
NULL;
88 cff_driver_class_pic_init(
FT_Library library )
90 FT_PIC_Container* pic_container = &library->pic_container;
92 CffModulePIC* container =
NULL;
97 if (
FT_ALLOC ( container,
sizeof ( *container ) ) )
99 FT_MEM_SET( container, 0,
sizeof ( *container ) );
100 pic_container->cff = container;
104 error = FT_Create_Class_cff_services( library,
105 &container->cff_services );
109 error = FT_Create_Class_cff_field_handlers(
110 library, &container->cff_field_handlers );
114 FT_Init_Class_cff_service_ps_info(
115 library, &container->cff_service_ps_info );
116 FT_Init_Class_cff_service_glyph_dict(
117 library, &container->cff_service_glyph_dict );
118 FT_Init_Class_cff_service_ps_name(
119 library, &container->cff_service_ps_name );
120 FT_Init_Class_cff_service_get_cmap_info(
121 library, &container->cff_service_get_cmap_info );
122 FT_Init_Class_cff_service_cid_info(
123 library, &container->cff_service_cid_info );
124 FT_Init_Class_cff_cmap_encoding_class_rec(
125 library, &container->cff_cmap_encoding_class_rec );
126 FT_Init_Class_cff_cmap_unicode_class_rec(
127 library, &container->cff_cmap_unicode_class_rec );
131 cff_driver_class_pic_free( library );
#define FT_ALLOC(ptr, size)
typedefFT_BEGIN_HEADER struct FT_MemoryRec_ * FT_Memory
if(!abbox) return FT_THROW(Invalid_Argument)
#define FT_MEM_SET(dest, byte, count)