diff options
author | Karl Berry <karl@freefriends.org> | 2013-07-05 23:54:33 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2013-07-05 23:54:33 +0000 |
commit | 3a7fd63f467d90781d764fbded8b377343d25522 (patch) | |
tree | cdedc2a8efb1115d3b9a6743f70a77781600b452 /Master/texmf-dist/tex/luatex/luaotfload/luaotfload-extralibs.lua | |
parent | 6ae06b1532def77d3f173bf682d34a85ad5bc687 (diff) |
luaotfload (4jul13)
git-svn-id: svn://tug.org/texlive/trunk@31106 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luaotfload/luaotfload-extralibs.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luaotfload/luaotfload-extralibs.lua | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-extralibs.lua b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-extralibs.lua index 84819f4f2f7..32042292671 100644 --- a/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-extralibs.lua +++ b/Master/texmf-dist/tex/luatex/luaotfload/luaotfload-extralibs.lua @@ -1,5 +1,5 @@ if not modules then modules = { } end modules ["extralibs"] = { - version = 2.201, + version = 2.3, comment = "companion to luaotfload.lua", author = "Hans Hagen, Philipp Gesang", copyright = "PRAGMA ADE / ConTeXt Development Team", @@ -176,9 +176,15 @@ if not chardata then if k == true then return chardata[currentfont()] else - local characters = identifiers[k].characters - t[k] = characters - return characters + local tfmdata = identifiers[k] + if not tfmdata then --- unsafe + tfmdata = font.fonts[k] + end + if tfmdata then + local characters = tfmdata.characters + t[k] = characters + return characters + end end end) fonthashes.characters = chardata |