From: handa Date: Tue, 14 Jun 2005 11:06:24 +0000 (+0000) Subject: (OTF_check_features): If gsubp is zero, check gpos X-Git-Tag: REL-0-9-5~61 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=d97000535fd632ecd607c7869a23f4b4884b5683;p=m17n%2Flibotf.git (OTF_check_features): If gsubp is zero, check gpos scripts and features. --- diff --git a/src/otfopen.c b/src/otfopen.c index 22dddca..abd1909 100644 --- a/src/otfopen.c +++ b/src/otfopen.c @@ -2929,8 +2929,16 @@ OTF_check_features (OTF *otf, int gsubp, if (OTF_get_features (otf, gsubp) < 0) return -1; - script_list = &otf->gsub->ScriptList; - feature_list = &otf->gsub->FeatureList; + if (gsubp) + { + script_list = &otf->gsub->ScriptList; + feature_list = &otf->gsub->FeatureList; + } + else + { + script_list = &otf->gpos->ScriptList; + feature_list = &otf->gpos->FeatureList; + } for (i = 0; i < script_list->ScriptCount && ! Script; i++) if (script_list->Script[i].ScriptTag == script) Script = script_list->Script + i;