diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-07-29 12:13:50 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2013-07-29 12:13:50 +0000 |
commit | de569c5d3871e3aea62a0d01e2f86d50f1202591 (patch) | |
tree | e6a1bdc5157ce11b4259419dd95039fad8a54649 /Build/source/texk/dvipdfm-x/tt_aux.c | |
parent | 73f00680f2596baff50bd68e9d639450da2c95d2 (diff) |
dvipdfm-x: Merging dvipdfmx and xdvipdfmx, now just one set of source files
git-svn-id: svn://tug.org/texlive/trunk@31302 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfm-x/tt_aux.c')
-rw-r--r-- | Build/source/texk/dvipdfm-x/tt_aux.c | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/Build/source/texk/dvipdfm-x/tt_aux.c b/Build/source/texk/dvipdfm-x/tt_aux.c index 086a7391050..38e30581989 100644 --- a/Build/source/texk/dvipdfm-x/tt_aux.c +++ b/Build/source/texk/dvipdfm-x/tt_aux.c @@ -36,14 +36,12 @@ #include "tt_post.h" #include "tt_aux.h" -#ifdef XETEX static int verbose = 0; void tt_aux_set_verbose(void) { ++verbose; } -#endif ULONG ttc_read_offset (sfnt *sfont, int ttc_idx) { @@ -191,30 +189,20 @@ pdf_obj *tt_get_fontdesc (sfnt *sfont, int *embed, int stemv, int type, const ch /* the least restrictive license granted takes precedence. */ *embed = 1; } else if (os2->fsType & 0x0004) { -#ifdef XETEX if (verbose > 0) - MESG("** NOTICE: Font \"%s\" permits \"Preview & Print\" embedding only **\n", fontname); -#else - fprintf(stderr, - "\n** NOTICE: This document contains `Preview & Print' only"); - fprintf(stderr, " licensed font **\n"); -#endif + WARN("Font \"%s\" permits \"Preview & Print\" embedding only **\n", fontname); *embed = 1; } else { -#ifdef XETEX if (always_embed) { - MESG("** NOTICE: Font \"%s\" may be subject to embedding restrictions **\n", fontname); + if (verbose > 0) + WARN("Font \"%s\" may be subject to embedding restrictions **\n", fontname); *embed = 1; } else { - WARN("Embedding of font \"%s\" disabled due to license restrictions", fontname); + if (verbose > 0) + WARN("Embedding of font \"%s\" disabled due to license restrictions", fontname); *embed = 0; } -#else - fprintf(stderr, - "\n*** Embedding disabled due to licensing restriction ***\n"); - *embed = 0; -#endif } } |