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