summaryrefslogtreecommitdiff
path: root/tex/context/base/font-oup.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-12-19 15:15:06 +0100
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-12-19 15:15:06 +0100
commit717e95884408a83aaf6c7f34fd38b94b2fb83bed (patch)
treee3d8b9a4e5df583d2b7fc0d7f2089d2009e926a8 /tex/context/base/font-oup.lua
parentd1faffcd5d92925a6c5e66ebb72b4c8dcfae236f (diff)
downloadcontext-717e95884408a83aaf6c7f34fd38b94b2fb83bed.tar.gz
2015-12-19 14:45:00
Diffstat (limited to 'tex/context/base/font-oup.lua')
-rw-r--r--tex/context/base/font-oup.lua29
1 files changed, 23 insertions, 6 deletions
diff --git a/tex/context/base/font-oup.lua b/tex/context/base/font-oup.lua
index c740b5e55..64d658d6a 100644
--- a/tex/context/base/font-oup.lua
+++ b/tex/context/base/font-oup.lua
@@ -323,12 +323,16 @@ local function copyduplicates(fontdata)
if duplicates then
for u, d in next, duplicates do
local du = descriptions[u]
- local t = { f_character(u) }
- for u in next, d do
- descriptions[u] = copy(du)
- t[#t+1] = f_character(u)
+ if du then
+ local t = { f_character(u) }
+ for u in next, d do
+ descriptions[u] = copy(du)
+ t[#t+1] = f_character(u)
+ end
+ report("duplicates: % t",t)
+ else
+ -- what a mess
end
- report("duplicates: % t",t)
end
end
end
@@ -583,7 +587,20 @@ local function unifyglyphs(fontdata,usenames)
local glyph = glyphs[index]
local unicode = glyph.unicode -- this is the primary one
if not unicode then
- -- report("assigning private unicode %U to glyph indexed %05X",index,private)
+ -- report("assigning private unicode %U to glyph indexed %05X (%s)",private,index,"unset")
+ unicode = private
+ -- glyph.unicode = -1
+ if names then
+ local name = glyph.name or f_private(unicode)
+ indices[index] = name
+ names[name] = unicode
+ else
+ indices[index] = unicode
+ end
+ private = private + 1
+ elseif descriptions[unicode] then
+ -- real weird
+report("assigning private unicode %U to glyph indexed %05X (%C)",private,index,unicode)
unicode = private
-- glyph.unicode = -1
if names then