summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/node-met.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2016-06-13 18:16:16 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2016-06-13 18:16:16 +0200
commit9db0c39e07509226287ef0075dfda8d2386416ed (patch)
tree6daf69803dd8c7cc1eadfeebe65653de6c4a23c1 /tex/context/base/mkiv/node-met.lua
parent5baf21b979124606cb6503be4e16d403f233ecd4 (diff)
downloadcontext-9db0c39e07509226287ef0075dfda8d2386416ed.tar.gz
2016-06-13 17:04:00
Diffstat (limited to 'tex/context/base/mkiv/node-met.lua')
-rw-r--r--tex/context/base/mkiv/node-met.lua16
1 files changed, 13 insertions, 3 deletions
diff --git a/tex/context/base/mkiv/node-met.lua b/tex/context/base/mkiv/node-met.lua
index c6a246b96..885bbf45a 100644
--- a/tex/context/base/mkiv/node-met.lua
+++ b/tex/context/base/mkiv/node-met.lua
@@ -115,11 +115,21 @@ nodes.kerning = node.kerning
nodes.ligaturing = node.ligaturing
nodes.mlist_to_hlist = node.mlist_to_hlist
-nodes.effective_glue = node.effective_glue
+if LUATEXVERSION < 0.97 then
-nodes.is_zero_glue = node.is_zero_glue
-nodes.getglue = node.getglue
+ local getglue = node.getglue
+
+ function node.is_zero_glue(n)
+ local width, stretch, shrink = getglue(n)
+ return width == 0 and stretch == 0 and shrink == 0
+ end
+
+end
+
+nodes.effective_glue = node.effective_glue
nodes.getglue = node.getglue
+nodes.setglue = node.setglue
+nodes.is_zero_glue = node.is_zero_glue
-- if not gonuts or not node.getfield then
-- node.getfield = metatable.__index