diff options
author | Jjgod Jiang <gzjjgod@gmail.com> | 2014-08-09 20:33:55 +0000 |
---|---|---|
committer | Jjgod Jiang <gzjjgod@gmail.com> | 2014-08-09 20:33:55 +0000 |
commit | e0932ba24bca208e30671029132591a6edd0e34d (patch) | |
tree | eff235f80579a1c3402c5dea7e7ba55ee3b13cc6 /Build/source | |
parent | 0e536590d09e1c58b0521a2a311dcae285f08a59 (diff) |
dvipdfm-x: Fix warnings handling subst glyphs
git-svn-id: svn://tug.org/texlive/trunk@34886 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/dvipdfm-x/tt_cmap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Build/source/texk/dvipdfm-x/tt_cmap.c b/Build/source/texk/dvipdfm-x/tt_cmap.c index d0e8af6db68..e2602319c14 100644 --- a/Build/source/texk/dvipdfm-x/tt_cmap.c +++ b/Build/source/texk/dvipdfm-x/tt_cmap.c @@ -1006,7 +1006,7 @@ add_to_cmap_if_used (CMap *cmap, * There are problem when two Unicode code is mapped to * single glyph... */ - used_chars[gid / 8] &= ~(1 << (7 - (gid % 8))); + used_chars[cid / 8] &= ~(1 << (7 - (cid % 8))); } } @@ -1076,7 +1076,7 @@ create_ToUnicode_cmap (tt_cmap *ttcmap, { pdf_obj *stream = NULL; CMap *cmap; - USHORT i, gid, count = 0; + USHORT count = 0; cff_font *cffont = prepare_CIDFont_from_sfnt(sfont); char is_cidfont = cffont && (cffont->flag & FONTTYPE_CIDFONT); @@ -1088,6 +1088,7 @@ create_ToUnicode_cmap (tt_cmap *ttcmap, CMap_add_codespacerange(cmap, srange_min, srange_max, 2); if (code_to_cid_cmap && cffont && is_cidfont) { + USHORT i; for (i = 0; i < 8192; i++) { int j; |