ソースコードの管理場所
Revisão | 4804880c34b6dc49b0807c64c07d9f156058d0bb (tree) |
---|---|
Hora | 2016-01-17 11:09:07 |
Autor | Hironori Kitagawa <h_kitagawa2001@yaho...> |
Commiter | Hironori Kitagawa |
ltj_jfont.lua: append_italic causes an error if its 'base character' does not exist in the current font
@@ -970,8 +970,10 @@ do | ||
970 | 970 | if h then |
971 | 971 | local g = node_new(id_kern) |
972 | 972 | setfield(g, 'subtype', 1); set_attr(g, attr_icflag, ITALIC) |
973 | - setfield(g, 'kern', h.characters[getchar(p)].italic) | |
974 | - node_write(g); ensure_tex_attr(attr_icflag, 0) | |
973 | + if h.characters[getchar(p)] and h.characters[getchar(p)].italic then | |
974 | + setfield(g, 'kern', h.characters[getchar(p)].italic) | |
975 | + node_write(g); ensure_tex_attr(attr_icflag, 0) | |
976 | + end | |
975 | 977 | end |
976 | 978 | end |
977 | 979 | end |