summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--otfl-font-nms.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index 2461145..d8360d3 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -358,7 +358,9 @@ local function font_fullinfo(filename, subfont, texmf)
local t = { }
local f = fontloader.open(filename, subfont)
if not f then
- logs.report("error: failed to open %s", filename)
+ if trace_progress then
+ logs.report("error: failed to open %s", filename)
+ end
return nil
end
local m = fontloader.to_table(f)
@@ -558,10 +560,12 @@ if os.name == "macosx" then
}
function remove_ignore_fonts(fonts)
for N,fnt in ipairs(fonts) do
- if table.contains(ignore_fonts,fnt) then
- logs.report("ignoring font '%s'", fnt)
- table.remove(fonts,N)
- end
+ if table.contains(ignore_fonts,fnt) then
+ if trace_progress then
+ logs.report("ignoring font '%s'", fnt)
+ end
+ table.remove(fonts,N)
+ end
end
return fonts
end