From ee4c3dd630ae4228b5e222f7099055e327785f97 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 16 May 2013 20:32:10 +0200 Subject: fix behavior of ``aux.slot_of_name()`` for missing glyphs spotted by Robert --- luaotfload-auxiliary.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/luaotfload-auxiliary.lua b/luaotfload-auxiliary.lua index f0d5a04..64fac90 100644 --- a/luaotfload-auxiliary.lua +++ b/luaotfload-auxiliary.lua @@ -276,10 +276,14 @@ local slot_of_name = function (font_id, glyphname, unsafe) local fontdata = identifiers[font_id] if fontdata then local unicode = fontdata.resources.unicodes[glyphname] - if unicode and type(unicode) == "number" then - return unicode - else - return unicode[1] --- for multiple components + if unicode then + if type(unicode) == "number" then + return unicode + else + return unicode[1] --- for multiple components + end +-- else +-- --- missing end elseif unsafe == true then -- for Robert return raw_slot_of_name(font_id, glyphname) -- cgit v1.2.3