summaryrefslogtreecommitdiff
path: root/src/fontloader/misc
diff options
context:
space:
mode:
authorPhilipp Gesang <phg@phi-gamma.net>2016-04-17 15:22:08 +0200
committerPhilipp Gesang <phg@phi-gamma.net>2016-04-17 15:22:12 +0200
commit43f70e0cb460dc46391664191f56e07b281e5698 (patch)
treeb5ca2119f8e6097e2124f51946574582017c3e7d /src/fontloader/misc
parentc452fefcdf8316b946ed64c9849342cc012b7394 (diff)
downloadluaotfload-43f70e0cb460dc46391664191f56e07b281e5698.tar.gz
[fontloader] quick fix by Hans for issue #326
Addresses #326 This is a hot-fix with non-official code. The actual fix will come downstream later from Context as usual.
Diffstat (limited to 'src/fontloader/misc')
-rw-r--r--src/fontloader/misc/fontloader-font-ots.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/fontloader/misc/fontloader-font-ots.lua b/src/fontloader/misc/fontloader-font-ots.lua
index c3e1f48..0a438d5 100644
--- a/src/fontloader/misc/fontloader-font-ots.lua
+++ b/src/fontloader/misc/fontloader-font-ots.lua
@@ -756,8 +756,14 @@ function handlers.gsub_ligature(head,start,dataset,sequence,ligature)
-- kind of weird
break
elseif id == disc_code then
- lastdisc = current
- current = getnext(current)
+ if getfield(current,"replace") then
+ -- this only happens when we didn't normalize ... in a future version we will
+ -- assume normalization of disc nodes
+ break
+ else
+ lastdisc=current
+ current=getnext(current)
+ end
else
break
end