summaryrefslogtreecommitdiff
path: root/tex/context/base/font-map.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/font-map.lua')
-rw-r--r--tex/context/base/font-map.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/tex/context/base/font-map.lua b/tex/context/base/font-map.lua
index 5fa4170d7..128e80eb9 100644
--- a/tex/context/base/font-map.lua
+++ b/tex/context/base/font-map.lua
@@ -233,7 +233,11 @@ fonts.map.addtounicode = function(data,filename)
t[#t+1] = u
end
end
- if #t > 0 then -- done then
+ if #t == 0 then -- done then
+ -- nothing
+ elseif #t == 1 then
+ originals[index], tounicode[index], nl, unicode = t[1], tounicode16(t[1]), nl + 1, true
+ else
originals[index], tounicode[index], nl, unicode = t, tounicode16sequence(t), nl + 1, true
end
end