Mercurial > octave
changeset 22517:34f98c1e4d56
Disable anti-aliasing for graphics in raster outputs (bug #48873).
* print.m: Document that by default antialiasing is enabled for text only
* __ghostscript__.m: Change default value for ghostscript option
-GraphicsAlphaBits to 1.
* __print_parse_opts__.m: likewise
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Tue, 20 Sep 2016 00:04:03 +0200 |
parents | b3268dbf9781 |
children | e15b89c4c2dd 9d5062749814 |
files | scripts/plot/util/print.m scripts/plot/util/private/__ghostscript__.m scripts/plot/util/private/__print_parse_opts__.m |
diffstat | 3 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/print.m Mon Sep 19 16:42:59 2016 -0700 +++ b/scripts/plot/util/print.m Tue Sep 20 00:04:03 2016 +0200 @@ -79,8 +79,8 @@ ## Octave is able to produce output for various printers, bitmaps, and ## vector formats by using Ghostscript. For bitmap and printer output ## anti-aliasing is applied using Ghostscript's TextAlphaBits and -## GraphicsAlphaBits options. The default number of bits for each is 4. -## Allowed values for @var{N} are 1, 2, or 4. +## GraphicsAlphaBits options. The default number of bits are 4 and 1 +## respectively. Allowed values for @var{N} are 1, 2, or 4. ## ## @item -d@var{device} ## The available output format is specified by the option @var{device}, and
--- a/scripts/plot/util/private/__ghostscript__.m Mon Sep 19 16:42:59 2016 -0700 +++ b/scripts/plot/util/private/__ghostscript__.m Tue Sep 20 00:04:03 2016 +0200 @@ -34,8 +34,8 @@ opts.device = ""; opts.epscrop = false; opts.antialiasing = false; - opts.antialiasing_textalphabits = 4;, - opts.antialiasing_graphicsalphabits = 4; + opts.antialiasing_textalphabits = 4; + opts.antialiasing_graphicsalphabits = 1; opts.resolution = 150; opts.papersize = ""; opts.pageoffset = [0 0];
--- a/scripts/plot/util/private/__print_parse_opts__.m Mon Sep 19 16:42:59 2016 -0700 +++ b/scripts/plot/util/private/__print_parse_opts__.m Tue Sep 20 00:04:03 2016 +0200 @@ -50,7 +50,7 @@ arg_st.ghostscript.resolution = 150; arg_st.ghostscript.antialiasing = false; arg_st.ghostscript.antialiasing_textalphabits = 4; - arg_st.ghostscript.antialiasing_graphicsalphabits = 4; + arg_st.ghostscript.antialiasing_graphicsalphabits = 1; arg_st.loose = false; arg_st.lpr_binary = __quote_path__ (__find_binary__ ("lpr")); arg_st.name = "";