Mercurial > hg > octave-nkf
changeset 10919:2a3279d11794
__ghostscript__.m: Don't set anti-aliasing options for vector formats.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Fri, 27 Aug 2010 20:06:19 -0400 |
parents | 811f8611995d |
children | 91ff0d7ee94b |
files | scripts/ChangeLog scripts/plot/private/__ghostscript__.m |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,5 +1,7 @@ 2010-08-27 Ben Abbott <bpabbott@mac.com> + * plot/private/__ghostscript__.m: Don't set anti-aliasing options for + vector formats. * plot/__print_parse_opts__.m: Fix tests. 2010-08-27 Jordi GutiƩrrez Hermoso <jordigh@gmail.com>
--- a/scripts/plot/private/__ghostscript__.m +++ b/scripts/plot/private/__ghostscript__.m @@ -57,7 +57,8 @@ gs_opts = sprintf ("%s -dLanguageLevel=%d", gs_opts, round (opts.level)); endif - if (opts.antialiasing) + if (opts.antialiasing && isempty (strfind (opts.device, "write"))) + ## Apply anti-aliasing to all bitmap formats/devices gs_opts = sprintf ("%s -dTextAlphaBits=4 -dGraphicsAlphaBits=4", gs_opts); gs_opts = sprintf ("%s -r%dx%d", gs_opts, [1, 1] * opts.resolution); elseif (any (strcmp (opts.device, {"pswrite", "ps2write", "pdfwrite"})))