shithub: freetype+ttf2subf

Download patch

ref: 8f626b04f3c41ad91441cabdf57305869796c483
parent: 5b4d435a969706dfb2ff070ebd1d65e832d2b08b
author: David Turner <[email protected]>
date: Fri Jun 22 18:22:38 EDT 2007

fix stupid typo that prevented the truetype loader from working correctly

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-23  David Turner  <[email protected]>
+
+	* src/truetype/ttgload.c (TT_Load_Simple): fix typo that prevented
+	the truetype loader from loading most glyphs. ooops !
+
 2007-06-20  Werner Lemberg  <[email protected]>
 
 	* src/cff/cffgload.c (cff_slot_load): Fix logic of 2007-05-28
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -271,7 +271,7 @@
     for ( cont++; cont < cont_limit; cont++ )
     {
       cont[0] = FT_NEXT_USHORT( p );
-      if ( cont[0] > prev_cont )
+      if ( cont[0] <= prev_cont )
       {
         /* unordered contours: this is invalid */
         error = FT_Err_Invalid_Table;