freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype-demos][master] * src/ftview.c (Render_{All,Fanc


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype-demos][master] * src/ftview.c (Render_{All,Fancy,Stroke}): Improve zero-width glyphs.
Date: Sun, 23 Apr 2023 13:13:09 +0000

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

Commits:

  • a0c50341
    by Alexei Podtelezhnikov at 2023-04-23T09:12:13-04:00
     * src/ftview.c (Render_{All,Fancy,Stroke}): Improve zero-width glyphs.
    

1 changed file:

Changes:

  • src/ftview.c
    ... ... @@ -244,7 +244,8 @@
    244 244
             grFillRect( display->bitmap, x, y - width, width, width,
    
    245 245
                         status.green );
    
    246 246
     
    
    247
    -        if ( slot->bitmap_left < -width >> 2 )
    
    247
    +        /* advance pen immediately if the glyph is behind the origin */
    
    248
    +        if ( slot->bitmap_left + (int)slot->bitmap.width <= 0 )
    
    248 249
             {
    
    249 250
               x     += width;
    
    250 251
               width  = 0;
    
    ... ... @@ -394,7 +395,8 @@
    394 395
             grFillRect( display->bitmap, x, y - width, width, width,
    
    395 396
                         status.green );
    
    396 397
     
    
    397
    -        if ( slot->bitmap_left < -width >> 2 )
    
    398
    +        /* advance pen immediately if the glyph is behind the origin */
    
    399
    +        if ( slot->bitmap_left + (int)slot->bitmap.width <= 0 )
    
    398 400
             {
    
    399 401
               x     += width;
    
    400 402
               width  = 0;
    
    ... ... @@ -589,7 +591,8 @@
    589 591
             grFillRect( display->bitmap, x, y - width, width, width,
    
    590 592
                         status.green );
    
    591 593
     
    
    592
    -        if ( slot->bitmap_left < -width >> 2 )
    
    594
    +        /* advance pen immediately if the glyph is behind the origin */
    
    595
    +        if ( slot->bitmap_left + (int)slot->bitmap.width <= 0 )
    
    593 596
             {
    
    594 597
               x     += width;
    
    595 598
               width  = 0;
    


  • reply via email to

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