diff options
-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; |