[truetype] Make all glyphs in `Zycon' GX font work.

* src/truetype/ttgxvar.c (ft_var_readpackedpoints): Fix boundary
tests.
This commit is contained in:
Behdad Esfahbod 2016-07-16 10:52:38 +02:00 committed by Werner Lemberg
parent a3b61253a7
commit 69446ddcce
2 changed files with 11 additions and 7 deletions

View File

@ -1,3 +1,10 @@
2016-07-16 Behdad Esfahbod <behdad@behdad.org>
[truetype] Make all glyphs in `Zycon' GX font work.
* src/truetype/ttgxvar.c (ft_var_readpackedpoints): Fix boundary
tests.
2016-07-16 Werner Lemberg <wl@gnu.org>
[truetype] Fix GX delta tracing.

View File

@ -174,14 +174,13 @@
first += FT_GET_USHORT();
points[i++] = first;
if ( runcnt < 1 || i + runcnt > n )
goto Exit;
/* first point not included in run count */
for ( j = 0; j < runcnt; j++ )
{
first += FT_GET_USHORT();
points[i++] = first;
if ( i == n )
break;
}
}
else
@ -189,18 +188,16 @@
first += FT_GET_BYTE();
points[i++] = first;
if ( runcnt < 1 || i + runcnt > n )
goto Exit;
for ( j = 0; j < runcnt; j++ )
{
first += FT_GET_BYTE();
points[i++] = first;
if ( i == n )
break;
}
}
}
Exit:
return points;
}