diff options
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/dvipdfm-x/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/cidtype2.c | 10 |
2 files changed, 12 insertions, 3 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog index d6af5307706..cb10d0e3ecc 100644 --- a/Build/source/texk/dvipdfm-x/ChangeLog +++ b/Build/source/texk/dvipdfm-x/ChangeLog @@ -1,3 +1,8 @@ +2016-05-10 Hironori Kitagawa <h_kitagawa2001@yahoo.co.jp> + + * cidtype2.c: Fix bugs in horizontal-vertical mixed scripts by + TrueType fonts. + 2016-05-08 Masamichi HOSODA <trueroad@trueroad.jp> * dvi.c, dvipdfmx.c, dvipdfmx.h, special.c: Add new specials to handle diff --git a/Build/source/texk/dvipdfm-x/cidtype2.c b/Build/source/texk/dvipdfm-x/cidtype2.c index ba8b4c93b77..a7cad383a74 100644 --- a/Build/source/texk/dvipdfm-x/cidtype2.c +++ b/Build/source/texk/dvipdfm-x/cidtype2.c @@ -653,10 +653,14 @@ CIDFont_type2_dofont (CIDFont *font) c = h_used_chars[i]; break; } + } + for (i = 8191; i >= 0; i--) { if (v_used_chars && v_used_chars[i] != 0) { - last_cid = i * 8 + 7; - c = v_used_chars[i]; - break; + if (i * 8 + 7 >= last_cid) { + c = (i * 8 + 7 > last_cid) ? (v_used_chars[i]) : (c | v_used_chars[i]); + last_cid = i * 8 + 7; + break; + } } } if (last_cid > 0) { |