Hello. I have a face object. How can i take the shape in image and give to disk?
Thank's
Jim
FT_Library library; /* handle to library */
FT_Face face; /* handle to face object */
FT_Error error;
error = FT_Init_FreeType(&library);
error = FT_New_Face( library,"arial.ttf", 0, &face );
error = FT_Set_Char_Size( face, /* handle to face object */ 0, /* char_width in 1/64th of points */ 16*64, /* char_height in 1/64th of points */ 300, /* horizontal device resolution */ 300 ); /* vertical device resolution */
error = FT_Set_Pixel_Sizes( face, /* handle to face object */ 0, /* pixel_width */ 16 ); /* pixel_height */
int glyph_index = FT_Get_Char_Index( face, 0x0039);
error = FT_Load_Glyph( face,glyph_index,FT_LOAD_NO_BITMAP);
error = FT_Render_Glyph(face->glyph,FT_RENDER_MODE_MONO);
FT_GlyphSlot slot = face->glyph; /* a small shortcut */