[truetype] Make all glyphs in `Zycon' GX font work.
* src/truetype/ttgxvar.c (ft_var_readpackedpoints): Fix boundary tests.
This commit is contained in:
parent
a3b61253a7
commit
69446ddcce
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user