From: Hironori Kitagawa Date: Wed, 28 Sep 2016 19:40:42 +0000 (+0900) Subject: ltj-jfont: more check X-Git-Tag: 20161017.0~9 X-Git-Url: http://git.osdn.jp/view?a=commitdiff_plain;h=635c05ef9408ad9e0cfd2b738f89a37209b5a339;p=luatex-ja%2Fluatexja.git ltj-jfont: more check --- diff --git a/src/ltj-jfont.lua b/src/ltj-jfont.lua index 1c77e82..84a6ead 100644 --- a/src/ltj-jfont.lua +++ b/src/ltj-jfont.lua @@ -953,9 +953,9 @@ luatexbase.add_to_callback( local subtables = {} if ft.specification then for feat_name,v in pairs(ft.specification.features.normal) do - if v==true then + if v==true and ft.resources then for _,i in pairs(ft.resources.sequences) do - if i.order[1]== feat_name and i.type == 'gpos_single' then + if i.order[1]== feat_name and i.type == 'gpos_single' and type(i.subtables)=='table' then for _,st in pairs(i.subtables) do subtables[st] = true end