From f5c6757b68b503b1b90c84804575935cd9319a43 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 7 Jun 2010 20:43:22 +0300 Subject: Log loaded font file before calling |load_font()| --- otfl-font-nms.lua | 12 ++++++------ 1 file 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 -- cgit v1.2.3