summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/font-otc.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2017-07-17 01:36:30 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2017-07-17 01:36:30 +0200
commitf7bfb1deb04d4ad101dbabf4d635d33cd98aa0a1 (patch)
tree2ac61b4da45fc7f989154cd6a60fb075e6bee587 /tex/context/base/mkiv/font-otc.lua
parentf5566ab29fc08e71f6da12003ae49c48461bb70a (diff)
downloadcontext-f7bfb1deb04d4ad101dbabf4d635d33cd98aa0a1.tar.gz
2017-07-17 00:26:00
Diffstat (limited to 'tex/context/base/mkiv/font-otc.lua')
-rw-r--r--tex/context/base/mkiv/font-otc.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/font-otc.lua b/tex/context/base/mkiv/font-otc.lua
index b7c296809..4a26820f3 100644
--- a/tex/context/base/mkiv/font-otc.lua
+++ b/tex/context/base/mkiv/font-otc.lua
@@ -405,7 +405,7 @@ local function addfeature(data,feature,specifications)
return coverage
end
- local prepare_single = prepare_pair
+ local prepare_single = prepare_pair -- we could have a better test on the spec
local function prepare_chain(list,featuretype,sublookups)
-- todo: coveractions
@@ -604,6 +604,7 @@ local function addfeature(data,feature,specifications)
local steps = { }
local sublookups = specification.lookups
local category = nil
+ --
if sublookups then
local s = { }
for i=1,#sublookups do
@@ -640,6 +641,9 @@ local function addfeature(data,feature,specifications)
steps[nofsteps] = register(coverage,featuretype,format,feature,nofsteps,descriptions,resources)
end
end
+ --
+ setmetatableindex(steps,fonts.helpers.mergesteps) -- speedup
+ --
s[i] = {
[stepkey] = steps,
nofsteps = nofsteps,
@@ -699,6 +703,9 @@ local function addfeature(data,feature,specifications)
askedfeatures[k] = tohash(v)
end
end
+ --
+ setmetatableindex(steps,fonts.helpers.mergesteps) -- speedup
+ --
if featureflags[1] then featureflags[1] = "mark" end
if featureflags[2] then featureflags[2] = "ligature" end
if featureflags[3] then featureflags[3] = "base" end