I've looked at How do I get a list of all available fonts for luaotfload?, but the answers don't work for me in TeX Live 2013, at least not without LaTeX. This is because there they rely on the file otfl-names.lua under \luatex-cache\generic\names; but in my installations of TeX Live 2013 (ConTeXt scheme), the only directory under \luatex-cache is context, and there is no otfl-names.lua that I can find.
P.S. Following this comment, I also looked for luaotfload-names.lua, but can't find that file either. Do I need to run a program to build it? I looked for mkluatexfontdb but no such command seems to exist.
I tried the following ConTeXt mkiv (LuaTeX) document:
\starttext
\startluacode
myfonts=dofile(fonts.names.path.path)
for i,v in ipairs(myfonts.mappings) do
tex.print(-2, v.familyname)
tex.print(', ')
tex.print(-2, v.fontname)
tex.print('\\par')
end
\stopluacode
\stoptext
But I get the error:
! LuaTeX error [string "\directlua "]:2: attempt to index field 'path' (a nil value)
Any suggestions would be appreciated.
luaotfload-tool --list='*'orluaotfload-tool --list=\*. – Mankka Feb 14 '24 at 07:55