From e82129639d46b119f5d4935132cce722e7039384 Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 22 Sep 2010 03:46:17 +0000 Subject: [PATCH] (OTF_check_features): If language is specified but not found, return 0 instead of using the default langsys. --- src/otfopen.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/otfopen.c b/src/otfopen.c index 299c23b..8aa062d 100644 --- a/src/otfopen.c +++ b/src/otfopen.c @@ -3210,8 +3210,10 @@ OTF_check_features (OTF *otf, int gsubp, for (i = 0; i < Script->LangSysCount && ! LangSys; i++) if (Script->LangSysRecord[i].LangSysTag == language) LangSys = Script->LangSys + i; + if (! LangSys) + return 0; } - if (! LangSys) + else LangSys = &Script->DefaultLangSys; for (j = 0; j < n_features; j++) { -- 1.7.10.4