From 83b27d3d2faa30ef518f1b5e0a4a87a74107a93c Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Tue, 20 Sep 2016 08:04:58 +0200 Subject: [fontloader] HACK hot-patch loader to fix crash Patch has been upstreamed for a while but no response yet. --- src/fontloader/misc/fontloader-font-ots.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/fontloader/misc/fontloader-font-ots.lua b/src/fontloader/misc/fontloader-font-ots.lua index da5d50a..1c64720 100644 --- a/src/fontloader/misc/fontloader-font-ots.lua +++ b/src/fontloader/misc/fontloader-font-ots.lua @@ -2752,10 +2752,12 @@ function otf.dataset(tfmdata,font) -- generic variant, overloaded in context } rs[language] = rl local sequences = tfmdata.resources.sequences - for s=1,#sequences do - local v = enabled and initialize(sequences[s],script,language,enabled,autoscript,autolanguage) - if v then - rl[#rl+1] = v + if sequences then + for s=1,#sequences do + local v = enabled and initialize(sequences[s],script,language,enabled,autoscript,autolanguage) + if v then + rl[#rl+1] = v + end end end end -- cgit v1.2.3