From 54a4ff05122bf940f997ed73810afd47b9d7712f Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sat, 6 Sep 2014 11:14:57 +0200 Subject: [main] add name fields to verbose definer --- src/luaotfload-main.lua | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'src/luaotfload-main.lua') 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 "") + logreport ("both", 0, "main", " > fontname %q", result.fontname or "") + logreport ("both", 0, "main", " > fullname %q", result.fullname or "") + return result end end -- cgit v1.2.3