From 89f7bbac9616406b3990b8608c17c542f5fb476d Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Mon, 24 Aug 2020 20:03:53 +0200 Subject: 2020-08-24 19:49:00 --- tex/context/base/mkiv/node-nut.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tex/context/base/mkiv/node-nut.lua') diff --git a/tex/context/base/mkiv/node-nut.lua b/tex/context/base/mkiv/node-nut.lua index 5eed1b2b1..80335e933 100644 --- a/tex/context/base/mkiv/node-nut.lua +++ b/tex/context/base/mkiv/node-nut.lua @@ -296,6 +296,7 @@ nuts.getdepth = direct.getdepth nuts.setdepth = direct.setdepth nuts.getshift = direct.getshift nuts.setshift = direct.setshift +nuts.gettotal = direct.gettotal -- lmtx compatibility @@ -468,6 +469,17 @@ if not nuts.getpre then end +if not nuts.gettotal then + + local d_getheight = direct.getheight + local d_getdepth = direct.getdepth + + function nuts.gettotal(n) + return (d_getheight(n) or 0) + (d_getdepth(n) or 0) + end + +end + -- alias nuts.getsurround = nuts.getkern -- cgit v1.2.3