diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-08-24 20:03:53 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-08-24 20:03:53 +0200 |
commit | 89f7bbac9616406b3990b8608c17c542f5fb476d (patch) | |
tree | 9e487938454fd224025391d975ae85dff85a10f8 /tex/context/base/mkiv/node-nut.lua | |
parent | 4ba731dd6ff370a42984b4df050906fd9a884bc8 (diff) | |
download | context-89f7bbac9616406b3990b8608c17c542f5fb476d.tar.gz |
2020-08-24 19:49:00
Diffstat (limited to 'tex/context/base/mkiv/node-nut.lua')
-rw-r--r-- | tex/context/base/mkiv/node-nut.lua | 12 |
1 files changed, 12 insertions, 0 deletions
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 |