diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2011-10-06 00:23:31 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2011-10-06 00:23:45 +0200 |
commit | c1d7136fd34aa4dfb47cf9d3c82c9f9e0e5474b8 (patch) | |
tree | 94a0b78935a98788f0708394c876c10b3f952874 /otfl-font-otf.lua | |
parent | 0b83bfdfb73b53a9c1f7ac1281de6250ca66dfc2 (diff) | |
download | luaotfload-c1d7136fd34aa4dfb47cf9d3c82c9f9e0e5474b8.tar.gz |
Sync with ContTeXt beta 2011.10.05 23:32
Fixes loading TFM fonts. Now almost all tests pass.
Diffstat (limited to 'otfl-font-otf.lua')
-rw-r--r-- | otfl-font-otf.lua | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/otfl-font-otf.lua b/otfl-font-otf.lua index 319cae6..83b961e 100644 --- a/otfl-font-otf.lua +++ b/otfl-font-otf.lua @@ -114,15 +114,21 @@ local function showfeatureorder(rawdata,filename) if features then for feature, scripts in next, features do local tt = { } - for script, languages in next, scripts do - local ttt = { } - for language, _ in next, languages do - ttt[#ttt+1] = language + if type(scripts) == "table" then + for script, languages in next, scripts do + local ttt = { } + for language, _ in next, languages do + ttt[#ttt+1] = language + end + tt[#tt+1] = format("[%s: %s]",script,concat(ttt," ")) + end + if trace_loading then + report_otf(" %s: %s",feature,concat(tt," ")) + end + else + if trace_loading then + report_otf(" %s: %s",feature,tostring(scripts)) end - tt[#tt+1] = format("[%s: %s]",script,concat(ttt," ")) - end - if trace_loading then - report_otf(" %s: %s",feature,concat(tt," ")) end end end |