freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype-demos][master] *src/ftbench.c (test_stroke): Tes


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype-demos][master] *src/ftbench.c (test_stroke): Test outline glyphs only.
Date: Fri, 12 May 2023 16:43:39 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs

Commits:

  • 7eb15781
    by Alexei Podtelezhnikov at 2023-05-12T16:43:37+00:00
    *src/ftbench.c (test_stroke): Test outline glyphs only.

1 changed file:

Changes:

  • src/ftbench.c
    ... ... @@ -443,10 +443,9 @@
    443 443
     
    
    444 444
         FOREACH( i )
    
    445 445
         {
    
    446
    -      if ( FT_Load_Glyph( face, (FT_UInt)i, load_flags ) )
    
    447
    -        continue;
    
    448
    -
    
    449
    -      if ( FT_Get_Glyph( face->glyph, &glyph ) )
    
    446
    +      if ( FT_Load_Glyph( face, (FT_UInt)i, load_flags )  ||
    
    447
    +           face->glyph->format != FT_GLYPH_FORMAT_OUTLINE ||
    
    448
    +           FT_Get_Glyph( face->glyph, &glyph )            )
    
    450 449
             continue;
    
    451 450
     
    
    452 451
           TIMER_START( timer );
    


  • reply via email to

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