diff options
author | Elie Roux <elie.roux@telecom-bretagne.eu> | 2010-05-17 22:54:47 +0300 |
---|---|---|
committer | Elie Roux <elie.roux@telecom-bretagne.eu> | 2010-05-17 22:54:47 +0300 |
commit | ae95560cc13d2401d88b5575100f2c815847da39 (patch) | |
tree | 212347eea870fc1a52f1b6d845e33fe5395beadf | |
parent | ffd0ba4063fb2d0bd5ff4b157cc82940ae6cda01 (diff) | |
download | luaotfload-ae95560cc13d2401d88b5575100f2c815847da39.tar.gz |
Printing the name of the loaded database file in the log
-rw-r--r-- | otfl-font-nms.lua | 11 |
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") |