shithub: freetype+ttf2subf

Download patch

ref: ce1bad0381c8ae0bff2ea54d5101808779e1b498
parent: d03d856d959271920f9468198153c54d552d1847
author: Werner Lemberg <[email protected]>
date: Wed Oct 1 18:46:26 EDT 2008

* src/sfnt/sfobjs.c (sfnt_load_face): `psnames_error' is only needed
if TT_CONFIG_OPTION_POSTSCRIPT_NAMES is defined.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-10-02  Werner Lemberg  <[email protected]>
+
+	* src/sfnt/sfobjs.c (sfnt_load_face): `psnames_error' is only needed
+	if TT_CONFIG_OPTION_POSTSCRIPT_NAMES is defined.
+
 2008-10-01  Werner Lemberg  <[email protected]>
 
 	* src/truetype/ttobjs.c (tt_face_done), src/cff/cffobjs.c
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -506,7 +506,10 @@
                   FT_Int         num_params,
                   FT_Parameter*  params )
   {
-    FT_Error      error, psnames_error;
+    FT_Error      error;
+#ifdef TT_CONFIG_OPTION_POSTSCRIPT_NAMES
+    FT_Error      psnames_error;
+#endif
     FT_Bool       has_outline;
     FT_Bool       is_apple_sbit;
 
@@ -581,7 +584,10 @@
     /* don't check for errors                            */
     LOAD_( name );
     LOAD_( post );
+
+#ifdef TT_CONFIG_OPTION_POSTSCRIPT_NAMES
     psnames_error = error;
+#endif
 
     /* do not load the metrics headers and tables if this is an Apple */
     /* sbit font file                                                 */