summaryrefslogtreecommitdiff
path: root/tex/context/base/font-otn.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2015-05-22 20:15:05 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2015-05-22 20:15:05 +0200
commit84c9614c8d2e0a3beaa9fdf42530087f3df4b807 (patch)
tree0af5c8744892cda558d5420fbf8473985b7355d7 /tex/context/base/font-otn.lua
parentc77671a43d94378e828762b50b94b2adebcafe32 (diff)
downloadcontext-84c9614c8d2e0a3beaa9fdf42530087f3df4b807.tar.gz
2015-05-22 19:27:00
Diffstat (limited to 'tex/context/base/font-otn.lua')
-rw-r--r--tex/context/base/font-otn.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/tex/context/base/font-otn.lua b/tex/context/base/font-otn.lua
index b1bd45304..b265dbbeb 100644
--- a/tex/context/base/font-otn.lua
+++ b/tex/context/base/font-otn.lua
@@ -3422,6 +3422,10 @@ local function prepare_lookups(tfmdata)
-- much memory as it's only a reference to a table and the slot in the
-- description hash is not freed anyway
+ -- we can delay this using metatables so that we don't make the hashes for
+ -- features we don't use but then we need to loop over the characters
+ -- many times so we gain nothing
+
for unicode, character in next, characters do -- we cannot loop over descriptions !
local description = descriptions[unicode]