LOCAL_DEF void TT_Done_Face(TT_Face face) { FT_Memory memory = face->root.memory; FT_Stream stream = face->root.stream; SFNT_Interface *sfnt = (SFNT_Interface *)face->sfnt; /* for `extended TrueType formats' (i.e. compressed versions) */ if(face->extra.finalizer) { face->extra.finalizer(face->extra.data); } if(sfnt) { sfnt->done_face(face); } /* freeing the locations table */ FREE(face->glyph_locations); face->num_locations = 0; /* freeing the CVT */ FREE(face->cvt); face->cvt_size = 0; /* freeing the programs */ RELEASE_Frame(face->font_program); RELEASE_Frame(face->cvt_program); face->font_program_size = 0; face->cvt_program_size = 0; }
static void fnt_font_done( FNT_Font* font, FT_Stream stream ) { if ( font->fnt_frame ) RELEASE_Frame( font->fnt_frame ); font->fnt_size = 0; font->fnt_frame = 0; }