From b94df6f9a869eb0bf705229246f19ec1fc2c43b1 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 10 Aug 2014 14:42:16 +0200 Subject: [fontloader] patch glyph reorganization to avoid error This is a preliminary fix for https://github.com/lualatex/luaotfload/issues/248 It adds additional null checks, thereby suppressing the symptoms. However, the real solution would probably have to tackle the actual cause of the holes in the ``specification`` table in the first place. --- src/luaotfload-fontloader.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/luaotfload-fontloader.lua b/src/luaotfload-fontloader.lua index 660524e..12b68a5 100644 --- a/src/luaotfload-fontloader.lua +++ b/src/luaotfload-fontloader.lua @@ -8310,7 +8310,7 @@ actions["reorganize glyph anchors"]=function(data,filename,raw) for tag,specification in next,data do for i=1,#specification do local si=specification[i] - specification[i]={ si.x or 0,si.y or 0 } + specification[i]={ si and si.x or 0,si and si.y or 0 } end end else -- cgit v1.2.3