summaryrefslogtreecommitdiff
path: root/otfl-font-otn.lua
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2011-10-07 02:27:05 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2011-10-07 02:27:05 +0200
commit1e3820ff158bb9d23e9d75116fecd28a64656d2c (patch)
tree4b649cd38ffe8774dc1835aca5af0a2f023908d6 /otfl-font-otn.lua
parent116531893e5556d196dd0b4ca83eea6e31fbe644 (diff)
downloadluaotfload-1e3820ff158bb9d23e9d75116fecd28a64656d2c.tar.gz
Sync with ConTeXt beta 2011.10.07 00:40
Diffstat (limited to 'otfl-font-otn.lua')
-rw-r--r--otfl-font-otn.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/otfl-font-otn.lua b/otfl-font-otn.lua
index a972d50..ebdeb75 100644
--- a/otfl-font-otn.lua
+++ b/otfl-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