diff scripts/plot/util/private/__ghostscript__.m @ 19601:6a9bde1ba0ea gui-release

Stop using deprecated and removed ghostscript device pswrite (bug #41141) * __ghostscript__.m: Remove references to pswrite device. * __print_parse_opts__.m: Remove references to pswrite device. Change default postscript level to 2. Use device ps2write for -dps and -psc print switches.
author Rik <rik@octave.org>
date Mon, 12 Jan 2015 08:47:12 -0800
parents d63878346099
children f88ee85d4da9
line wrap: on
line diff
--- a/scripts/plot/util/private/__ghostscript__.m	Sun Jan 11 15:47:37 2015 +0100
+++ b/scripts/plot/util/private/__ghostscript__.m	Mon Jan 12 08:47:12 2015 -0800
@@ -76,7 +76,7 @@
                        gs_opts, opts.antialiasing_textalphabits,
                        opts.antialiasing_graphicsalphabits);
     gs_opts = sprintf ("%s -r%dx%d", gs_opts, [1, 1] * opts.resolution);
-  elseif (any (strcmp (opts.device, {"pswrite", "ps2write", "pdfwrite"})))
+  elseif (any (strcmp (opts.device, {"ps2write", "pdfwrite"})))
     gs_opts = sprintf ("%s -dEmbedAllFonts=true", gs_opts);
     if (strcmp (opts.device, "pdfwrite"))
       ## Optimize for loading
@@ -142,7 +142,7 @@
     cmd = sprintf ("%s %s -sOutputFile=\"%s\"", opts.binary, gs_opts, opts.output);
   endif
   if (! isempty (opts.prepend)
-      && any (strcmpi (opts.device, {"pswrite", "ps2write", "pdfwrite"})))
+      && any (strcmpi (opts.device, {"ps2write", "pdfwrite"})))
     ## FIXME - Fonts get may be mangled when appending ps/ps2.
     ##         See "How to concatenate several PS files" at the link,
     ##         http://en.wikibooks.org/wiki/PostScript_FAQ