mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-07 11:08:02 +02:00
[gxvar] Another optimization in computing scalar.
Another ~6% speedup in GoogleSansFlex var drawing. * src/truetype/ttgxvar.c (ft_var_apply_tuple): Test `ncv` for being zero.
This commit is contained in:
parent
e7cc14ba16
commit
fd92af79d8
1 changed files with 7 additions and 0 deletions
|
|
@ -1909,6 +1909,13 @@
|
|||
|
||||
FT_TRACE6(( " axis %d coordinate %.5f:\n", i, (double)ncv / 65536 ));
|
||||
|
||||
if ( ncv == 0 )
|
||||
{
|
||||
FT_TRACE6(( " axis coordinate is zero, stop\n" ));
|
||||
apply = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
if ( tuple_coords[i] == ncv )
|
||||
{
|
||||
FT_TRACE6(( " tuple coordinate %.5f fits perfectly\n",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue