summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog4
-rw-r--r--Build/source/texk/dvipdfm-x/tt_cmap.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 2b905930a27..2ee9ab111bd 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,7 @@
+2014-08-02 Shunsaku Hirata <shunsaku.hirata74@gmail.com>
+
+ * tt_cmap.c: Fix a bug in unicode encoding in CFF/OpenType fonts.
+
2014-08-01 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
* type0.c: Fix a bug in Type0Font_clean (Type0Font *font).
diff --git a/Build/source/texk/dvipdfm-x/tt_cmap.c b/Build/source/texk/dvipdfm-x/tt_cmap.c
index 95471a34860..757ad48fff7 100644
--- a/Build/source/texk/dvipdfm-x/tt_cmap.c
+++ b/Build/source/texk/dvipdfm-x/tt_cmap.c
@@ -791,7 +791,7 @@ handle_CIDFont (sfnt *sfont,
gid <= num_glyphs) {
map[2*gid ] = (cid >> 8) & 0xff;
map[2*gid + 1] = cid & 0xff;
- gid++;
+ gid++; cid++;
}
}
}
@@ -816,7 +816,7 @@ handle_CIDFont (sfnt *sfont,
gid <= num_glyphs) {
map[gid] = (cid >> 8) & 0xff;
map[gid] = cid & 0xff;
- gid++;
+ gid++; cid++;
}
}