Commit cd0d1dfa0441f4e4d40634d76afd8bd7b3d0eadc

Graham Asher 2002-07-18T16:38:07

Changes to support incremental Type 42 fonts: assume a font has glyphs if it has an incremental interface object.

diff --git a/src/sfnt/sfobjs.c b/src/sfnt/sfobjs.c
index cf7f5ba..609f000 100644
--- a/src/sfnt/sfobjs.c
+++ b/src/sfnt/sfobjs.c
@@ -432,8 +432,15 @@
     /*                                                             */
 
     /* do we have outlines in there? */
-    has_outline   = FT_BOOL( ( TT_LookUp_Table( face, TTAG_glyf ) != 0 ) ||
-                             ( TT_LookUp_Table( face, TTAG_CFF  ) != 0 ) );
+#ifdef FT_CONFIG_OPTION_INCREMENTAL
+    has_outline   = FT_BOOL( face->root.incremental_interface != 0 ||
+                             TT_LookUp_Table( face, TTAG_glyf ) != 0 ||
+                             TT_LookUp_Table( face, TTAG_CFF ) != 0 );
+#else
+    has_outline   = FT_BOOL( TT_LookUp_Table( face, TTAG_glyf ) != 0 ||
+                             TT_LookUp_Table( face, TTAG_CFF ) != 0 );
+#endif
+
     is_apple_sbit = 0;
 
 #ifdef TT_CONFIG_OPTION_EMBEDDED_BITMAPS