forked from minhngoc25a/freetype2
[sdf] Return `FT_Err_Ok` while trying to render bitmap.
* src/sdf/ftsdfrend.c (ft_bsdf_render): Return OK if the slot is a bitmap and the render mode is anything other than `FT_RENDER_MODE_SDF`. This is for compatibility reasons. Fixes issue #1076
This commit is contained in:
parent
fed5521016
commit
d7f649f283
|
@ -502,8 +502,11 @@
|
|||
/* check whether render mode is correct */
|
||||
if ( mode != FT_RENDER_MODE_SDF )
|
||||
{
|
||||
error = FT_THROW( Cannot_Render_Glyph );
|
||||
goto Exit;
|
||||
FT_TRACE0(( "ft_bsdf_render: trying to render bitmap\n" ));
|
||||
|
||||
/* return OK since the slot is already a bitmap */
|
||||
error = FT_Err_Ok;
|
||||
return error;
|
||||
}
|
||||
|
||||
if ( origin )
|
||||
|
|
Loading…
Reference in New Issue