summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luaotfload-fonts.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/luaotfload-fonts.lua b/luaotfload-fonts.lua
index 8e4b81b..d137d97 100644
--- a/luaotfload-fonts.lua
+++ b/luaotfload-fonts.lua
@@ -50,13 +50,15 @@ luaotfload.fonts.log_level = 1
local lastislog = 0
-local function log(lvl, fmt, ...)
+function luaotfload.fonts.log(lvl, fmt, ...)
if lvl <= luaotfload.fonts.log_level then
lastislog = 1
texio.write_nl(format("luaotfload | %s", format(fmt,...)))
end
end
+local log = luaotfload.fonts.log
+
-- The progress bar
local function progress(current, total)
if luaotfload.fonts.log_level == 1 then
@@ -341,7 +343,3 @@ end
luaotfload.fonts.scan = scan_dir
luaotfload.fonts.generate = generate
-
-if arg[0] == "luaotfload-fonts.lua" then
- generate()
-end