summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/font-hsh.lua
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2020-03-16 21:11:40 +0000
committerKarl Berry <karl@freefriends.org>2020-03-16 21:11:40 +0000
commit2492300860bc8d58013520b5f27518e886d19216 (patch)
tree77e721f9063fa9306199d9cb24b20fe1febd0887 /Master/texmf-dist/tex/context/base/mkiv/font-hsh.lua
parent5f4bef024b26c01d41b3700e8e320b8a1145b5a9 (diff)
context (16mar20)
git-svn-id: svn://tug.org/texlive/trunk@54364 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/font-hsh.lua')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/font-hsh.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/font-hsh.lua b/Master/texmf-dist/tex/context/base/mkiv/font-hsh.lua
index 8d1e85145fb..7e90e15024e 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/font-hsh.lua
+++ b/Master/texmf-dist/tex/context/base/mkiv/font-hsh.lua
@@ -9,7 +9,7 @@ if not modules then modules = { } end modules ['font-hsh'] = {
local rawget = rawget
local setmetatableindex = table.setmetatableindex
-local currentfont = font.current
+local currentfont = font and font.current -- used in the web service
local allocate = utilities.storage.allocate
local fonts = fonts
@@ -103,7 +103,7 @@ setmetatableindex(identifiers, function(t,k)
return k == true and identifiers[currentfont()] or nulldata
end)
-do
+if font then
-- to be used
@@ -370,8 +370,12 @@ setmetatableindex(variants, function(t,k)
end
end)
-function font.getfont(id)
- return identifiers[id]
+if font then
+
+ function font.getfont(id)
+ return identifiers[id]
+ end
+
end
-- font.setfont = currentfont -- bah, no native 'setfont' as name