_face = 0;
status = qFT_New_Memory_Face(font_ft2lib, (FT_Bytes)data, datasize, 0, (FT_Face*)&font->face);
}
_face = 0;
status = qFT_New_Memory_Face(font_ft2lib, (FT_Bytes)data, datasize, 0, (FT_Face*)&font->face);
}
if (status)
{
Con_Printf("ERROR: can't create face for %s\n"
if (status)
{
Con_Printf("ERROR: can't create face for %s\n"
+ if (font->data) {
+ Mem_Free(font->data);
+ font->data = NULL;
+ }
}
static float Font_SearchSize(ft2_font_t *font, FT_Face fontface, float size)
}
static float Font_SearchSize(ft2_font_t *font, FT_Face fontface, float size)
// TODO: clean this up and do not expose everything.
// TODO: clean this up and do not expose everything.
+ unsigned char *data; // TODO: See if FT2 actually needs it to stay... probably does
//fs_offset_t datasize;
void *face;
//fs_offset_t datasize;
void *face;