From 77f277d8de1ecf1a5f9260fa8eff1bc050687f71 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sat, 26 May 2012 16:48:19 +0200 Subject: Patch from Hans to fix pagella math --- otfl-font-otf.lua | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/otfl-font-otf.lua b/otfl-font-otf.lua index 27a64e9..e1339ae 100644 --- a/otfl-font-otf.lua +++ b/otfl-font-otf.lua @@ -49,7 +49,7 @@ local otf = fonts.handlers.otf otf.glists = { "gsub", "gpos" } -otf.version = 2.736 -- beware: also sync font-mis.lua +otf.version = 2.737 -- beware: also sync font-mis.lua otf.cache = containers.define("fonts", "otf", otf.version, true) local fontdata = fonts.hashes.identifiers @@ -1338,12 +1338,15 @@ local function check_variants(unicode,the_variants,splitter,unicodes) local g = glyphs[i] if done[g] then report_otf("skipping cyclic reference U+%05X in math variant U+%05X",g,unicode) - elseif n == 0 then - n = 1 - variants = { g } else - n = n + 1 - variants[n] = g + if n == 0 then + n = 1 + variants = { g } + else + n = n + 1 + variants[n] = g + end + done[g] = true end end if n == 0 then -- cgit v1.2.3