diff options
Diffstat (limited to 'otfl-node-dum.lua')
-rw-r--r-- | otfl-node-dum.lua | 2 |
1 files changed, 2 insertions, 0 deletions
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] |