20 #include FT_FREETYPE_H 21 #include FT_INTERNAL_OBJECTS_H 26 #ifdef FT_CONFIG_OPTION_PIC 36 FT_Init_Class_tt_service_gx_multi_masters(
37 FT_Service_MultiMastersRec* sv_mm );
39 FT_Init_Class_tt_service_truetype_glyf(
40 FT_Service_TTGlyfRec* sv_ttglyf );
46 FT_PIC_Container* pic_container = &library->pic_container;
50 if ( pic_container->truetype )
52 TTModulePIC* container = (TTModulePIC*)pic_container->truetype;
55 if ( container->tt_services )
56 FT_Destroy_Class_tt_services( library, container->tt_services );
57 container->tt_services =
NULL;
59 pic_container->truetype =
NULL;
67 FT_PIC_Container* pic_container = &library->pic_container;
69 TTModulePIC* container =
NULL;
74 if (
FT_ALLOC( container,
sizeof ( *container ) ) )
76 FT_MEM_SET( container, 0,
sizeof ( *container ) );
77 pic_container->truetype = container;
81 error = FT_Create_Class_tt_services( library,
82 &container->tt_services );
85 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT 86 FT_Init_Class_tt_service_gx_multi_masters(
87 &container->tt_service_gx_multi_masters );
89 FT_Init_Class_tt_service_truetype_glyf(
90 &container->tt_service_truetype_glyf );
94 tt_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)