[tex-live] Possible bug in texmf-dist/tex/luatex/luaotfload
Marcus Husar
marcus.husar at rose.uni-heidelberg.de
Thu Aug 19 14:35:27 CEST 2010
Hello,
today I came upon a problem in otfl-node-inj.lua
(texmf-dist/tex/luatex/luaotfload). My version of LuaTeX is
beta-0.60.2-2010071218. I'm using texlive pretest at the moment.
Here is some output:
--- snip ---
(./s_articles.tex (./3579.deaf(load:
/root/.texlive2010/texmf-var/luatex-cache/generic/fonts/otf/temp-fxlb.lua)
LaTeX Font Warning: Font shape `OT1/cmss/bx/' undefined
(Font) using `OT1/cmss/bx/n' instead on input line 5.
(load:
/root/.texlive2010/texmf-var/luatex-cache/generic/fonts/otf/temp-fxlri.lua)
error: ./otfl-node-inj.lua:197: attempt to index local 'tm' (a nil value)
--- snap ---
The last line of the following code snippet of otfl-node-inj.lua is line
197. In my case the local variable tm stays nil. For that reason I get
problems at line 197.
if has_kerns then -- move outside loop
local nf, tm = nil, nil
for n in traverse_id(glyph,head) do
if n.subtype < 256 then
valid[#valid+1] = n
if n.font ~= nf then
nf = n.font
tm = fontdata[nf].marks
end
mk[n] = tm[n.char]
My problems go away if I do a small modification:
197c197,199
< mk[n] = tm[n.char]
---
> if not tm == nil then
> mk[n] = tm[n.char]
> end
Is there a bug in otfl-node-inj.lua or is there a problem on my side?
Regards
Marcus
More information about the tex-live
mailing list