Mercurial > octave-nkf
comparison scripts/plot/util/private/__ghostscript__.m @ 19602:f88ee85d4da9 gui-release
Restore valid uses of pswrite device in cset a402493c0605.
* __ghostscript__.m: Restore making decisions (if statements) based on
pswrite device since someone may have explicitly passed -dpswrite option.
* __print_parse_opts__.m: Restore making decisions (if statements) based on
pswrite device since someone may have explicitly passed -dpswrite option.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 12 Jan 2015 09:13:19 -0800 |
parents | 6a9bde1ba0ea |
children | 9b90d8579c61 |
comparison
equal
deleted
inserted
replaced
19601:6a9bde1ba0ea | 19602:f88ee85d4da9 |
---|---|
74 ## Apply anti-aliasing to all bitmap formats/devices | 74 ## Apply anti-aliasing to all bitmap formats/devices |
75 gs_opts = sprintf ("%s -dTextAlphaBits=%d -dGraphicsAlphaBits=%d", | 75 gs_opts = sprintf ("%s -dTextAlphaBits=%d -dGraphicsAlphaBits=%d", |
76 gs_opts, opts.antialiasing_textalphabits, | 76 gs_opts, opts.antialiasing_textalphabits, |
77 opts.antialiasing_graphicsalphabits); | 77 opts.antialiasing_graphicsalphabits); |
78 gs_opts = sprintf ("%s -r%dx%d", gs_opts, [1, 1] * opts.resolution); | 78 gs_opts = sprintf ("%s -r%dx%d", gs_opts, [1, 1] * opts.resolution); |
79 elseif (any (strcmp (opts.device, {"ps2write", "pdfwrite"}))) | 79 elseif (any (strcmp (opts.device, {"pswrite", "ps2write", "pdfwrite"}))) |
80 gs_opts = sprintf ("%s -dEmbedAllFonts=true", gs_opts); | 80 gs_opts = sprintf ("%s -dEmbedAllFonts=true", gs_opts); |
81 if (strcmp (opts.device, "pdfwrite")) | 81 if (strcmp (opts.device, "pdfwrite")) |
82 ## Optimize for loading | 82 ## Optimize for loading |
83 gs_opts = sprintf ("%s -dOptimize=true", gs_opts); | 83 gs_opts = sprintf ("%s -dOptimize=true", gs_opts); |
84 endif | 84 endif |
140 cmd = sprintf ("%s %s", opts.binary, gs_opts); | 140 cmd = sprintf ("%s %s", opts.binary, gs_opts); |
141 else | 141 else |
142 cmd = sprintf ("%s %s -sOutputFile=\"%s\"", opts.binary, gs_opts, opts.output); | 142 cmd = sprintf ("%s %s -sOutputFile=\"%s\"", opts.binary, gs_opts, opts.output); |
143 endif | 143 endif |
144 if (! isempty (opts.prepend) | 144 if (! isempty (opts.prepend) |
145 && any (strcmpi (opts.device, {"ps2write", "pdfwrite"}))) | 145 && any (strcmpi (opts.device, {"pswrite", "ps2write", "pdfwrite"}))) |
146 ## FIXME - Fonts get may be mangled when appending ps/ps2. | 146 ## FIXME - Fonts get may be mangled when appending ps/ps2. |
147 ## See "How to concatenate several PS files" at the link, | 147 ## See "How to concatenate several PS files" at the link, |
148 ## http://en.wikibooks.org/wiki/PostScript_FAQ | 148 ## http://en.wikibooks.org/wiki/PostScript_FAQ |
149 cmd = sprintf ("%s %s", cmd, opts.prepend); | 149 cmd = sprintf ("%s %s", cmd, opts.prepend); |
150 if (isempty (cleanup_cmd)) | 150 if (isempty (cleanup_cmd)) |