From d97000535fd632ecd607c7869a23f4b4884b5683 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 14 Jun 2005 11:06:24 +0000 Subject: [PATCH] (OTF_check_features): If gsubp is zero, check gpos scripts and features. --- src/otfopen.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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; -- 1.7.10.4