summaryrefslogtreecommitdiff
path: root/tex/context/base/font-enc.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2011-02-11 13:40:18 +0200
committerMarius <mariausol@gmail.com>2011-02-11 13:40:18 +0200
commitab6d8e11ebd76ab61d2b451d1c8c7be0a7ccf4bc (patch)
tree0df795b7ac40a06a7c6e825a28346c72b4dddd73 /tex/context/base/font-enc.lua
parent50888f059727e2f5857de552691eadce571db57f (diff)
downloadcontext-ab6d8e11ebd76ab61d2b451d1c8c7be0a7ccf4bc.tar.gz
beta 2011.02.11 12:23
Diffstat (limited to 'tex/context/base/font-enc.lua')
-rw-r--r--tex/context/base/font-enc.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/tex/context/base/font-enc.lua b/tex/context/base/font-enc.lua
index a18db6730..ad1c2ec64 100644
--- a/tex/context/base/font-enc.lua
+++ b/tex/context/base/font-enc.lua
@@ -18,6 +18,8 @@ them in tables. But we may do so some day, for consistency.</p>
fonts.enc = fonts.enc or { }
local enc = fonts.enc
+local report_encoding = logs.reporter("fonts","encoding")
+
enc.version = 1.03
enc.cache = containers.define("fonts", "enc", fonts.enc.version, true)
@@ -125,3 +127,19 @@ function enc.make_unicode_vector()
end
return containers.write(enc.cache, 'unicode', { name='unicode', tag='unicode', vector=vector, hash=hash })
end
+
+if not enc.agl then
+
+ -- We delay delay loading this rather big vector that is only needed when a
+ -- font is loaded for caching. Once we're further along the route we can also
+ -- delay it in the generic version (which doesn't use this file).
+
+ enc.agl = { }
+
+ setmetatable(enc.agl, { __index = function(t,k)
+ report_encoding("loading (extended) adobe glyph list")
+ dofile(resolvers.findfile("font-agl.lua"))
+ return rawget(enc.agl,k)
+ end })
+
+end