diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-08-02 23:42:35 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-08-02 23:42:35 +0200 |
commit | fe1ea06fcb9c42c23beaf4211ae3b0a2de60895e (patch) | |
tree | b14be0ced75829638c0c3be2ca1eb9d53defd35a /tex/context/base/mkiv/font-otc.lua | |
parent | ee627840c85edc7b073d0582632dcc4da82a1e83 (diff) | |
download | context-fe1ea06fcb9c42c23beaf4211ae3b0a2de60895e.tar.gz |
2017-08-02 23:05:00
Diffstat (limited to 'tex/context/base/mkiv/font-otc.lua')
-rw-r--r-- | tex/context/base/mkiv/font-otc.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/font-otc.lua b/tex/context/base/mkiv/font-otc.lua index 97a7ad72b..0d470c690 100644 --- a/tex/context/base/mkiv/font-otc.lua +++ b/tex/context/base/mkiv/font-otc.lua @@ -21,6 +21,9 @@ local otf = fonts.handlers.otf local registerotffeature = otf.features.register local setmetatableindex = table.setmetatableindex +local mergesteps = fonts.helpers.mergesteps +local checkflags = fonts.helpers.checkflags + local normalized = { substitution = "substitution", single = "substitution", @@ -605,6 +608,8 @@ local function addfeature(data,feature,specifications) local sublookups = specification.lookups local category = nil -- + checkflags(specification,resources) + -- if sublookups then local s = { } for i=1,#sublookups do @@ -642,7 +647,7 @@ local function addfeature(data,feature,specifications) end end -- - setmetatableindex(steps,fonts.helpers.mergesteps) -- speedup + setmetatableindex(steps,mergesteps) -- speedup -- s[i] = { [stepkey] = steps, @@ -704,7 +709,7 @@ local function addfeature(data,feature,specifications) end end -- - setmetatableindex(steps,fonts.helpers.mergesteps) -- speedup + setmetatableindex(steps,mergesteps) -- speedup -- if featureflags[1] then featureflags[1] = "mark" end if featureflags[2] then featureflags[2] = "ligature" end @@ -720,6 +725,8 @@ local function addfeature(data,feature,specifications) nofsteps = nofsteps, type = steptype, } + -- new + checkflags(sequence,resources) -- position | prepend | append local first, last = getrange(sequences,category) inject(specification,sequences,sequence,first,last,category,feature) |