(OTF_drive_gsub_internal): Call OTF_get_table
[m17n/libotf.git] / 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