forked from minhngoc25a/freetype2
Remove unnecessary code from `FT_Render_Glyph_Internal'.
This commit is contained in:
parent
1f74524929
commit
cf44c0cbdd
|
@ -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 )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue