summaryrefslogtreecommitdiff
path: root/tex/context/base/node-fnt.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-10-08 11:42:00 +0200
committerHans Hagen <pragma@wxs.nl>2011-10-08 11:42:00 +0200
commitbd9c410acd522b2308bd5c4a60f7f7670ecfa6c9 (patch)
tree4be7449448cc537c2923bce3dc57c80a68c80359 /tex/context/base/node-fnt.lua
parent2bbe6bd55acd332378621c2c96a144beee644e95 (diff)
downloadcontext-bd9c410acd522b2308bd5c4a60f7f7670ecfa6c9.tar.gz
beta 2011.10.08 11:42
Diffstat (limited to 'tex/context/base/node-fnt.lua')
-rw-r--r--tex/context/base/node-fnt.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/tex/context/base/node-fnt.lua b/tex/context/base/node-fnt.lua
index 036ff8fa1..66cd9916f 100644
--- a/tex/context/base/node-fnt.lua
+++ b/tex/context/base/node-fnt.lua
@@ -96,7 +96,9 @@ function handlers.characters(head)
end
end
for n in traverse_id(glyph_code,head) do
- local font, attr = n.font, has_attribute(n,0) or 0 -- zero attribute is reserved for fonts in context
+-- if n.subtype<256 then
+ local font = n.font
+ local attr = has_attribute(n,0) or 0 -- zero attribute is reserved for fonts in context
if font ~= prevfont or attr ~= prevattr then
if attr > 0 then
local used = attrfonts[font]
@@ -111,6 +113,8 @@ function handlers.characters(head)
if d then
used[attr] = d
a = a + 1
+ else
+ -- can't happen ... otherwise best use nil/false distinction
end
end
end
@@ -121,12 +125,15 @@ function handlers.characters(head)
if fp then
usedfonts[font] = fp
u = u + 1
+ else
+ -- can't happen ... otherwise best use nil/false distinction
end
end
end
prevfont = font
prevattr = attr
end
+-- end
end
if trace_fontrun then
report_fonts()