summaryrefslogtreecommitdiff
path: root/tex/context/base/font-otf.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2010-02-21 19:21:00 +0100
committerHans Hagen <pragma@wxs.nl>2010-02-21 19:21:00 +0100
commit8b61273b8c492e094d65764f3151d779d2f7c6cc (patch)
tree430c0b68fbfb99c63226108911a506e4fa43905a /tex/context/base/font-otf.lua
parentd0e4f28e750d875abc052acb4429e78743693a2c (diff)
downloadcontext-8b61273b8c492e094d65764f3151d779d2f7c6cc.tar.gz
beta 2010.02.21 19:21
Diffstat (limited to 'tex/context/base/font-otf.lua')
-rw-r--r--tex/context/base/font-otf.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tex/context/base/font-otf.lua b/tex/context/base/font-otf.lua
index 7ba9a21b6..84a305912 100644
--- a/tex/context/base/font-otf.lua
+++ b/tex/context/base/font-otf.lua
@@ -84,7 +84,7 @@ otf.features.default = otf.features.default or { }
otf.enhancers = otf.enhancers or { }
otf.glists = { "gsub", "gpos" }
-otf.version = 2.643 -- beware: also sync font-mis.lua
+otf.version = 2.644 -- beware: also sync font-mis.lua
otf.pack = true -- beware: also sync font-mis.lua
otf.syncspace = true
otf.notdef = false
@@ -542,7 +542,7 @@ otf.enhancers["analyse unicodes"] = function(data,filename)
for index, glyph in next, data.glyphs do
local name, unic = glyph.name, glyph.unicode or -1 -- play safe
if unic == -1 or unic >= private or (unic >= 0xE000 and unic <= 0xF8FF) or unic == 0xFFFE or unic == 0xFFFF then
- local unicode = lumunic and lumunic[name]
+ local unicode = (aglmap and aglmap[name]) or (lumunic and lumunic[name])
if unicode then
originals[index], tounicode[index], ns = unicode, tounicode16(unicode), ns + 1
end