diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-10-05 20:49:02 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-10-05 20:49:02 +0000 |
commit | 9f0c232e474828b1552ecd430a237b28e8e57e7f (patch) | |
tree | 11223de78961eed1d125e9d1e1eb5bb056e1f43c /Build/source/texk/web2c/luatexdir/lua/lnodelib.c | |
parent | a3a26fc921f8182b70d96386e6d76ce051ed247f (diff) |
web2c/luatexdir: Sync with the upstream trunk.
git-svn-id: svn://tug.org/texlive/trunk@38555 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/lua/lnodelib.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/lua/lnodelib.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/luatexdir/lua/lnodelib.c b/Build/source/texk/web2c/luatexdir/lua/lnodelib.c index bbf3fa56f2b..3e8830f793c 100644 --- a/Build/source/texk/web2c/luatexdir/lua/lnodelib.c +++ b/Build/source/texk/web2c/luatexdir/lua/lnodelib.c @@ -632,6 +632,31 @@ static int lua_nodelib_direct_getfont(lua_State * L) return 1; } + +/* node.direct.getfont */ +/* a new one, waiting some patched from HH +static int lua_nodelib_direct_getfont(lua_State * L) +{ + halfword n, t; + n = (halfword) lua_tonumber(L, 1); + if (n != null) { + t = type(n); + if (t == glyph_node) { + lua_pushnumber(L, font(n)); + } else if ((t == math_char_node) || (t == math_text_char_node)) { + lua_pushnumber(L, fam_fnt(math_fam(n), 0)); + } else { + lua_pushnil(L); + } + } else { + lua_pushnil(L); + } + return 1; +} +*/ + + + /* node.getchar */ static int lua_nodelib_getcharacter(lua_State * L) |