From 43f70e0cb460dc46391664191f56e07b281e5698 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 17 Apr 2016 15:22:08 +0200 Subject: [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. --- src/fontloader/misc/fontloader-font-ots.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/fontloader/misc') 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 -- cgit v1.2.3