projects
/
m17n
/
libotf.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcec61a
)
(OTF_check_features): If language is specified but not found, return 0
author
handa
<handa>
Wed, 22 Sep 2010 03:46:17 +0000
(
03:46
+0000)
committer
handa
<handa>
Wed, 22 Sep 2010 03:46:17 +0000
(
03:46
+0000)
instead of using the default langsys.
src/otfopen.c
patch
|
blob
|
history
diff --git
a/src/otfopen.c
b/src/otfopen.c
index
299c23b
..
8aa062d
100644
(file)
--- 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++)
{