summaryrefslogtreecommitdiff
path: root/tex/context/base/font-log.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/font-log.lua')
-rw-r--r--tex/context/base/font-log.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/font-log.lua b/tex/context/base/font-log.lua
index 97cb4ff7c..2e7c53e43 100644
--- a/tex/context/base/font-log.lua
+++ b/tex/context/base/font-log.lua
@@ -10,6 +10,8 @@ local next, format, lower, concat = next, string.format, string.lower, table.con
local trace_defining = false trackers.register("fonts.defining", function(v) trace_defining = v end)
+local report_define = logs.new("define fonts")
+
fonts.logger = fonts.logger or { }
--[[ldx--
@@ -23,7 +25,7 @@ function fonts.logger.save(tfmtable,source,specification) -- save file name in s
if tfmtable and specification and specification.specification then
local name = lower(specification.name)
if trace_defining and not fonts.used[name] then
- logs.report("define font","registering %s as %s (used: %s)",file.basename(specification.name),source,file.basename(specification.filename))
+ report_define("registering %s as %s (used: %s)",file.basename(specification.name),source,file.basename(specification.filename))
end
specification.source = source
fonts.loaded[lower(specification.specification)] = specification
@@ -51,7 +53,7 @@ end
statistics.register("loaded fonts", function()
if next(fonts.used) then
local t = fonts.logger.report()
- return (#t > 0 and format("%s files: %s",#t,concat(t,separator or " "))) or "none"
+ return (#t > 0 and format("%s files: %s",#t,concat(t," "))) or "none"
else
return nil
end