diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-02-06 23:19:17 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-02-06 23:19:17 +0200 |
commit | e133632df9fc035af0deaad333305815047c8b0a (patch) | |
tree | 5baaa2250cf3037e579127b76ae4cb4a08215d04 /otfl-font-xtx.lua | |
parent | f3d46d2fde7530e5d471dd68c8e66e5351409c2a (diff) | |
download | luaotfload-e133632df9fc035af0deaad333305815047c8b0a.tar.gz |
Some logging
Diffstat (limited to 'otfl-font-xtx.lua')
-rw-r--r-- | otfl-font-xtx.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/otfl-font-xtx.lua b/otfl-font-xtx.lua index d5397da..e7137c5 100644 --- a/otfl-font-xtx.lua +++ b/otfl-font-xtx.lua @@ -74,7 +74,7 @@ local function isstyle(s) elseif v:find("^s=") then list.optsize = v:split("=")[2] elseif v == "aat" or v == "icu" or v == "gr" then - logs.report("define font", "unsupported font option: %s", v) + logs.report("load font", "unsupported font option: %s", v) elseif not v:is_empty() then list.style = v:gsub("[^%a%d]", "") end @@ -143,13 +143,17 @@ local function parse_script(script) if otf.tables.scripts[script] then local dflt if otf.tables.defaults[script] then + logs.report("load font", "auto-selecting default features for script: %s", script) dflt = otf.tables.defaults[script] else + logs.report("load font", "auto-selecting default features for script: dflt (was %s)", script) dflt = otf.tables.defaults["dflt"] end for _,v in next, dflt do list[v] = "yes" end + else + logs.report("load font", "unknown script: %s", script) end end @@ -159,8 +163,7 @@ local function isname () list.lookup = 'name' end local function thename(s) list.name = s end local function issub (v) list.sub = v end local function istrue (s) list[s] = 'yes' end ---KH local function isfalse(s) list[s] = 'no' end -local function isfalse(s) list[s] = nil end -- see mpg/luaotfload#4 +local function isfalse(s) list[s] = nil end -- was no, see mpg/luaotfload#4 --KH local function iskey (k,v) if k == "script" then parse_script(v) |