diff options
author | Hans Hagen <pragma@wxs.nl> | 2014-05-12 16:53:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2014-05-12 16:53:00 +0200 |
commit | c9aa90b46d3adfff6a0522c4f9ff2a76d296d08e (patch) | |
tree | 96273adfeaf33f085eef79fc657cc6acbf6a6df0 /tex/context/base/font-otc.lua | |
parent | 04b23cb87054eddbf5ca32635848480f69bae502 (diff) | |
download | context-c9aa90b46d3adfff6a0522c4f9ff2a76d296d08e.tar.gz |
beta 2014.05.12 16:53
Diffstat (limited to 'tex/context/base/font-otc.lua')
-rw-r--r-- | tex/context/base/font-otc.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tex/context/base/font-otc.lua b/tex/context/base/font-otc.lua index 92775270d..f7f8e9ce2 100644 --- a/tex/context/base/font-otc.lua +++ b/tex/context/base/font-otc.lua @@ -134,7 +134,7 @@ local function addfeature(data,feature,specifications) askedfeatures[k] = table.tohash(v) end end - sequences[#sequences+1] = { + local sequence = { chain = 0, features = { [feature] = askedfeatures }, flags = featureflags, @@ -143,6 +143,11 @@ local function addfeature(data,feature,specifications) subtables = st, type = featuretype, } + if specification.prepend then + insert(sequences,1,sequence) + else + insert(sequences,sequence) + end -- register in metadata (merge as there can be a few) if not gsubfeatures then gsubfeatures = { } @@ -208,6 +213,7 @@ local tlig_specification = { data = tlig, order = { "tlig" }, flags = noflags, + prepend = true, } otf.addfeature("tlig",tlig_specification) @@ -231,6 +237,7 @@ local trep_specification = { data = trep, order = { "trep" }, flags = noflags, + prepend = true, } otf.addfeature("trep",trep_specification) |