truetype: Extend TrueType GX packed deltas to FT_Offset.

This commit is contained in:
suzuki toshiya 2009-07-03 18:01:36 +09:00
parent c7a2e69ed8
commit c156c52cd9
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,12 @@
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Extend TrueType GX packed deltas to FT_Offset.
* src/truetype/ttgxvar.c (ft_var_readpackeddeltas):
The type of 2nd argument `delta_cnt' is changed from
FT_Int to FT_Offset, because its source can be cvt
table size calculated from stream position.
2009-07-03 suzuki toshiya <mpsuzuki@hiroshima-u.ac.jp>
truetype: Extend mmvar_len to hold size_t values.

View File

@ -211,12 +211,12 @@
/* */
static FT_Short*
ft_var_readpackeddeltas( FT_Stream stream,
FT_Int delta_cnt )
FT_Offset delta_cnt )
{
FT_Short *deltas;
FT_Int runcnt;
FT_Int i;
FT_Int j;
FT_Offset i;
FT_Offset j;
FT_Memory memory = stream->memory;
FT_Error error = TT_Err_Ok;