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

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

[Octave-bug-tracker] [bug #52655] [GL2PS] fontsize not correct svg outpu


From: Juan Pablo Carbajal
Subject: [Octave-bug-tracker] [bug #52655] [GL2PS] fontsize not correct svg output
Date: Wed, 13 Dec 2017 04:39:11 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?52655>

                 Summary: [GL2PS] fontsize not correct svg output
                 Project: GNU Octave
            Submitted by: juanpi
            Submitted on: Wed 13 Dec 2017 09:39:10 AM UTC
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: juanpi
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:


Please apologize if this is actually an upstream bug.

The fontsize of print -dsvg (using GL2PS dev version from git repositorycommit
84971332162c1990a55df62b78ef04561e267401) is consistently smaller than what
was passed to the string objects in octave, due to implicit units handling
inconssitence between Octave and GL2PS.

Example

ht = text (0.5, 0.5, "Some text in 12pt", 'fontsize', 12);
print -dsvg "test_fontsize.svg"


Produces and svg with

<text fill="#000000" x="298.08" y="208.44" font-size="12" text-anchor="start"
dy="6" font-family="Helvetica">Some text in 12pt</text>


by default GL2PS svg font-size will be interpreted in px unless 12pt is
given[1].

I guess octave should put units on the string passed to GL2PS or convert its
pt default into px before calling GL2PS

[1]: https://www.w3.org/TR/SVG11/text.html#FontSizeProperty






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?52655>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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