summaryrefslogtreecommitdiff
path: root/tex/context/base/font-oup.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-07-12 16:15:05 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-07-12 16:15:05 +0200
commitbd0ef6b1b32b7a6bb313ad7619c35da45cb4ede3 (patch)
tree2650e8dfd099b363a7611916cf56421be0a55da3 /tex/context/base/font-oup.lua
parent83703e9634edaf36b05c50d9744a5caa1523648b (diff)
downloadcontext-bd0ef6b1b32b7a6bb313ad7619c35da45cb4ede3.tar.gz
2015-07-12 15:42:00
Diffstat (limited to 'tex/context/base/font-oup.lua')
-rw-r--r--tex/context/base/font-oup.lua15
1 files changed, 9 insertions, 6 deletions
diff --git a/tex/context/base/font-oup.lua b/tex/context/base/font-oup.lua
index a1c225ee9..e07bd6d05 100644
--- a/tex/context/base/font-oup.lua
+++ b/tex/context/base/font-oup.lua
@@ -646,12 +646,15 @@ function readers.addunicodetable(fontdata)
local resources = fontdata.resources
local unicodes = resources.unicodes
if not unicodes then
- unicodes = { }
- resources.unicodes = unicodes
- for u, d in next, fontdata.descriptions do
- local n = d.name
- if n then
- unicodes[n] = u
+ local descriptions = fontdata.descriptions
+ if descriptions then
+ unicodes = { }
+ resources.unicodes = unicodes
+ for u, d in next, descriptions do
+ local n = d.name
+ if n then
+ unicodes[n] = u
+ end
end
end
end