summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog6
-rw-r--r--Build/source/texk/dvipdfm-x/tt_cmap.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 9bb2cffbd33..5a0911bb9e2 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,9 @@
+2017-04-16 Shunsaku Hirata <shunsaku.hirata74@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@gmail.com>
* fontmap.c, tt_cmap.c, tt_gsub.c, tt_gsub.h, pdffont.c: Removed
diff --git a/Build/source/texk/dvipdfm-x/tt_cmap.c b/Build/source/texk/dvipdfm-x/tt_cmap.c
index 0e64521d33e..23c767dbd79 100644
--- a/Build/source/texk/dvipdfm-x/tt_cmap.c
+++ b/Build/source/texk/dvipdfm-x/tt_cmap.c
@@ -817,8 +817,8 @@ handle_CIDFont (sfnt *sfont,
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++;
}
}