Remove unnecessary code from `FT_Render_Glyph_Internal'.

This commit is contained in:
Moazin Khatti 2019-07-08 12:00:48 +05:00
parent 1f74524929
commit cf44c0cbdd
1 changed files with 5 additions and 9 deletions

View File

@ -4444,6 +4444,11 @@
render->render = clazz->render_glyph;
}
if ( clazz->glyph_format == FT_GLYPH_FORMAT_SVG )
{
render->render = clazz->render_glyph;
}
/* add to list */
node->data = module;
FT_List_Add( &library->renderers, node );
@ -4579,15 +4584,6 @@
{
case FT_GLYPH_FORMAT_BITMAP: /* already a bitmap, don't do anything */
break;
case FT_GLYPH_FORMAT_SVG: /* handle svg rendering */
renderer = FT_Lookup_Renderer( library, slot->format, NULL );
error = renderer->clazz->render_glyph( renderer, slot, FT_RENDER_MODE_NORMAL, NULL);
if( error == FT_Err_Ok )
{
slot->format = FT_GLYPH_FORMAT_BITMAP;
}
return error;
break;
default:
if ( slot->internal->load_flags & FT_LOAD_COLOR )
{