* src/autofit/aflatin.c (af_latin_metrics_scale_dim): Remove FT_ABS.

See
    https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=68679
This commit is contained in:
Alexei Podtelezhnikov 2024-05-04 16:42:47 -04:00
parent 7bd887f177
commit 2edfd7e168
1 changed files with 2 additions and 3 deletions

View File

@ -1263,10 +1263,9 @@
max_height = FT_MAX( max_height, -Axis->blues[nn].descender );
}
dist = FT_ABS( FT_MulFix( max_height, new_scale - scale ) );
dist &= ~127;
dist = FT_MulFix( max_height, new_scale - scale );
if ( dist == 0 )
if ( -128 < dist && dist < 128 )
{
FT_TRACE5(( "af_latin_metrics_scale_dim:"
" x height alignment (style `%s'):\n",