summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/node-res.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2018-08-19 13:10:04 +0200
committerContext Git Mirror Bot <phg@phi-gamma.net>2018-08-19 13:10:04 +0200
commit7539371c37c02bc2bc6c5d7ebffa2ffc6fec36c3 (patch)
tree8a2e1e9bfba18c3ee1897eda50f76f4726bdd108 /tex/context/base/mkiv/node-res.lua
parent0fcb576f359edfdd50c2b13615a03b966a9073df (diff)
downloadcontext-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.lua4
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