texlive[43841] Build/source/texk/dvipdfm-x: dvipdfm-x: Bug fix by the
commits+kakuto at tug.org
commits+kakuto at tug.org
Sun Apr 16 12:31:17 CEST 2017
Revision: 43841
http://tug.org/svn/texlive?view=revision&revision=43841
Author: kakuto
Date: 2017-04-16 12:31:17 +0200 (Sun, 16 Apr 2017)
Log Message:
-----------
dvipdfm-x: Bug fix by the author, S. Hirata
Modified Paths:
--------------
trunk/Build/source/texk/dvipdfm-x/ChangeLog
trunk/Build/source/texk/dvipdfm-x/tt_cmap.c
Modified: trunk/Build/source/texk/dvipdfm-x/ChangeLog
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/ChangeLog 2017-04-16 10:11:22 UTC (rev 43840)
+++ trunk/Build/source/texk/dvipdfm-x/ChangeLog 2017-04-16 10:31:17 UTC (rev 43841)
@@ -1,3 +1,9 @@
+2017-04-16 Shunsaku Hirata <shunsaku.hirata74 at gmail.com>
+
+ * tt_cmap.c: Fix a bug that generation of GID to CID mapping for
+ format 2 CFF charsets was wrong. "unicode" encoding support was
+ broken for fonts using this format.
+
2017-04-15 Shunsaku Hirata <shunsaku.hirata74 at gmail.com>
* fontmap.c, tt_cmap.c, tt_gsub.c, tt_gsub.h, pdffont.c: Removed
Modified: trunk/Build/source/texk/dvipdfm-x/tt_cmap.c
===================================================================
--- trunk/Build/source/texk/dvipdfm-x/tt_cmap.c 2017-04-16 10:11:22 UTC (rev 43840)
+++ trunk/Build/source/texk/dvipdfm-x/tt_cmap.c 2017-04-16 10:31:17 UTC (rev 43841)
@@ -817,8 +817,8 @@
count = ranges[i].n_left + 1;
while (count-- > 0 &&
gid <= num_glyphs) {
- map[gid] = (cid >> 8) & 0xff;
- map[gid] = cid & 0xff;
+ map[2*gid] = (cid >> 8) & 0xff;
+ map[2*gid+1] = cid & 0xff;
gid++; cid++;
}
}
More information about the tex-live-commits
mailing list