summaryrefslogtreecommitdiff
path: root/otfl-font-nms.lua
diff options
context:
space:
mode:
authorElie Roux <elie.roux@telecom-bretagne.eu>2010-05-17 22:54:47 +0300
committerElie Roux <elie.roux@telecom-bretagne.eu>2010-05-17 22:54:47 +0300
commitae95560cc13d2401d88b5575100f2c815847da39 (patch)
tree212347eea870fc1a52f1b6d845e33fe5395beadf /otfl-font-nms.lua
parentffd0ba4063fb2d0bd5ff4b157cc82940ae6cda01 (diff)
downloadluaotfload-ae95560cc13d2401d88b5575100f2c815847da39.tar.gz
Printing the name of the loaded database file in the log
Diffstat (limited to 'otfl-font-nms.lua')
-rw-r--r--otfl-font-nms.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/otfl-font-nms.lua b/otfl-font-nms.lua
index 37ee8e3..5c001c5 100644
--- a/otfl-font-nms.lua
+++ b/otfl-font-nms.lua
@@ -50,20 +50,21 @@ function names.load()
local localpath = names.path.localdir .. names.path.basename
local systempath = names.path.systemdir .. names.path.basename
local kpsefound = kpse.find_file(names.path.basename)
+ local foundname
local data
if kpsefound and file.isreadable(kpsefound) then
data = dofile(kpsefound)
+ foundname = kpsefound
elseif file.isreadable(localpath) then
data = dofile(localpath)
+ foundname = localpath
elseif file.isreadable(systempath) then
data = dofile(systempath)
+ foundname = systempath
end
if data then
- if trace_loading then
- logs.report("load font",
- "loaded font names database: %s",
- foundname)
- end
+ logs.report("load font",
+ "loaded font names database: %s", foundname)
else
logs.report("load font",
"no font names database found, generating new one")