summaryrefslogtreecommitdiff
path: root/src/luaotfload-main.lua
diff options
context:
space:
mode:
authorPhilipp Gesang <phg42.2a@gmail.com>2014-09-06 11:14:57 +0200
committerPhilipp Gesang <phg42.2a@gmail.com>2014-09-06 11:14:57 +0200
commit54a4ff05122bf940f997ed73810afd47b9d7712f (patch)
treed90c3a5684e1dde6bab25ad3e78dc324c36a0090 /src/luaotfload-main.lua
parentb9a0b8fa5a98acb89bd762e7d026d48148c2bdc3 (diff)
downloadluaotfload-54a4ff05122bf940f997ed73810afd47b9d7712f.tar.gz
[main] add name fields to verbose definer
Diffstat (limited to 'src/luaotfload-main.lua')
-rw-r--r--src/luaotfload-main.lua20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/luaotfload-main.lua b/src/luaotfload-main.lua
index b5cb1d3..93256ee 100644
--- a/src/luaotfload-main.lua
+++ b/src/luaotfload-main.lua
@@ -691,17 +691,23 @@ do
local mk_info = function (name)
local definer = name == "patch" and patch or read
return function (specification, size, id)
- logreport ("both", 0, "main", "active font definer: %q", name)
- logreport ("both", 0, "main", " > defining font no. %d", id)
+ logreport ("both", 0, "main", "defining font no. %d", id)
+ logreport ("both", 0, "main", " > active font definer: %q", name)
logreport ("both", 0, "main", " > spec %q", specification)
logreport ("both", 0, "main", " > at size %.2f pt", size / 2^16)
- local tfmdata = definer (specification, size, id)
- if not tfmdata then
- logreport ("both", 0, "main", "font definition failed")
+ local result = definer (specification, size, id)
+ if not result then
+ logreport ("both", 0, "main", " > font definition failed")
return
+ elseif type (result) == "number" then
+ logreport ("both", 0, "main", " > font definition yielded id %d", result)
+ return result
end
- logreport ("both", 0, "main", "font definition successful")
- return tfmdata
+ logreport ("both", 0, "main", " > font definition successful")
+ logreport ("both", 0, "main", " > name %q", result.name or "<nil>")
+ logreport ("both", 0, "main", " > fontname %q", result.fontname or "<nil>")
+ logreport ("both", 0, "main", " > fullname %q", result.fullname or "<nil>")
+ return result
end
end