shithub: freetype+ttf2subf

Download patch

ref: cd0d1dfa0441f4e4d40634d76afd8bd7b3d0eadc
parent: ea94abb1851fcff553af724e7e31e4844b3adec6
author: Graham Asher <[email protected]>
date: Thu Jul 18 12:38:07 EDT 2002

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

git/fs: mount .git/fs: mount/attach disallowed
--- 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