summaryrefslogtreecommitdiff
path: root/tex/context/base/font-def.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2013-04-20 01:08:00 +0200
committerHans Hagen <pragma@wxs.nl>2013-04-20 01:08:00 +0200
commit4b10f77df0327809209b3d318e8386666aabb1f5 (patch)
treef736839dc4db40f6cbfdb5a33ae99fb36fa2f78d /tex/context/base/font-def.lua
parent7b107268d43038815d72037d28dbb3a3e4331d64 (diff)
downloadcontext-4b10f77df0327809209b3d318e8386666aabb1f5.tar.gz
beta 2013.04.20 01:08
Diffstat (limited to 'tex/context/base/font-def.lua')
-rw-r--r--tex/context/base/font-def.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/tex/context/base/font-def.lua b/tex/context/base/font-def.lua
index da31beac9..cb056ff1b 100644
--- a/tex/context/base/font-def.lua
+++ b/tex/context/base/font-def.lua
@@ -43,6 +43,7 @@ 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
@@ -344,6 +345,7 @@ function constructors.readanddefine(name,size) -- no id -- maybe a dummy first
if not id then
local tfmdata = definers.loadfont(specification)
if tfmdata then
+ tfmdata.properties.hash = hash
constructors.checkvirtualids(tfmdata) -- experiment, will become obsolete when slots can selfreference
id = font.define(tfmdata)
definers.register(tfmdata,id)
@@ -366,9 +368,6 @@ not gain much. By the way, passing id's back to in the callback was
introduced later in the development.</p>
--ldx]]--
-local lastdefined = nil -- we don't want this one to end up in s-tra-02
-local internalized = { }
-
function definers.current() -- or maybe current
return lastdefined
end