From f9a875c39c19e25a6744db40c39935c880a95cc0 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Wed, 10 Jun 2009 23:24:34 +0300 Subject: 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. --- otfl-node-res.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'otfl-node-res.lua') 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"])) -- cgit v1.2.3