[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[texlive-bin] 01/05: fix dvipdfmx with cid type2 fonts - devel@texjp.org:326 ff



This is an automated email from the git hooks/post-receive script.

preining pushed a commit to branch master
in repository texlive-bin.

commit 553147d8608aa037724c12edac08dc58f91faff1
Author: Norbert Preining <preining@debian.org>
Date:   Wed May 11 20:56:25 2016 +0900

    fix dvipdfmx with cid type2 fonts - devel@texjp.org:326 ff
---
 debian/patches/dvipdfmx-cidtype2-fixes | 27 +++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 2 files changed, 28 insertions(+)

diff --git a/debian/patches/dvipdfmx-cidtype2-fixes b/debian/patches/dvipdfmx-cidtype2-fixes
new file mode 100644
index 0000000..c88a9ae
--- /dev/null
+++ b/debian/patches/dvipdfmx-cidtype2-fixes
@@ -0,0 +1,27 @@
+fix problems with dvipdfmx eating characters
+patch by AKira Kakuto and Hironori Kitagawa
+see devel@texjp.org ML, thread starting at post nr 326
+---
+ texk/dvipdfm-x/cidtype2.c |   10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+--- texlive-bin.orig/texk/dvipdfm-x/cidtype2.c
++++ texlive-bin/texk/dvipdfm-x/cidtype2.c
+@@ -653,10 +653,14 @@
+ 	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) {
diff --git a/debian/patches/series b/debian/patches/series
index d609472..fe31daf 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -15,3 +15,4 @@ fix-format-gcc-errors
 fix-mktexlsr-bashims
 upupstream-xdvi-desktop-file
 source-date-epoch-extension
+dvipdfmx-cidtype2-fixes

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-tex/texlive-bin.git


Reply to: