freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] * src/autofit/aflatin.c (af_latin_metri


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Remove FT_ABS.
Date: Sat, 04 May 2024 20:45:41 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

  • 2edfd7e1
    by Alexei Podtelezhnikov (Алексей Подтележников) at 2024-05-04T16:42:47-04:00
    * src/autofit/aflatin.c (af_latin_metrics_scale_dim): Remove FT_ABS.
    
    See
        https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68679
    

1 changed file:

Changes:

  • src/autofit/aflatin.c
    ... ... @@ -1263,10 +1263,9 @@
    1263 1263
                   max_height = FT_MAX( max_height, -Axis->blues[nn].descender );
    
    1264 1264
                 }
    
    1265 1265
     
    
    1266
    -            dist  = FT_ABS( FT_MulFix( max_height, new_scale - scale ) );
    
    1267
    -            dist &= ~127;
    
    1266
    +            dist  = FT_MulFix( max_height, new_scale - scale );
    
    1268 1267
     
    
    1269
    -            if ( dist == 0 )
    
    1268
    +            if ( -128 < dist && dist < 128 )
    
    1270 1269
                 {
    
    1271 1270
                   FT_TRACE5(( "af_latin_metrics_scale_dim:"
    
    1272 1271
                               " x height alignment (style `%s'):\n",
    


  • reply via email to

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