diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-08-19 13:10:04 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-08-19 13:10:04 +0200 |
commit | 7539371c37c02bc2bc6c5d7ebffa2ffc6fec36c3 (patch) | |
tree | 8a2e1e9bfba18c3ee1897eda50f76f4726bdd108 /tex/context/base/mkiv/node-res.lua | |
parent | 0fcb576f359edfdd50c2b13615a03b966a9073df (diff) | |
download | context-7539371c37c02bc2bc6c5d7ebffa2ffc6fec36c3.tar.gz |
2018-08-19 13:00:00
Diffstat (limited to 'tex/context/base/mkiv/node-res.lua')
-rw-r--r-- | tex/context/base/mkiv/node-res.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/node-res.lua b/tex/context/base/mkiv/node-res.lua index b591cafdf..3eedc2348 100644 --- a/tex/context/base/mkiv/node-res.lua +++ b/tex/context/base/mkiv/node-res.lua @@ -32,6 +32,8 @@ local usercodes = nodes.usercodes local glyph_code = nodecodes.glyph +local currentfont = font.current + local allocate = utilities.storage.allocate local texgetcount = tex.getcount @@ -213,7 +215,7 @@ local vlist = register_nut(new_nut(nodecodes.vlist)) function nutpool.glyph(fnt,chr) local n = copy_nut(glyph) if fnt then - setfont(n,fnt,chr) + setfont(n,fnt == true and currentfont() or fnt,chr) elseif chr then setchar(n,chr) end |