[tex-live] Possible bug in texmf-dist/tex/luatex/luaotfload
Khaled Hosny
khaledhosny at eglug.org
Thu Aug 19 17:24:15 CEST 2010
On Thu, Aug 19, 2010 at 02:35:27PM +0200, Marcus Husar wrote:
> 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?
Without a test file I can hardly tell what is going on.
Regards,
Khaled
--
Khaled Hosny
Arabic localiser and member of Arabeyes.org team
Free font developer
More information about the tex-live
mailing list