shithub: freetype+ttf2subf

Download patch

ref: 3987b15ef76982a509a72356fc8d2f1a3aa76e91
parent: 0e6fc09134c0c39016f681802918b92db2ab2155
author: Werner Lemberg <[email protected]>
date: Sat Oct 2 07:46:19 EDT 2010

Fix Savannah bug #31088 (sort of).

* src/sfnt/ttload.c (tt_face_load_maxp): Always allocate at least 64
function entries.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2010-10-02  Werner Lemberg  <[email protected]>
 
+	Fix Savannah bug #31088 (sort of).
+
+	* src/sfnt/ttload.c (tt_face_load_maxp): Always allocate at least 64
+	function entries.
+
+2010-10-02  Werner Lemberg  <[email protected]>
+
 	[smooth] Fix splitting of cubics for negative values.
 
 	Reported by Róbert Márki <[email protected]>; see
--- a/src/sfnt/ttload.c
+++ b/src/sfnt/ttload.c
@@ -680,9 +680,9 @@
       /*      broken fonts like `Keystrokes MT' :-(           */
       /*                                                      */
       /*   We allocate 64 function entries by default when    */
-      /*   the maxFunctionDefs field is null.                 */
+      /*   the maxFunctionDefs value is smaller.              */
 
-      if ( maxProfile->maxFunctionDefs == 0 )
+      if ( maxProfile->maxFunctionDefs < 64 )
         maxProfile->maxFunctionDefs = 64;
 
       /* we add 4 phantom points later */