Versions changed to 0.9.12.
[m17n/libotf.git] / src / otfopen.c
index c688728..299c23b 100644 (file)
@@ -1,6 +1,6 @@
 /* otfopen.c -- OpenType font reader.
 
-Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009
+Copyright (C) 2003, 2004, 2005, 2006, 2008, 2009, 2010
   National Institute of Advanced Industrial Science and Technology (AIST)
   Registration Number H15PRO167
 
@@ -331,9 +331,6 @@ struct OTF_InternalData
 
   /* Root of application data chain.  */
   OTF_ApplicationData *app_data;
-
-  /* Log of applied features by OTF_driver_XXX.  */
-  OTF_DriveLog *drive_log;
 };
 
 static OTF_MemoryRecord *
@@ -387,22 +384,6 @@ allocate_memory_record (OTF *otf)
       }                                                                        \
   } while (0)
 
-void
-set_drive_log (OTF *otf, OTF_DriveLog *log)
-{
-  OTF_InternalData *internal_data = (OTF_InternalData *) otf->internal_data;
-
-  internal_data->drive_log = log;
-}
-
-OTF_DriveLog *
-get_drive_log (OTF *otf)
-{
-  OTF_InternalData *internal_data = (OTF_InternalData *) otf->internal_data;
-
-  return (internal_data->drive_log);
-}
-
 \f
 /*** (1-2) "head" table */
 
@@ -3197,6 +3178,8 @@ OTF_check_features (OTF *otf, int gsubp,
 
   if (OTF_get_features (otf, gsubp) < 0)
     {
+      if (gsubp ? ! otf->gsub : ! otf->gpos)
+       return 0;
       for (i = 0; i < n_features; i++)
        {
          OTF_Tag feature = features[i];
@@ -3206,7 +3189,6 @@ OTF_check_features (OTF *otf, int gsubp,
          if ((((unsigned) feature) & 0x80000000) == 0)
            return -1;
        }
-      return 1;
     }
   if (gsubp)
     {