From: handa Date: Mon, 11 Jul 2005 01:02:52 +0000 (+0000) Subject: (OTF_drive_gsub_internal): Call OTF_get_table X-Git-Tag: REL-0-9-5~50 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=f271fe5330ffdf98393eddcb45d70a156c821cad;p=m17n%2Flibotf.git (OTF_drive_gsub_internal): Call OTF_get_table unconditionally. (OTF_drive_gpos): Likewise. --- diff --git a/src/otfdrive.c b/src/otfdrive.c index fd72281..1263164 100644 --- a/src/otfdrive.c +++ b/src/otfdrive.c @@ -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