summaryrefslogtreecommitdiff
path: root/luaotfload-override.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-05-11 13:08:35 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-05-11 13:08:35 +0200
commit68d799364579c9552874293f034a22c0efef98a9 (patch)
treed49a63dc2a31e1da1fa73894414a982cd63cca83 /luaotfload-override.lua
parent8cc3ffd76e9b920f8adb9673fe88196ef7e4f8fb (diff)
downloadluaotfload-68d799364579c9552874293f034a22c0efef98a9.tar.gz
add controls for font cache to ``luaotfload-tool.lua``
Diffstat (limited to 'luaotfload-override.lua')
-rw-r--r--luaotfload-override.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/luaotfload-override.lua b/luaotfload-override.lua
index f143009..99a6611 100644
--- a/luaotfload-override.lua
+++ b/luaotfload-override.lua
@@ -30,14 +30,25 @@ We recreate the verbosity levels previously implemented in font-nms:
local loglevel = 1 --- default
local logout = "log"
+--- int -> bool
local set_loglevel = function (n)
if type(n) == "number" then
loglevel = n
end
+ return true
end
+logs.setloglevel = set_loglevel
logs.set_loglevel = set_loglevel
logs.set_log_level = set_loglevel --- accomodating lazy typists
+--- unit -> int
+local get_loglevel = function ( )
+ return loglevel
+end
+logs.getloglevel = get_loglevel
+logs.get_loglevel = get_loglevel
+logs.get_log_level = get_loglevel
+
local set_logout = function (s)
if s == "stdout" then
logout = "term"