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_get_bbox):


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype-demos][master] * src/ftbench.c (test_get_bbox): Use `FT_Set_Transform`.
Date: Fri, 11 Nov 2022 17:44:12 +0000

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

Commits:

  • c1d91819
    by Alexei Podtelezhnikov at 2022-11-11T12:42:56-05:00
    * src/ftbench.c (test_get_bbox): Use `FT_Set_Transform`.
    

1 changed file:

Changes:

  • src/ftbench.c
    ... ... @@ -539,22 +539,16 @@
    539 539
     
    
    540 540
         FT_UNUSED( user_data );
    
    541 541
     
    
    542
    +    /* rotate outlines by 30 degrees so that CBox and BBox are different */
    
    543
    +    FT_Set_Transform( face, &rot30, NULL );
    
    542 544
     
    
    543 545
         FOREACH( i )
    
    544 546
         {
    
    545
    -      FT_Outline*  outline;
    
    546
    -
    
    547
    -
    
    548 547
           if ( FT_Load_Glyph( face, (FT_UInt)i, load_flags ) )
    
    549 548
             continue;
    
    550 549
     
    
    551
    -      outline = &face->glyph->outline;
    
    552
    -
    
    553
    -      /* rotate outline by 30 degrees */
    
    554
    -      FT_Outline_Transform( outline, &rot30 );
    
    555
    -
    
    556 550
           TIMER_START( timer );
    
    557
    -      FT_Outline_Get_BBox( outline, &bbox );
    
    551
    +      FT_Outline_Get_BBox( &face->glyph->outline, &bbox );
    
    558 552
           TIMER_STOP( timer );
    
    559 553
     
    
    560 554
           done++;
    


  • reply via email to

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