bugGNU Octave - Bugs: bug #64169, Include of -dNOCACHE into the...

 
 

bug #64169: Include of -dNOCACHE into the toolchain for ps/eps print

Submitter:  Leonardo <pocker>
Submitted:  Tue 09 May 2023 10:46:52 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 8.2.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 11 May 2023 04:05:38 PM UTC, comment #1: 

Hi.

I attached two eps files and the pdf generated in latex (tex -> dvi -> pdf) with both eps included.

Both figures look very similar, but if you do a zoom you will see that the numbers in Fig 2 are not jagged as in Fig 1.

Thanks.

(file #54719, file #54720, file #54721)

Leonardo <pocker>
Tue 09 May 2023 10:46:52 AM UTC, original submission:  

Hi.

I would like to ask for changing the line 77 at:

https://hg.savannah.gnu.org/hgweb/octave/file/4e30fd192118/scripts/plot/util/private/__ghostscript__.m#l77

from


  gs_opts = ["-dQUIET -dNOPAUSE -dBATCH -dSAFER -dAutoRotatePages=/None -sDEVICE=" opts.device];


to


  gs_opts = ["-dQUIET -dNOCACHE -dNOPAUSE -dBATCH -dSAFER -dAutoRotatePages=/None -sDEVICE=" opts.device];


The reason for this, IIUC, is that the option NOCACHE will prevent gs to raster fonts.
With this, the generated ps/eps will have better looking fonts when converted to pdf or inserted in LaTeX files (eps case).

I performed some tests and, indeed, the NOCACHE produced better looking files in these cases (converting to pdf and inserting the eps into tex).

Leonardo <pocker>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #54719:  test_nocache.pdf added by pocker (18KiB - application/pdf)
file #54720:  test_wo_nocache.eps added by pocker (170KiB - image/x-eps)
file #54721:  test_w_nocache.eps added by pocker (181KiB - image/x-eps)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pocker (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-05-11 pocker Attached File- Added test_nocache.pdf, #54719
        Attached File- Added test_wo_nocache.eps, #54720
        Attached File- Added test_w_nocache.eps, #54721

    Back to the top

    Powered by Savane 3.14-f13d.
    Corresponding source code