summaryrefslogtreecommitdiff
path: root/fontdbutil.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2013-04-28 19:08:11 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2013-04-28 19:08:11 +0200
commit189085f9a7212320183d5fed0c4aa31df1602d5f (patch)
tree6a7e7d3c304e7d34ad12ba34ba6d13cd7e5a28a2 /fontdbutil.lua
parent74ebd14b94432c9de82614627454dfa3bfcb9de0 (diff)
downloadluaotfload-189085f9a7212320183d5fed0c4aa31df1602d5f.tar.gz
catch tfm/ofm before db update; remove ``kpse.lookup()`` as criterion for resolved font
Diffstat (limited to 'fontdbutil.lua')
-rwxr-xr-xfontdbutil.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/fontdbutil.lua b/fontdbutil.lua
index af9e23c..470d282 100755
--- a/fontdbutil.lua
+++ b/fontdbutil.lua
@@ -276,14 +276,20 @@ actions.query = function (job)
optsize = 0,
}
- local foundname, _whatever, success =
+ local foundname, subfont, success =
fonts.names.resolve(nil, nil, tmpspec)
if success then
logs.names_report(false, 1,
"resolve", "Font “%s” found!", query)
- logs.names_report(false, 1,
- "resolve", "Resolved file name “%s”", foundname)
+ if subfont then
+ logs.names_report(false, 1, "resolve",
+ "Resolved file name “%s”, subfont nr. “%s”",
+ foundname, subfont)
+ else
+ logs.names_report(false, 1,
+ "resolve", "Resolved file name “%s”", foundname)
+ end
if job.show_info then
show_font_info(foundname)
end