summaryrefslogtreecommitdiff
path: root/Build/source/texk
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-08-02 04:56:29 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2014-08-02 04:56:29 +0000
commit2cfef19afd755f24e80355cc326dfe61c93c8a6b (patch)
tree6d8e8057901cbe3782150650693b63c7caf41f89 /Build/source/texk
parentd1cca4e94afc74a6adbb6afb792829d934e3c3b2 (diff)
Fix a bug in unicode encoding in CFF/OpenType fonts (from the original author, S. Hirata)
git-svn-id: svn://tug.org/texlive/trunk@34797 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk')
-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++;
}
}