summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-otn.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/font-otn.lua')
-rw-r--r--tex/context/base/mkiv/font-otn.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/font-otn.lua b/tex/context/base/mkiv/font-otn.lua
index edd933b0d..2ed10f405 100644
--- a/tex/context/base/mkiv/font-otn.lua
+++ b/tex/context/base/mkiv/font-otn.lua
@@ -2810,10 +2810,12 @@ function otf.dataset(tfmdata,font) -- generic variant, overloaded in context
}
rs[language] = rl
local sequences = tfmdata.resources.sequences
- for s=1,#sequences do
- local v = enabled and initialize(sequences[s],script,language,enabled,autoscript,autolanguage)
- if v then
- rl[#rl+1] = v
+ if sequences then
+ for s=1,#sequences do
+ local v = enabled and initialize(sequences[s],script,language,enabled,autoscript,autolanguage)
+ if v then
+ rl[#rl+1] = v
+ end
end
end
end