summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2012-05-26 16:48:19 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2012-05-26 16:48:19 +0200
commit77f277d8de1ecf1a5f9260fa8eff1bc050687f71 (patch)
tree6822c8fe279e499b66228640a7557bce30080dcb
parent99d49de9cb629d5c1170b0b4ae2ae57acfbfecfb (diff)
downloadluaotfload-77f277d8de1ecf1a5f9260fa8eff1bc050687f71.tar.gz
Patch from Hans to fix pagella math
-rw-r--r--otfl-font-otf.lua15
1 files 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