From 621517c654f76d4ace7720d7a03e3418c057b6e3 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Mon, 14 Jun 2010 16:10:15 +0300 Subject: Misc. bug fixes No features were processed in node mode. --- luaotfload.dtx | 2 +- otfl-node-dum.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/luaotfload.dtx b/luaotfload.dtx index fb4bce1..0b1b5ab 100644 --- a/luaotfload.dtx +++ b/luaotfload.dtx @@ -501,6 +501,7 @@ tex.attribute[0] = 0 % % \begin{macrocode} +luaotfload.loadmodule('font-ini.lua') luaotfload.loadmodule('node-dum.lua') luaotfload.loadmodule('node-inj.lua') @@ -529,7 +530,6 @@ end % % \begin{macrocode} -luaotfload.loadmodule('font-ini.lua') luaotfload.loadmodule('font-tfm.lua') luaotfload.loadmodule('font-cid.lua') luaotfload.loadmodule('font-ott.lua') diff --git a/otfl-node-dum.lua b/otfl-node-dum.lua index fbc8264..9483e51 100644 --- a/otfl-node-dum.lua +++ b/otfl-node-dum.lua @@ -13,6 +13,7 @@ attributes = attributes or { } local traverse_id = node.traverse_id local free_node = node.free local remove_node = node.remove +local new_node = node.new local glyph = node.id('glyph') @@ -48,6 +49,7 @@ nodes.unprotect_glyphs = node.unprotect_glyphs function nodes.process_characters(head) local usedfonts, done, prevfont = { }, false, nil for n in traverse_id(glyph,head) do + local font = n.font if font ~= prevfont then prevfont = font local used = usedfonts[font] -- cgit v1.2.3