shithub: freetype+ttf2subf

Download patch

ref: 43071cb7f2439525f3e55dadcc3a644d86fd0535
parent: 8880f2c14d1c410dc7ca87fd5d05b58d78c3dcc1
author: Werner Lemberg <[email protected]>
date: Fri Jan 25 17:55:53 EST 2002

* src/cff/cffdrivr.c (cff_get_name_index): Make last patch work
actually.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-25  Werner Lemberg  <[email protected]>
+
+	* src/cff/cffdrivr.c (cff_get_name_index): Make last patch work
+	actually.
+
 2002-01-25  Martin Zinser  <[email protected]>
 
 	* src/cache/ftccache.c (ftc_node_done, ftc_node_destroy): Fix
--- a/src/cff/cffdrivr.c
+++ b/src/cff/cffdrivr.c
@@ -228,7 +228,7 @@
                       FT_UInt     buffer_max )
   {
     CFF_Font*           font   = (CFF_Font*)face->extra.data;
-    FT_Memory           memory = FT_FACE_MEMORY(face);
+    FT_Memory           memory = FT_FACE_MEMORY( face );
     FT_String*          gname;
     FT_UShort           sid;
     PSNames_Interface*  psnames;
@@ -341,6 +341,7 @@
     CFF_Font*           cff;
     CFF_Charset*        charset;
     PSNames_Interface*  psnames;
+    FT_Memory           memory = FT_FACE_MEMORY( face );
     FT_String*          name;
     FT_UShort           sid;
     FT_UInt             i;
@@ -367,7 +368,7 @@
       if ( sid > 390 )
         FREE( name );
 
-      if ( !ret )
+      if ( !result )
         return i;
     }