20 #include FT_FREETYPE_H 21 #include FT_INTERNAL_OBJECTS_H 26 #ifdef FT_CONFIG_OPTION_PIC 36 FT_PIC_Container* pic_container = &library->pic_container;
40 if ( pic_container->raster )
42 RasterPIC* container = (RasterPIC*)pic_container->raster;
45 if ( --container->ref_count )
48 pic_container->raster =
NULL;
54 ft_raster1_renderer_class_pic_init(
FT_Library library )
56 FT_PIC_Container* pic_container = &library->pic_container;
58 RasterPIC* container =
NULL;
64 if ( pic_container->raster )
66 ((RasterPIC*)pic_container->raster)->ref_count++;
71 if (
FT_ALLOC( container,
sizeof ( *container ) ) )
73 FT_MEM_SET( container, 0,
sizeof ( *container ) );
74 pic_container->raster = container;
76 container->ref_count = 1;
80 FT_Init_Class_ft_standard_raster( &container->ft_standard_raster );
88 ft_raster5_renderer_class_pic_init(
FT_Library library )
90 return ft_raster1_renderer_class_pic_init( library );
95 ft_raster5_renderer_class_pic_free(
FT_Library library )
97 ft_raster1_renderer_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)