* src/truetype/ttgxvar.c (ft_var_apply_tuple): Micro-optimize.

This commit is contained in:
Behdad Esfahbod (بهداد اسفهبد)
2025-05-20 16:51:25 -06:00
committed by Werner Lemberg
parent 14399c73c4
commit e6e9110a8f

View File

@@ -1896,16 +1896,24 @@
for ( i = 0; i < blend->num_axis; i++ )
{
FT_Fixed ncv = blend->normalizedcoords[i];
FT_Fixed ncv;
FT_TRACE6(( " axis %d coordinate %.5f:\n", i, (double)ncv / 65536 ));
/* It's not clear why (for intermediate tuples) we don't need */
/* to check against start/end -- the documentation says we don't. */
/* Similarly, it's unclear why we don't need to scale along the */
/* axis. */
if ( tuple_coords[i] == 0 )
{
FT_TRACE6(( " tuple coordinate is zero, ignore\n" ));
continue;
}
ncv = blend->normalizedcoords[i];
FT_TRACE6(( " axis %d coordinate %.5f:\n", i, (double)ncv / 65536 ));
if ( tuple_coords[i] == ncv )
{
FT_TRACE6(( " tuple coordinate %.5f fits perfectly\n",