summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--luaotfload.dtx2
-rw-r--r--otfl-node-dum.lua2
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]