X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=src%2Fltj-jfont.lua;h=aa92cebb151e5e36772c2b7c4deb5746ba14a355;hb=bcdd1199d689c06bf177c0a5b886c21a664558b7;hp=05ee1fdc62339682fe4c078a69022e0bd7c08fee;hpb=26c57c7267d540f3e7d56f63461840c877c10e3d;p=luatex-ja%2Fluatexja.git diff --git a/src/ltj-jfont.lua b/src/ltj-jfont.lua index 05ee1fd..aa92ceb 100644 --- a/src/ltj-jfont.lua +++ b/src/ltj-jfont.lua @@ -654,7 +654,7 @@ do -- vertical metric local vw, tsb, vk = glyph_vmetric(gv) local gi = unitable[gv.name] - if vw and vw~=asc_des then + if gi and vw and vw~=asc_des then -- We do not use tsidebearing, since (1) fontloader does not read VORG table -- and (2) 'tsidebearing' doea not appear in the returned table by fontloader.fields. -- Hence, we assume that vertical origin == ascender @@ -663,7 +663,7 @@ do dest[gi].vwidth = vw/units end -- vertical kern - if vk then + if gi and vk then dest = dest or {}; local dest_vk = dest.vkerns or {}; dest.vkerns = dest_vk for _,v in pairs(vk) do