/* 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
/* Root of application data chain. */
OTF_ApplicationData *app_data;
-
- /* Log of applied features by OTF_driver_XXX. */
- OTF_DriveLog *drive_log;
};
static OTF_MemoryRecord *
} \
} 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 */
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];
if ((((unsigned) feature) & 0x80000000) == 0)
return -1;
}
- return 1;
}
if (gsubp)
{