From 3e24d73d67b9f5b791fbcabd88118def00805440 Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 21 Apr 2010 07:31:34 +0000 Subject: [PATCH] (OTF_check_features): Even if no feature is specified, check script support. --- src/otfopen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 1.7.10.4