From f271fe5330ffdf98393eddcb45d70a156c821cad Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 11 Jul 2005 01:02:52 +0000 Subject: [PATCH] (OTF_drive_gsub_internal): Call OTF_get_table unconditionally. (OTF_drive_gpos): Likewise. --- src/otfdrive.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 1.7.10.4