From 62ba2904db7b92880fd2b118ea12e18de560df04 Mon Sep 17 00:00:00 2001 From: Will Robertson Date: Sat, 22 May 2010 15:56:51 +0930 Subject: suppress some warnings when default settings --- otfl-font-nms.lua | 14 +++++++++----- 1 file 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 -- cgit v1.2.3