Menu

#2104 SVG font size units

None
open-duplicate
nobody
None
2019-04-02
2018-12-02
Anonymous
No

The SVG files generated with the svg terminal are missing font size units i.e. "pt". This results in incorrect font sizes. Older versions of gnuplot (< 5) do not suffer from this issue.

The following script applied to the generated SVG file can be used to workaround the problem:

sed -i 's/font-size="([0-9.]*)"/font-size="\1pt"/g' file.svg

Discussion

  • Hans-Bernhard Broeker

    No, the units are not missing. It's quite perfectly legal and sensible to specify the size without a unit. It's a design choice, not a fault.

     
  • Ethan Merritt

    Ethan Merritt - 2019-04-02
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,4 +1,3 @@
    -
     The SVG files generated with the svg terminal are missing font size units i.e. "pt". This results in incorrect font sizes. Older versions of gnuplot (< 5) do not suffer from this issue.
    
     The following script applied to the generated SVG file can be used to workaround the problem:
    
    • status: open --> open-duplicate
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2019-04-02

    Duplicate of #2000

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.