* src/sdf/ftsdfrend.c (ft_(b)sdf_render): Do not FT_ERROR routinely.
This commit is contained in:
parent
482c57cc34
commit
61bac75963
|
@ -1,3 +1,7 @@
|
||||||
|
2021-06-18 Alexei Podtelezhnikov <apodtele@gmail.com>
|
||||||
|
|
||||||
|
* src/sdf/ftsdfrend.c (ft_(b)sdf_render): Do not FT_ERROR routinely.
|
||||||
|
|
||||||
2021-06-16 David Turner <david@freetype.org>
|
2021-06-16 David Turner <david@freetype.org>
|
||||||
|
|
||||||
[autofit] Fix return value of `FT_Load_Glyph`.
|
[autofit] Fix return value of `FT_Load_Glyph`.
|
||||||
|
|
|
@ -278,9 +278,6 @@
|
||||||
/* check whether render mode is correct */
|
/* check whether render mode is correct */
|
||||||
if ( mode != FT_RENDER_MODE_SDF )
|
if ( mode != FT_RENDER_MODE_SDF )
|
||||||
{
|
{
|
||||||
FT_ERROR(( "[sdf] ft_sdf_render:"
|
|
||||||
" sdf module only render when"
|
|
||||||
" using `FT_RENDER_MODE_SDF'\n" ));
|
|
||||||
error = FT_THROW( Cannot_Render_Glyph );
|
error = FT_THROW( Cannot_Render_Glyph );
|
||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
|
@ -490,8 +487,6 @@
|
||||||
/* check whether slot format is correct before rendering */
|
/* check whether slot format is correct before rendering */
|
||||||
if ( slot->format != render->glyph_format )
|
if ( slot->format != render->glyph_format )
|
||||||
{
|
{
|
||||||
FT_ERROR(( "ft_bsdf_render: slot format must be a bitmap\n" ));
|
|
||||||
|
|
||||||
error = FT_THROW( Invalid_Glyph_Format );
|
error = FT_THROW( Invalid_Glyph_Format );
|
||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
|
@ -499,8 +494,6 @@
|
||||||
/* check whether render mode is correct */
|
/* check whether render mode is correct */
|
||||||
if ( mode != FT_RENDER_MODE_SDF )
|
if ( mode != FT_RENDER_MODE_SDF )
|
||||||
{
|
{
|
||||||
FT_ERROR(( "ft_bsdf_render: need `FT_RENDER_MODE_SDF' mode\n" ));
|
|
||||||
|
|
||||||
error = FT_THROW( Cannot_Render_Glyph );
|
error = FT_THROW( Cannot_Render_Glyph );
|
||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue