diff options
author | Marius <mariausol@gmail.com> | 2011-10-08 13:00:15 +0300 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2011-10-08 13:00:15 +0300 |
commit | d67c88b277ff5d781397fb99ef9470f51b8eeced (patch) | |
tree | 0591fb2ba80eecacf76d57ea3d13e1e37ad6f5ef /tex/context/base/font-otn.lua | |
parent | a85039d1355c0a8957ba591f6a0ef204f127e459 (diff) | |
download | context-d67c88b277ff5d781397fb99ef9470f51b8eeced.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 |