diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-14 16:10:15 +0300 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2010-06-14 16:19:12 +0300 |
commit | 621517c654f76d4ace7720d7a03e3418c057b6e3 (patch) | |
tree | 72ad41f2c785d9e5ebb63e8ecd5c181e1453392c | |
parent | 313233199b453d1f39eabe01a6ae67ebbdfb48db (diff) | |
download | luaotfload-621517c654f76d4ace7720d7a03e3418c057b6e3.tar.gz |
Misc. bug fixes
No features were processed in node mode.
-rw-r--r-- | luaotfload.dtx | 2 | ||||
-rw-r--r-- | otfl-node-dum.lua | 2 |
2 files changed, 3 insertions, 1 deletions
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] |