summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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")