summaryrefslogtreecommitdiff
path: root/luaotfload-fonts.lua
diff options
context:
space:
mode:
Diffstat (limited to 'luaotfload-fonts.lua')
-rw-r--r--luaotfload-fonts.lua15
1 files changed, 7 insertions, 8 deletions
diff --git a/luaotfload-fonts.lua b/luaotfload-fonts.lua
index 6a2fcf2..3c55e0d 100644
--- a/luaotfload-fonts.lua
+++ b/luaotfload-fonts.lua
@@ -14,7 +14,6 @@ luaotfload.fonts.module = {
kpse.set_program_name("luatex")
require("luaextra.lua")
-require("otfl-luat-dum.lua")
local upper, splitpath, expandpath, glob, basename = string.upper, file.split_path, kpse.expand_path, dir.glob, file.basename
@@ -22,16 +21,16 @@ luaotfload.fonts.basename = "otfl-names.lua"
luaotfload.fonts.version = 2.000
luaotfload.fonts.log = false
+local function info(fmt,...)
+ texio.write_nl(string.format("luaotfload | %s", string.format(fmt,...)))
+end
+
local function log(...)
if luaotfload.fonts.log then
- logs.simple(...)
+ info(...)
end
end
-local function info(...)
- logs.simple(...)
-end
-
local function sanitize(str)
return string.gsub(string.lower(str), "[^%a%d]", "")
end
@@ -161,12 +160,12 @@ local function generate()
}
local savepath
scan_txmf_tree(fnames)
- logs.simple("%s fonts saved in the database", #table.keys(fnames.mappings.psnames))
+ info("%s fonts saved in the database", #table.keys(fnames.mappings.psnames))
savepath = kpse.expand_var("$TEXMFVAR") .. "/tex/"
lfs.mkdir(savepath)
savepath = savepath .. luaotfload.fonts.basename
io.savedata(savepath, table.serialize(fnames, true))
- logs.simple("Saved font names database in %s\n", savepath)
+ info("Saved font names database in %s\n", savepath)
end
luaotfload.fonts.scan = scan_dir