(OTF_drive_gsub_internal): Call OTF_get_table
authorhanda <handa>
Mon, 11 Jul 2005 01:02:52 +0000 (01:02 +0000)
committerhanda <handa>
Mon, 11 Jul 2005 01:02:52 +0000 (01:02 +0000)
unconditionally.
(OTF_drive_gpos): Likewise.

src/otfdrive.c

index fd72281..1263164 100644 (file)
@@ -1355,8 +1355,7 @@ OTF_drive_gsub_internal (OTF *otf, OTF_GlyphString *gstring,
       gstring->glyphs[i].f.index.from = gstring->glyphs[i].f.index.to = i;
     }
 
-  if (! otf->gsub
-      && OTF_get_table (otf, "GSUB") < 0)
+  if (OTF_get_table (otf, "GSUB") < 0)
     return errret;
   gsub = otf->gsub;
   if (gsub->FeatureList.FeatureCount == 0
@@ -1431,8 +1430,7 @@ OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring,
   for (i = 0; i < gstring->used; i++)
     gstring->glyphs[i].positioning_type = 0;
 
-  if (! otf->gpos
-      && OTF_get_table (otf, "GPOS") < 0)
+  if (OTF_get_table (otf, "GPOS") < 0)
     return errret;
   gpos = otf->gpos;
   if (gpos->FeatureList.FeatureCount == 0