summaryrefslogtreecommitdiff
path: root/tex/context/base/font-otn.lua
diff options
context:
space:
mode:
authorHans Hagen <pragma@wxs.nl>2011-10-07 00:40:00 +0200
committerHans Hagen <pragma@wxs.nl>2011-10-07 00:40:00 +0200
commita4ef31e11f4182991b1f7199dd12371817453e41 (patch)
tree8796dc10c47310def4524b2087e737199e24b77d /tex/context/base/font-otn.lua
parent19b106225668503fab35675eb9e16780c3077fa3 (diff)
downloadcontext-a4ef31e11f4182991b1f7199dd12371817453e41.tar.gz
beta 2011.10.07 00:40
Diffstat (limited to 'tex/context/base/font-otn.lua')
-rw-r--r--tex/context/base/font-otn.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tex/context/base/font-otn.lua b/tex/context/base/font-otn.lua
index a972d50e7..ebdeb75a6 100644
--- a/tex/context/base/font-otn.lua
+++ b/tex/context/base/font-otn.lua
@@ -1984,11 +1984,11 @@ local function featuresprocessor(head,font,attr)
local datasets = otf.dataset(tfmdata,sequences,font,attr)
for s=1,#sequences do
- local pardir, txtdir, success = 0, { }, false -- we could reuse txtdir and use a top pointer
- local sequence = sequences[s]
- local dataset = datasets[s] -- cache
+ local dataset = datasets[s] -- cache -- s?
featurevalue = dataset and dataset[1] -- todo: pass to function instead of using a global
if featurevalue then
+ local sequence = sequences[s]
+ local pardir, txtdir, success = 0, { }, false -- we could reuse txtdir and use a top pointer
local attribute, chain, typ, subtables = dataset[2], dataset[3], sequence.type, sequence.subtables
if chain < 0 then
-- this is a limited case, no special treatments like 'init' etc