freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * src/sfnt/ttsbit.c (tt_face_load_sbix_


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/sfnt/ttsbit.c (tt_face_load_sbix_image): Respect metrics_only.
Date: Sat, 07 Sep 2024 17:49:33 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

  • 83af801b
    by Alexei Podtelezhnikov (Алексей Подтележников) at 2024-09-07T13:44:57-04:00
    * src/sfnt/ttsbit.c (tt_face_load_sbix_image): Respect metrics_only.
    
    Also fixes recursive flip.
    

1 changed file:

Changes:

  • src/sfnt/ttsbit.c
    ... ... @@ -1467,8 +1467,8 @@
    1467 1467
         FT_Error  error;
    
    1468 1468
         FT_Byte*  p;
    
    1469 1469
     
    
    1470
    -    FT_UNUSED( map );
    
    1471 1470
     #ifndef FT_CONFIG_OPTION_USE_PNG
    
    1471
    +    FT_UNUSED( map );
    
    1472 1472
         FT_UNUSED( metrics_only );
    
    1473 1473
     #endif
    
    1474 1474
     
    
    ... ... @@ -1527,7 +1527,7 @@
    1527 1527
             recurse_depth++;
    
    1528 1528
     
    
    1529 1529
             if ( graphicType == FT_MAKE_TAG( 'f', 'l', 'i', 'p' ) )
    
    1530
    -          flipped = TRUE;
    
    1530
    +          flipped = !flipped;
    
    1531 1531
     
    
    1532 1532
             goto retry;
    
    1533 1533
           }
    
    ... ... @@ -1546,7 +1546,7 @@
    1546 1546
                                  glyph_end - glyph_start - 8,
    
    1547 1547
                                  TRUE,
    
    1548 1548
                                  metrics_only );
    
    1549
    -      if ( !error && flipped )
    
    1549
    +      if ( flipped && !metrics_only && !error )
    
    1550 1550
           {
    
    1551 1551
             FT_UInt32*  curr_pos = (FT_UInt32*)map->buffer;
    
    1552 1552
     
    
    ... ... @@ -1562,7 +1562,7 @@
    1562 1562
               FT_UInt32*  right = curr_pos + width - 1;
    
    1563 1563
     
    
    1564 1564
     
    
    1565
    -          while( left < right )
    
    1565
    +          while ( left < right )
    
    1566 1566
               {
    
    1567 1567
                 FT_UInt32  value;
    
    1568 1568
     
    


  • reply via email to

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