From 391b705af1c22eaa6027d18a146e8d3fafc8832f Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Tue, 1 Aug 2017 21:33:13 +0200 Subject: 2017-08-01 18:16:00 --- tex/context/modules/mkiv/m-chart.lua | 2 ++ tex/context/modules/mkiv/s-math-characters.lua | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'tex/context/modules') diff --git a/tex/context/modules/mkiv/m-chart.lua b/tex/context/modules/mkiv/m-chart.lua index 5a9311387..565a5e36d 100644 --- a/tex/context/modules/mkiv/m-chart.lua +++ b/tex/context/modules/mkiv/m-chart.lua @@ -16,6 +16,8 @@ local type, tonumber, rawget, next = type, tonumber, rawget, next local gsub, find, lower = string.gsub, string.find, string.lower local P, S, C, Cc, lpegmatch = lpeg.P, lpeg.S, lpeg.C, lpeg.Cc, lpeg.match +local context = context + local formatters = string.formatters local setmetatableindex = table.setmetatableindex diff --git a/tex/context/modules/mkiv/s-math-characters.lua b/tex/context/modules/mkiv/s-math-characters.lua index 757e843da..efecbeeb5 100644 --- a/tex/context/modules/mkiv/s-math-characters.lua +++ b/tex/context/modules/mkiv/s-math-characters.lua @@ -73,10 +73,11 @@ function moduledata.math.characters.showlist(specification) sorted = table.sortedkeys(characters) end if virtual then - for k, v in ipairs(tfmdata.fonts) do - local id = v.id + local fonts = tfmdata.fonts + for i=1,#fonts do + local id = fonts[i].id local name = fontdata[id].properties.name - names[k] = (name and file.basename(name)) or id + names[i] = (name and file.basename(name)) or id end end if check then -- cgit v1.2.3