diff options
author | Hans Hagen <pragma@wxs.nl> | 2011-10-08 11:42:00 +0200 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2011-10-08 11:42:00 +0200 |
commit | bd9c410acd522b2308bd5c4a60f7f7670ecfa6c9 (patch) | |
tree | 4be7449448cc537c2923bce3dc57c80a68c80359 /tex/context/base/font-otn.lua | |
parent | 2bbe6bd55acd332378621c2c96a144beee644e95 (diff) | |
download | context-bd9c410acd522b2308bd5c4a60f7f7670ecfa6c9.tar.gz |
beta 2011.10.08 11:42
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 |