diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-07 20:43:22 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-07 20:43:22 +0300 |
commit | f5c6757b68b503b1b90c84804575935cd9319a43 (patch) | |
tree | 8e6f3ae805b32f9087da20a232e8b15ea8cbe027 /otfl-font-nms.lua | |
parent | bc5490e6a3f47df0943c6ddbdc41723898c40156 (diff) | |
download | luaotfload-f5c6757b68b503b1b90c84804575935cd9319a43.tar.gz |
Log loaded font file before calling |load_font()|
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r-- | otfl-font-nms.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua index 49c6408..3477051 100644 --- a/otfl-font-nms.lua +++ b/otfl-font-nms.lua @@ -394,9 +394,6 @@ local function load_font(filename, fontnames, newfontnames, texmf) end return end - if trace_loading then - logs.report("loading font: %s", basefile) - end local info = fontloader.info(filename) if info then if type(info) == "table" and #info > 1 then @@ -499,9 +496,12 @@ local function scan_dir(dirname, fontnames, newfontnames, texmf) logs.report("%d fonts found in '%s'", nbfound, dirname) end list = remove_ignore_fonts(list) -- fixme: general solution required - for _,fnt in ipairs(list) do - fnt = path_normalize(fnt) - load_font(fnt, fontnames, newfontnames, texmf) + for _,file in next, list do + file = path_normalize(file) + if trace_loading then + logs.report("loading font: %s", file) + end + load_font(file, fontnames, newfontnames, texmf) end end |