Searched refs:font_handle (Results 1 – 1 of 1) sorted by relevance
26 GXS_FONT_LIBRARY_HANDLE *font_handle; in gx_studio_font_util_open() local31 font_handle = (GXS_FONT_LIBRARY_HANDLE*)malloc(sizeof(GXS_FONT_LIBRARY_HANDLE)); in gx_studio_font_util_open()32 if(font_handle == 0) in gx_studio_font_util_open()35 memset(font_handle, 0, sizeof(GXS_FONT_LIBRARY_HANDLE)); in gx_studio_font_util_open()37 error = FT_Init_FreeType(&(font_handle -> library)); /* initialize library */ in gx_studio_font_util_open()40 free(font_handle); in gx_studio_font_util_open()44 …error = FT_New_Face(font_handle -> library, font_file, 0, &(font_handle -> face) );/* create face … in gx_studio_font_util_open()47 FT_Done_FreeType( font_handle -> library ); in gx_studio_font_util_open()48 free(font_handle); in gx_studio_font_util_open()52 font_handle -> size = 0; in gx_studio_font_util_open()[all …]