diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-12-18 22:34:22 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2016-12-18 22:34:22 +0000 |
commit | 76930401be7c6bef4285e9a5100b1a74ab01e907 (patch) | |
tree | 4783eab5504d738755a1a19d68645ef84b40a3d2 /Build | |
parent | 22c37c9baa7011b264591e1f908aa3a5749acad3 (diff) |
dvipdfm-x: recover the original type0.c and tt_cmap.c for [x]dvipdfmx
git-svn-id: svn://tug.org/texlive/trunk@42744 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r-- | Build/source/texk/dvipdfm-x/tt_cmap.c | 11 | ||||
-rw-r--r-- | Build/source/texk/dvipdfm-x/type0.c | 4 |
2 files changed, 15 insertions, 0 deletions
diff --git a/Build/source/texk/dvipdfm-x/tt_cmap.c b/Build/source/texk/dvipdfm-x/tt_cmap.c index 9da12913f5b..9943aa99c4a 100644 --- a/Build/source/texk/dvipdfm-x/tt_cmap.c +++ b/Build/source/texk/dvipdfm-x/tt_cmap.c @@ -902,12 +902,19 @@ handle_subst_glyphs (CMap *cmap, } #undef MAX_UNICODES if (unicode_count == -1) { +#if defined(LIBDPX) if(verbose > VERBOSE_LEVEL_MIN) { if (name) MESG("No Unicode mapping available: GID=%u, name=%s\n", gid, name); else MESG("No Unicode mapping available: GID=%u\n", gid); } +#else + if (name) + MESG("No Unicode mapping available: GID=%u, name=%s\n", gid, name); + else + MESG("No Unicode mapping available: GID=%u\n", gid); +#endif /* LIBDPX */ } else { /* the Unicode characters go into wbuf[2] and following, in UTF16BE */ /* we rely on WBUF_SIZE being more than adequate for MAX_UNICODES */ @@ -1269,7 +1276,11 @@ otf_create_ToUnicode_stream (const char *font_name, break; } } +#if defined(LIBDPX) if (cmap_obj == NULL && verbose > VERBOSE_LEVEL_MIN) +#else + if (cmap_obj == NULL) +#endif /* LIBDPX */ WARN("Unable to read OpenType/TrueType Unicode cmap table."); tt_cmap_release(ttcmap); CMap_set_silent(0); diff --git a/Build/source/texk/dvipdfm-x/type0.c b/Build/source/texk/dvipdfm-x/type0.c index 493d7ef7a08..38390666399 100644 --- a/Build/source/texk/dvipdfm-x/type0.c +++ b/Build/source/texk/dvipdfm-x/type0.c @@ -254,8 +254,12 @@ add_ToUnicode (Type0Font *font) pdf_add_dict(font->fontdict, pdf_new_name("ToUnicode"), tounicode); } else { +#if defined(LIBDPX) if (__verbose) WARN("Failed to load ToUnicode CMap for font \"%s\"", fontname); +#else + WARN("Failed to load ToUnicode CMap for font \"%s\"", fontname); +#endif /* LIBDPX */ } return; |