summaryrefslogtreecommitdiff
path: root/tex/context/modules/mkiv/s-math-characters.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/modules/mkiv/s-math-characters.lua')
-rw-r--r--tex/context/modules/mkiv/s-math-characters.lua9
1 files changed, 6 insertions, 3 deletions
diff --git a/tex/context/modules/mkiv/s-math-characters.lua b/tex/context/modules/mkiv/s-math-characters.lua
index 757e843da..1888dabb4 100644
--- a/tex/context/modules/mkiv/s-math-characters.lua
+++ b/tex/context/modules/mkiv/s-math-characters.lua
@@ -16,6 +16,8 @@ local lower = string.lower
local utfchar = utf.char
local round = math.round
+local context = context
+
local fontdata = fonts.hashes.identifiers
local chardata = characters.data
local blocks = characters.blocks
@@ -73,10 +75,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