Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType Demo Programs
Commits:
-
c1d91819
by Alexei Podtelezhnikov at 2022-11-11T12:42:56-05:00
1 changed file:
Changes:
... | ... | @@ -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++;
|