[luatex] Problems using node.setglue (r6317)

Deepak Jois deepak.jois at gmail.com
Thu Apr 20 10:57:35 CEST 2017


I just compiled the latest LuaTeX at r6317 and some code that worked
earlier doesn’t anymore.

This fails with error message  (font_params is defined earlier): "glue
(spec) expected"

     n = node.new("glue", 13)
     node.setglue(n, font_params.space, font_params.space_stretch,
font_params.space_shrink)

but changing to this works:

      n = node.new("glue", 13)
      n.width = font_params.space
      n.stretch = font_params.space_stretch
      n.shrink = font_params.space_shrink

I am using the node.setglue function as instructed the manual. Am I doing
something wrong?

Deepak
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20170420/030a0fc9/attachment.html>


More information about the luatex mailing list