summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/meta-fnt.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/meta-fnt.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/meta-fnt.lua24
1 files changed, 13 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/meta-fnt.lua b/Master/texmf-dist/tex/context/base/mkiv/meta-fnt.lua
index 69212d08c79..d061c926a57 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/meta-fnt.lua
+++ b/Master/texmf-dist/tex/context/base/mkiv/meta-fnt.lua
@@ -108,17 +108,19 @@ local function process(mpxformat,name,instances,scalefactor)
for i=1,instances do
characters = { }
descriptions = { }
- metapost.process {
- mpx = mpxformat,
- flusher = flusher,
- askedfig = "all",
- -- incontext = false,
- data = {
+ metapost.process(
+ mpxformat,
+ {
formatters["randomseed := %s ;"](i*10),
formatters["charscale := %s ;"](scalefactor),
data,
},
- }
+ false,
+ flusher,
+ false,
+ false,
+ "all"
+ )
lists[i] = {
characters = characters,
descriptions = descriptions,
@@ -189,9 +191,9 @@ statistics.register("metapost font generation", function()
if total > 0 then
local time = statistics.elapsedtime(flusher)
if total > 0 then
- return format("%i glyphs, %s seconds runtime, %.1f glyphs/second", total, time, total/tonumber(time))
+ return format("%i glyphs, %.3f seconds runtime, %.1f glyphs/second", total, time, total/time)
else
- return format("%i glyphs, %s seconds runtime", total, time)
+ return format("%i glyphs, %.3f seconds runtime", total, time)
end
end
end)
@@ -200,9 +202,9 @@ statistics.register("metapost font loading",function()
if variants > 0 then
local time = statistics.elapsedtime(metapost.fonts)
if variants > 0 then
- return format("%s seconds, %i instances, %.3f instances/second", time, variants, variants/tonumber(time))
+ return format("%.3f seconds, %i instances, %.3f instances/second", time, variants, variants/time)
else
- return format("%s seconds, %i instances", time, variants)
+ return format("%.3f seconds, %i instances", time, variants)
end
end
end)