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->smooth )
42 SmoothPIC* container = (SmoothPIC*)pic_container->smooth;
45 if ( --container->ref_count )
49 pic_container->smooth =
NULL;
55 ft_smooth_renderer_class_pic_init(
FT_Library library )
57 FT_PIC_Container* pic_container = &library->pic_container;
59 SmoothPIC* container =
NULL;
65 if ( pic_container->smooth )
67 ((SmoothPIC*)pic_container->smooth)->ref_count++;
72 if (
FT_ALLOC( container,
sizeof ( *container ) ) )
74 FT_MEM_SET( container, 0,
sizeof ( *container ) );
75 pic_container->smooth = container;
77 container->ref_count = 1;
81 FT_Init_Class_ft_grays_raster( &container->ft_grays_raster );
89 ft_smooth_lcd_renderer_class_pic_init(
FT_Library library )
91 return ft_smooth_renderer_class_pic_init( library );
96 ft_smooth_lcd_renderer_class_pic_free(
FT_Library library )
98 ft_smooth_renderer_class_pic_free( library );
103 ft_smooth_lcdv_renderer_class_pic_init(
FT_Library library )
105 return ft_smooth_renderer_class_pic_init( library );
110 ft_smooth_lcdv_renderer_class_pic_free(
FT_Library library )
112 ft_smooth_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)