octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59355] Incorect font size in printed svg


From: Rik
Subject: [Octave-bug-tracker] [bug #59355] Incorect font size in printed svg
Date: Fri, 30 Oct 2020 17:24:41 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36

Update of bug #59355 (project octave):

        Operating System:       Microsoft Windows => Any                    

    _______________________________________________________

Follow-up Comment #1:

I think most of this is actually correct.

First, the "papersize" property is only used for printing to page-like formats
(PostScript, PDF).  Try 'help print' to see all of the options and caveats for
printing.  For all other formats, the size is taken from the "paperposition"
property.  Hence, the creation of the figure needs to be


figure(1,'paperunits','points', 'paperposition', [0,0,pos(3:4)])


If I run the rest of the test script after making the modification above I
find that fig1.svg is indeed 560x420 as measured in points.  The fontsize is
18.

The size of fig1.png is 1166x875 pixels.  This also makes sense.  There are 72
points/inch so 560 points is 7.7778 inches.  The resolution for bitmapped
formats, like png, is 150 dpi/inch so multiplying 7.7778 by 150 = 1166.  See
the "-r" resolution option for print to change this default.

The "-S" option overrides the default mechanism above.  For fig2.png, the
result is 560x420 pixels and for fig2.svg the result is 560x420 points.

The one thing I don't quite understand is that for fig2.svg the size of the
font is 17.496 points instead of 18.0 points.  If there is a problem, it is
with this one part of the svg file.



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59355>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]