diff options
author | Philipp Gesang <phg42.2a@gmail.com> | 2013-06-22 07:34:29 -0700 |
---|---|---|
committer | Philipp Gesang <phg42.2a@gmail.com> | 2013-06-22 07:34:29 -0700 |
commit | 1caf2aa7b019b687e9b97e3a7a2d6ab55070f577 (patch) | |
tree | 8e8cc079a4b9b235df95344a30873de969f497fa /luaotfload-extralibs.lua | |
parent | 5aa54f3169985d0457b3517f49da961a51b2f1cc (diff) | |
parent | bd0a8039e89b9403b58ac5a9827a333276a6fbf6 (diff) | |
download | luaotfload-1caf2aa7b019b687e9b97e3a7a2d6ab55070f577.tar.gz |
Merge pull request #99 from phi-gamma/master
fixes
Diffstat (limited to 'luaotfload-extralibs.lua')
-rw-r--r-- | luaotfload-extralibs.lua | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/luaotfload-extralibs.lua b/luaotfload-extralibs.lua index 90dbf09..3204229 100644 --- a/luaotfload-extralibs.lua +++ b/luaotfload-extralibs.lua @@ -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 |