shithub: freetype+ttf2subf

Download patch

ref: ec7bc863fbe57c56def98c9e436f840f6ed27942
parent: 5668181bdad1e985125a7e5c3e93d5e6bc399bfc
author: suzuki toshiya <[email protected]>
date: Fri Jul 31 20:32:19 EDT 2009

truetype: Extend TrueType GX packed deltas to FT_Offset.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2009-07-31  suzuki toshiya <[email protected]>
 
+	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-31  suzuki toshiya <[email protected]>
+
 	truetype: Extend mmvar_len to hold size_t values.
 
 	* src/truetype/ttgxvar.h: The type of
--- a/src/truetype/ttgxvar.c
+++ b/src/truetype/ttgxvar.c
@@ -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;