shithub: freetype+ttf2subf

Download patch

ref: 03f3f8ab9e5bab63d925c7369a78d59b831896d7
parent: 94ebc248653ede802b2bfbf6219e17f487fab3ff
author: Werner Lemberg <[email protected]>
date: Mon May 13 02:53:19 EDT 2019

* src/psaux/psfont.c (cf2_font_setup): Fix compiler warning.

git/fs: mount .git/fs: mount/attach disallowed
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2019-05-13  Werner Lemberg  <[email protected]>
+
+	* src/psaux/psfont.c (cf2_font_setup): Fix compiler warning.
+
 2019-05-12  Werner Lemberg  <[email protected]>
 
 	[truetype] Doh.  Fix last commit to make it work.
--- a/src/psaux/psfont.c
+++ b/src/psaux/psfont.c
@@ -274,9 +274,6 @@
 
     if ( !font->isT1 )
     {
-      FT_Service_CFFLoad  cffload = (FT_Service_CFFLoad)font->cffload;
-
-
       /* check for variation vectors */
       vstore        = cf2_getVStore( decoder );
       hasVariations = ( vstore->dataCount != 0 );
@@ -284,6 +281,9 @@
       if ( hasVariations )
       {
 #ifdef TT_CONFIG_OPTION_GX_VAR_SUPPORT
+        FT_Service_CFFLoad  cffload = (FT_Service_CFFLoad)font->cffload;
+
+
         /* check whether Private DICT in this subfont needs to be reparsed */
         font->error = cf2_getNormalizedVector( decoder,
                                                &lenNormalizedV,