Werner Lemberg pushed to branch master at FreeType / FreeType
Commits:
-
7b3ebb9c
by Anuj Verma at 2022-04-30T19:38:11+02:00
1 changed file:
Changes:
... | ... | @@ -298,15 +298,9 @@ |
298 | 298 | goto Exit;
|
299 | 299 | }
|
300 | 300 | |
301 | - /* the rows and pitch must be valid after presetting the */
|
|
302 | - /* bitmap using outline */
|
|
301 | + /* nothing to render */
|
|
303 | 302 | if ( !bitmap->rows || !bitmap->pitch )
|
304 | - {
|
|
305 | - FT_ERROR(( "ft_sdf_render: failed to preset bitmap\n" ));
|
|
306 | - |
|
307 | - error = FT_THROW( Cannot_Render_Glyph );
|
|
308 | - goto Exit;
|
|
309 | - }
|
|
303 | + return FT_Err_Ok;
|
|
310 | 304 | |
311 | 305 | /* the padding will simply be equal to the `spread' */
|
312 | 306 | x_pad = sdf_module->spread;
|
... | ... | @@ -525,13 +519,9 @@ |
525 | 519 | goto Exit;
|
526 | 520 | }
|
527 | 521 | |
522 | + /* nothing to render */
|
|
528 | 523 | if ( !bitmap->rows || !bitmap->pitch )
|
529 | - {
|
|
530 | - FT_ERROR(( "ft_bsdf_render: invalid bitmap size\n" ));
|
|
531 | - |
|
532 | - error = FT_THROW( Invalid_Argument );
|
|
533 | - goto Exit;
|
|
534 | - }
|
|
524 | + return FT_Err_Ok;
|
|
535 | 525 | |
536 | 526 | FT_Bitmap_New( &target );
|
537 | 527 |