summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-otl.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2021-07-02 14:01:19 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2021-07-02 14:01:19 +0200
commitc6ae1bb6230894346094364eb08d3aca0efdea9a (patch)
treefa68628b63f340cb6c3b27b534e42584ae7de782 /tex/context/base/mkiv/font-otl.lua
parentaf3da9d9f5ae4c2320d042080b4ff9d7d3460314 (diff)
downloadcontext-c6ae1bb6230894346094364eb08d3aca0efdea9a.tar.gz
2021-07-02 13:18:00
Diffstat (limited to 'tex/context/base/mkiv/font-otl.lua')
-rw-r--r--tex/context/base/mkiv/font-otl.lua15
1 files changed, 10 insertions, 5 deletions
diff --git a/tex/context/base/mkiv/font-otl.lua b/tex/context/base/mkiv/font-otl.lua
index eadf05890..74f209b0a 100644
--- a/tex/context/base/mkiv/font-otl.lua
+++ b/tex/context/base/mkiv/font-otl.lua
@@ -52,7 +52,7 @@ local report_otf = logs.reporter("fonts","otf loading")
local fonts = fonts
local otf = fonts.handlers.otf
-otf.version = 3.117 -- beware: also sync font-mis.lua and in mtx-fonts
+otf.version = 3.118 -- beware: also sync font-mis.lua and in mtx-fonts
otf.cache = containers.define("fonts", "otl", otf.version, true)
otf.svgcache = containers.define("fonts", "svg", otf.version, true)
otf.pngcache = containers.define("fonts", "png", otf.version, true)
@@ -512,10 +512,15 @@ elseif CONTEXTLMTXMODE then
local maxindex = data.nofglyphs or metadata.nofglyphs
if maxindex then
for u, d in sortedhash(duplicates) do
- for uu in sortedhash(d) do
- maxindex = maxindex + 1
- descriptions[uu].dupindex = descriptions[u].index
- descriptions[uu].index = maxindex
+ local du = descriptions[u]
+ if du then
+ for uu in sortedhash(d) do
+ maxindex = maxindex + 1
+ descriptions[uu].dupindex = du.index
+ descriptions[uu].index = maxindex
+ end
+ else
+ -- report_otf("no %U in font %a, duplicates ignored",u,filename)
end
end
end