diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2009-06-10 23:24:34 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2009-06-11 01:10:16 +0300 |
commit | f9a875c39c19e25a6744db40c39935c880a95cc0 (patch) | |
tree | 6b55a6b48750103fde80ee6091e3423112177c1f /otfl-node-res.lua | |
parent | 1ef10e57241a65e8ce2aeefdd83874e8999b7b44 (diff) | |
download | luaotfload-f9a875c39c19e25a6744db40c39935c880a95cc0.tar.gz |
Sync with ConTeXt 2009.06.10 20:06, fixes bug with undefined fonts.register_message function that would crash luatex with certain fonts, pluse more.
Diffstat (limited to 'otfl-node-res.lua')
-rw-r--r-- | otfl-node-res.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/otfl-node-res.lua b/otfl-node-res.lua index c8d815b..b84e5b1 100644 --- a/otfl-node-res.lua +++ b/otfl-node-res.lua @@ -59,6 +59,7 @@ local glue = nodes.register(new_node("glue")) local glue_spec = nodes.register(new_node("glue_spec")) local glyph = nodes.register(new_node("glyph",0)) local textdir = nodes.register(new_node("whatsit",7)) +local rule = nodes.register(new_node("rule")) function nodes.glyph(fnt,chr) local n = copy_node(glyph) @@ -100,6 +101,13 @@ function nodes.textdir(dir) t.dir = dir return t end +function nodes.rule(w,h,d) + local n = copy_node(rule) + if w then n.width = w end + if h then n.height = h end + if d then n.depth = d end + return n +end statistics.register("cleaned up reserved nodes", function() return format("%s nodes, %s lists of %s", nodes.cleanup_reserved(tex.count["lastallocatedbox"])) |