{
glyph_index = get_glyph_index_flagged(face, String[i], ETO_GLYPH_INDEX, fuOptions);
+ // FIXME: Use FT_LOAD_BITMAP_METRICS_ONLY or cache.
error = FT_Load_Glyph(face, glyph_index, FT_LOAD_DEFAULT);
if (error)
{
- DPRINT1("WARNING: Failed to load and render glyph! [index: %d]\n", glyph_index);
+ DPRINT1("Failed to load glyph! [index: %d]\n", glyph_index);
+ IntUnLockFreeType();
+ goto Cleanup;
}
glyph = face->glyph;
if (!realglyph)
{
DPRINT1("Failed to render glyph! [index: %d]\n", glyph_index);
+ IntUnLockFreeType();
+ goto Cleanup;
}
/* retrieve kerning distance and move pen position */