summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWill Robertson <wspr81@gmail.com>2010-05-22 15:56:51 +0930
committerWill Robertson <wspr81@gmail.com>2010-05-25 14:24:51 +0930
commit62ba2904db7b92880fd2b118ea12e18de560df04 (patch)
tree939da9e627a5f182851d1dfa93dd50484aa9342c
parentf90dca1286106406ab355cafebe367e9756c3dbb (diff)
downloadluaotfload-62ba2904db7b92880fd2b118ea12e18de560df04.tar.gz
suppress some warnings when default settings
-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