diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-04-13 18:19:01 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-04-13 18:19:01 +0200 |
commit | ba81502d685bdba367e2a8f0bdff0f8ecc0cf7f6 (patch) | |
tree | 45432fd43c649a402db6589ed1e0fba83dca7a4c /tex/context/base/mkiv/font-dsp.lua | |
parent | 171f7b525a5f7ddfb1631501cbc2d09722de4018 (diff) | |
download | context-ba81502d685bdba367e2a8f0bdff0f8ecc0cf7f6.tar.gz |
2019-04-13 17:09:00
Diffstat (limited to 'tex/context/base/mkiv/font-dsp.lua')
-rw-r--r-- | tex/context/base/mkiv/font-dsp.lua | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/tex/context/base/mkiv/font-dsp.lua b/tex/context/base/mkiv/font-dsp.lua index 3285c689c..0645e7c8a 100644 --- a/tex/context/base/mkiv/font-dsp.lua +++ b/tex/context/base/mkiv/font-dsp.lua @@ -1525,7 +1525,9 @@ function gposhandlers.pair(f,fontdata,lookupid,lookupoffset,offset,glyphs,nofgly classdef1 = readclassdef(f,tableoffset+classdef1,coverage) classdef2 = readclassdef(f,tableoffset+classdef2,nofglyphs) local usedcoverage = { } -local shared = { } -- partial sparse + -- + local shared = { } -- partial sparse + -- for g1, c1 in next, classdef1 do if coverage[g1] then local l1 = classlist[c1] @@ -1537,18 +1539,21 @@ local shared = { } -- partial sparse local first = offsets[1] local second = offsets[2] if first or second then -local s1 = shared[first] -if not s1 then - s1 = { } - shared[first] = s1 -end -local s2 = s1[second] -if not s2 then - s2 = { first, second or nil } - s1[second] = s2 -end -hash[paired] = s2 --- hash[paired] = { first, second or nil } + -- + local s1 = shared[first] + if not s1 then + s1 = { } + shared[first] = s1 + end + local s2 = s1[second] + if not s2 then + s2 = { first, second or nil } + s1[second] = s2 + end + hash[paired] = s2 + -- + -- hash[paired] = { first, second or nil } + -- else -- upto the next lookup for this combination end |