From: handa Date: Wed, 21 Apr 2010 07:31:34 +0000 (+0000) Subject: (OTF_check_features): Even if no feature is X-Git-Tag: REL-0-9-12~10 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e24d73d67b9f5b791fbcabd88118def00805440;p=m17n%2Flibotf.git (OTF_check_features): Even if no feature is specified, check script support. --- diff --git a/src/otfopen.c b/src/otfopen.c index 229bd40..299c23b 100644 --- a/src/otfopen.c +++ b/src/otfopen.c @@ -3178,6 +3178,8 @@ OTF_check_features (OTF *otf, int gsubp, if (OTF_get_features (otf, gsubp) < 0) { + if (gsubp ? ! otf->gsub : ! otf->gpos) + return 0; for (i = 0; i < n_features; i++) { OTF_Tag feature = features[i]; @@ -3187,7 +3189,6 @@ OTF_check_features (OTF *otf, int gsubp, if ((((unsigned) feature) & 0x80000000) == 0) return -1; } - return 1; } if (gsubp) {