summaryrefslogtreecommitdiff
path: root/tex/context/base/font-ctx.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-07-09 16:15:05 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-07-09 16:15:05 +0200
commitd7b51cfffa3d797c9a19d6cf5366150bcf032554 (patch)
treebafdf991019b3a94835b4593ca7973cdeab2bcde /tex/context/base/font-ctx.lua
parentdc7195d9c40c947f61bd001635de6e8b2cb99167 (diff)
downloadcontext-d7b51cfffa3d797c9a19d6cf5366150bcf032554.tar.gz
2015-07-09 15:25:00
Diffstat (limited to 'tex/context/base/font-ctx.lua')
-rw-r--r--tex/context/base/font-ctx.lua22
1 files changed, 12 insertions, 10 deletions
diff --git a/tex/context/base/font-ctx.lua b/tex/context/base/font-ctx.lua
index 81db31652..da8373c98 100644
--- a/tex/context/base/font-ctx.lua
+++ b/tex/context/base/font-ctx.lua
@@ -297,17 +297,19 @@ local privatefeatures = {
}
local function checkedscript(tfmdata,resources,features)
- local latn = false
+ local latn = false
local script = false
- for g, list in next, resources.features do
- for f, scripts in next, list do
- if privatefeatures[f] then
- -- skip
- elseif scripts.dflt then
- script = "dflt"
- break
- elseif scripts.latn then
- latn = true
+ if resources.features then
+ for g, list in next, resources.features do
+ for f, scripts in next, list do
+ if privatefeatures[f] then
+ -- skip
+ elseif scripts.dflt then
+ script = "dflt"
+ break
+ elseif scripts.latn then
+ latn = true
+ end
end
end
end