ソースコードの管理場所
修订版 | 0b083d7c6dd910c09b403c21f2ae4cbfe0b3c262 (tree) |
---|---|
时间 | 2016-05-04 10:45:42 |
作者 | Hironori Kitagawa <h_kitagawa2001@yaho...> |
Commiter | Hironori Kitagawa |
fix IVS, CID related codes
@@ -700,7 +700,7 @@ do | ||
700 | 700 | end |
701 | 701 | if uniq_flag then |
702 | 702 | dest = dest or {}; dest[bu] = dest[bu] or {} |
703 | - dest[bu][vsel] = unitable[i] | |
703 | + dest[bu][vsel] = unitable[gv.name] | |
704 | 704 | end |
705 | 705 | end |
706 | 706 | end |
@@ -173,7 +173,8 @@ ltjb.add_to_callback('pre_linebreak_filter', extract,'ltj.otf', | ||
173 | 173 | local function cid_to_char(fmtable, fn) |
174 | 174 | local fi = identifiers[fn] |
175 | 175 | local fe = ltjf_font_extra_info[fn] |
176 | - if fi.cidinfo and fi.cidinfo.ordering == "Japan1" and fe then | |
176 | + if (fi.resources and fi.resources.cidinfo and fi.resources.cidinfo.ordering == "Japan1" ) | |
177 | + and (fe and fe.unicodes) then | |
177 | 178 | for i, v in pairs(fmtable.chars) do |
178 | 179 | local j = string.match(i, "^AJ1%-([0-9]*)") |
179 | 180 | if j then |
@@ -236,7 +237,7 @@ do | ||
236 | 237 | if qc>=0xE0100 then qc = qc - 0xE0100 end |
237 | 238 | local pf = getfont(p) |
238 | 239 | local pt = ltjf_font_extra_info[pf] |
239 | - pt = pt and pt[getchar(p)]; pt = pt and pt[qc] | |
240 | + pt = pt and pt[getchar(p)]; pt = pt and pt[qc] | |
240 | 241 | head, r = node_remove(head,q) |
241 | 242 | node_free(q) |
242 | 243 | if pt then |