Content-type: text/html
Destroys a given glyph slot. Remember however that all slots are automatically destroyed with its parent. Using this function is not always mandatory.
Input:
slot :: A handle to a target glyph slot. FT_BASE( void ) FT_Done_GlyphSlot( FT_GlyphSlot slot ); *** *** G L Y P H L O A D E R *** *** *** #define FT_SUBGLYPH_FLAG_ARGS_ARE_WORDS 1 #define FT_SUBGLYPH_FLAG_ARGS_ARE_XY_VALUES 2 #define FT_SUBGLYPH_FLAG_ROUND_XY_TO_GRID 4 #define FT_SUBGLYPH_FLAG_SCALE 8 #define FT_SUBGLYPH_FLAG_XY_SCALE 0x40 #define FT_SUBGLYPH_FLAG_2X2 0x80 #define FT_SUBGLYPH_FLAG_USE_MY_METRICS 0x200 enum { ft_glyph_own_bitmap = 1 }; struct FT_SubGlyph_ { FT_Int index; FT_UShort flags; FT_Int arg1; FT_Int arg2; FT_Matrix transform; }; typedef struct FT_GlyphLoad_ { FT_Outline outline; outline FT_UInt num_subglyphs; number of subglyphs FT_SubGlyph* subglyphs; subglyphs FT_Vector* extra_points; extra points table } FT_GlyphLoad; struct FT_GlyphLoader_ { FT_Memory memory; FT_UInt max_points; FT_UInt max_contours; FT_UInt max_subglyphs; FT_Bool use_extra; FT_GlyphLoad base; FT_GlyphLoad current; void* other; for possible future extension? }; FT_BASE( FT_Error ) FT_GlyphLoader_New( FT_Memory memory, FT_GlyphLoader* *aloader ); FT_BASE( FT_Error ) FT_GlyphLoader_Create_Extra( FT_GlyphLoader* loader ); FT_BASE( void ) FT_GlyphLoader_Done( FT_GlyphLoader* loader ); FT_BASE( void ) FT_GlyphLoader_Reset( FT_GlyphLoader* loader ); FT_BASE( void ) FT_GlyphLoader_Rewind( FT_GlyphLoader* loader ); FT_BASE( FT_Error ) FT_GlyphLoader_Check_Points( FT_GlyphLoader* loader, FT_UInt n_points, FT_UInt n_contours ); FT_BASE( FT_Error ) FT_GlyphLoader_Check_Subglyphs( FT_GlyphLoader* loader, FT_UInt n_subs ); FT_BASE( void ) FT_GlyphLoader_Prepare( FT_GlyphLoader* loader ); FT_BASE( void ) FT_GlyphLoader_Add( FT_GlyphLoader* loader ); FT_BASE( FT_Error ) FT_GlyphLoader_Copy_Points( FT_GlyphLoader* target, FT_GlyphLoader* source ); *** *** R E N D E R E R S *** *** *** #define FT_RENDERER( x ) ((FT_Renderer)( x )) #define FT_GLYPH( x ) ((FT_Glyph)( x )) #define FT_BITMAP_GLYPH( x ) ((FT_BitmapGlyph)( x )) #define FT_OUTLINE_GLYPH( x ) ((FT_OutlineGlyph)( x )) typedef struct FT_RendererRec_ { FT_ModuleRec root; FT_Renderer_Class* clazz; FT_Glyph_Format glyph_format; FT_Glyph_Class glyph_class; FT_Raster raster; FT_Raster_Render_Func raster_render; FTRenderer_render render; } FT_RendererRec; *** *** F O N T D R I V E R S *** *** *** typecast a module into a driver easily #define FT_DRIVER( x ) ((FT_Driver)(x)) typecast a module as a driver, and get its driver class #define FT_DRIVER_CLASS( x ) FT_DRIVER( x )->clazz
This documentation was generated for Freetype 2.0.4 by autodocbook (http://www.stillhq.com). Autodocbook is (c) Michael Still 2001.
Copyright 1996-2000 by
David Turner, Robert Wilhelm, and Werner Lemberg.
This file is part of the FreeType project, and may only be used, modified, and distributed under the terms of the FreeType project license, LICENSE.TXT. By continuing to use, modify, or distribute this file you indicate that you have read the license and understand and accept it fully.
Please report errors in this documentation, and Freetype itself to freetype@freetype.org