freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Git][freetype/freetype][master] [sdf] Do not throw errors for invisible


From: Werner Lemberg (@wl)
Subject: [Git][freetype/freetype][master] [sdf] Do not throw errors for invisible glyphs.
Date: Sat, 30 Apr 2022 17:40:00 +0000

Werner Lemberg pushed to branch master at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • src/sdf/ftsdfrend.c
    ... ... @@ -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
     
    


  • reply via email to

    [Prev in Thread] Current Thread [Next in Thread]