summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-def.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2019-12-15 18:53:51 +0100
committerContext Git Mirror Bot <phg@phi-gamma.net>2019-12-15 18:53:51 +0100
commit3b6d2d411fdb8fdaef0a4b8045bfdc60a70ce4f0 (patch)
treefaad59ef7e0622a285d35a5484373247cc729bbb /tex/context/base/mkiv/font-def.lua
parent2683d42fe95c59c52a9d7c334292d0a5a15c030a (diff)
downloadcontext-3b6d2d411fdb8fdaef0a4b8045bfdc60a70ce4f0.tar.gz
2019-12-15 17:34:00
Diffstat (limited to 'tex/context/base/mkiv/font-def.lua')
-rw-r--r--tex/context/base/mkiv/font-def.lua10
1 files changed, 3 insertions, 7 deletions
diff --git a/tex/context/base/mkiv/font-def.lua b/tex/context/base/mkiv/font-def.lua
index f3d0f8187..e287bf79c 100644
--- a/tex/context/base/mkiv/font-def.lua
+++ b/tex/context/base/mkiv/font-def.lua
@@ -45,7 +45,6 @@ specifiers.variants = variants
definers.methods = definers.methods or { }
local internalized = allocate() -- internal tex numbers (private)
-local lastdefined = nil -- we don't want this one to end up in s-tra-02
local loadedfonts = constructors.loadedfonts
local designsizes = constructors.designsizes
@@ -455,10 +454,6 @@ not gain much. By the way, passing id's back to in the callback was
introduced later in the development.</p>
--ldx]]--
-function definers.current() -- or maybe current
- return lastdefined
-end
-
function definers.registered(hash)
local id = internalized[hash]
return id, id and fontdata[id]
@@ -511,7 +506,6 @@ function definers.read(specification,size,id) -- id can be optional, name can al
end
end
end
- lastdefined = tfmdata or id -- todo ! ! ! ! !
if not tfmdata then -- or id?
report_defining( "unknown font %a, loading aborted",specification.name)
elseif trace_defining and type(tfmdata) == "table" then
@@ -533,4 +527,6 @@ end
<p>We overload the <l n='tfm'/> reader.</p>
--ldx]]--
-callbacks.register('define_font', definers.read, "definition of fonts (tfmdata preparation)")
+if not context then
+ callbacks.register('define_font', definers.read, "definition of fonts (tfmdata preparation)")
+end