diff options
Diffstat (limited to 'tex/context/base/font-otn.lua')
-rw-r--r-- | tex/context/base/font-otn.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tex/context/base/font-otn.lua b/tex/context/base/font-otn.lua index fb2618ff1..914a7dee9 100644 --- a/tex/context/base/font-otn.lua +++ b/tex/context/base/font-otn.lua @@ -2001,6 +2001,11 @@ local function featuresprocessor(head,font,attr) local dirstack = { } -- could move outside function + -- We could work on sub start-stop ranges instead but I wonder if there is that + -- much speed gain (experiments showed that it made not much sense) and we need + -- to keep track of directions anyway. Also at some point I want to play with + -- font interactions and then we do need the full sweeps. + for s=1,#sequences do local dataset = datasets[s] if dataset then @@ -2094,7 +2099,7 @@ local function featuresprocessor(head,font,attr) else start = start.next end - elseif id == whatsit_code then + elseif id == whatsit_code then -- will be function local subtype = start.subtype if subtype == dir_code then local dir = start.dir @@ -2140,7 +2145,7 @@ local function featuresprocessor(head,font,attr) local id = start.id if id == glyph_code then if start.subtype<256 and start.font == font then - local a has_attribute(start,0) + local a = has_attribute(start,0) if a then a = (a == attr) and (not attribute or has_attribute(start,state,attribute)) else |