diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2009-11-15 17:10:27 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2009-11-15 17:10:27 +0200 |
commit | 78d506538016cd295d9a84ac62e3e036f23feffc (patch) | |
tree | 4ce6ccaf20af843787f3f15ebc79df3b632d6c11 /otfl-font-otc.lua | |
parent | f3fdfa5bee1dad0307347ba6f14b22f0e19053a6 (diff) | |
download | luaotfload-78d506538016cd295d9a84ac62e3e036f23feffc.tar.gz |
updating to latest (beta 2009.11.13) ConTeXt code
Diffstat (limited to 'otfl-font-otc.lua')
-rw-r--r-- | otfl-font-otc.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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] |