diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-10-08 11:42:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-10-08 11:42:00 +0200 |
commit | bd9c410acd522b2308bd5c4a60f7f7670ecfa6c9 (patch) | |
tree | 4be7449448cc537c2923bce3dc57c80a68c80359 /tex/context/base/node-fnt.lua | |
parent | 2bbe6bd55acd332378621c2c96a144beee644e95 (diff) | |
download | context-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.lua | 9 |
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() |