diff options
author | Hans Hagen <pragma@wxs.nl> | 2017-08-04 09:53:17 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2017-08-04 09:53:17 +0200 |
commit | 817e18d3f6969b1b50b4883ec4d5bb05c985db88 (patch) | |
tree | 3569da776df0f8bcf449efd99b11380544d44ec5 /tex/context/base/mkiv/font-otc.lua | |
parent | ab253433729006addd4336870face2facce5f894 (diff) | |
download | context-817e18d3f6969b1b50b4883ec4d5bb05c985db88.tar.gz |
2017-08-04 09:46:00
Diffstat (limited to 'tex/context/base/mkiv/font-otc.lua')
-rw-r--r-- | tex/context/base/mkiv/font-otc.lua | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tex/context/base/mkiv/font-otc.lua b/tex/context/base/mkiv/font-otc.lua index 0d470c690..7014761f1 100644 --- a/tex/context/base/mkiv/font-otc.lua +++ b/tex/context/base/mkiv/font-otc.lua @@ -21,8 +21,9 @@ local otf = fonts.handlers.otf local registerotffeature = otf.features.register local setmetatableindex = table.setmetatableindex -local mergesteps = fonts.helpers.mergesteps +local checkmerge = fonts.helpers.checkmerge local checkflags = fonts.helpers.checkflags +local checksteps = fonts.helpers.checksteps local normalized = { substitution = "substitution", @@ -647,7 +648,8 @@ local function addfeature(data,feature,specifications) end end -- - setmetatableindex(steps,mergesteps) -- speedup + checkmerge(specification) + checksteps(specification) -- s[i] = { [stepkey] = steps, @@ -709,8 +711,6 @@ local function addfeature(data,feature,specifications) end end -- - setmetatableindex(steps,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 @@ -725,8 +725,10 @@ local function addfeature(data,feature,specifications) nofsteps = nofsteps, type = steptype, } - -- new + -- checkflags(sequence,resources) + checkmerge(sequence) + checksteps(sequence) -- position | prepend | append local first, last = getrange(sequences,category) inject(specification,sequences,sequence,first,last,category,feature) |