[luatex] fontloader

Ulrike Fischer luatex at nililand.de
Wed Oct 29 11:00:01 CET 2014


Am Tue, 28 Oct 2014 20:21:55 +0100 schrieb Herbert Voss:

> Why do I get the error:
> 
> linlibertine-r.luc)(load luc: 
> /usr/local/texlive/2014/texmf-var/luatex-cache/gen
> eric/fonts/otf/linbiolinum-r.luc)error: 
> ...xmf-dist/tex/luatex/luaotfload/luaotfload-fontloader.lua:9291: 
> attempt to perform arithmetic on local 'factor' (a nil value)
> .
> l.19 19: cmex10\par
> 
> ----------------------------------------
> 
> Herbert
> 
> 
> \input luaotfload.sty
> \font\test={Linux Libertine O}
> \font\sf={Linux Biolinum O}
> \test foo
> \sf foo
> 
> \directlua{
> for i,v in font.each() do
>    if v.fontname then
>      tex.print(i .. ": " .. tostring(v.fontname) .. "\string\\par")
>    else
>      tex.print(i .. ": " .. tostring(v.name) .. "\string\\par")
>    end
> end
> }
> \bye


>From this
http://tex.stackexchange.com/questions/126903/print-font-name-using-luatex 
and a remark in the luaotfload documentation I understand that
font.each is not safe. This here seems to work

for i,v in pairs(fonts.hashes.identifiers)

But it does show only the opentype fonts. I don't know which table
you can safely query to find out something about normal tfm-fonts. 

-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/



More information about the luatex mailing list