mirror of
git://git.sv.nongnu.org/freetype/freetype2.git
synced 2026-01-19 04:52:09 +00:00
* src/truetype/ttgxvar.c (ft_var_apply_tuple): Micro-optimize.
This commit is contained in:
committed by
Werner Lemberg
parent
14399c73c4
commit
e6e9110a8f
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user