From 78d506538016cd295d9a84ac62e3e036f23feffc Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sun, 15 Nov 2009 17:10:27 +0200 Subject: updating to latest (beta 2009.11.13) ConTeXt code --- otfl-font-otc.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'otfl-font-otc.lua') diff --git a/otfl-font-otc.lua b/otfl-font-otc.lua index f75da39..1fc1f22 100644 --- a/otfl-font-otc.lua +++ b/otfl-font-otc.lua @@ -219,7 +219,9 @@ function otf.name_to_slot(name) -- todo: afm en tfm if tfmdata and tfmdata.shared then local otfdata = tfmdata.shared.otfdata local unicode = otfdata.luatex.unicodes[name] - if type(unicode) == "number" then + if not unicode then + return string.byte("?") -- nil + elseif type(unicode) == "number" then return unicode else return unicode[1] -- cgit v1.2.3