Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001318graphvizDotpublic2008-05-07 11:002011-04-28 04:03
ReporterTom Moore 
Assigned Togviz 
PlatformOS*-*-*OS Version
Summary0001318: Incorrect units in SVG width and height

The generator for SVG output creates the following element:
  <svg width="330pt" height="290pt"
    viewBox = "0 0 330 290"
 xmlns="" [^] xmlns:xlink=""> [^]

where the values for 330 and 290 depend on the size of the figure.

The problem is that the width and height values are in points, and
the viewbox values are in pixels, so this causes the figure to
be scaled with something other than 1:1. As a result, the rendered
figure comes out larger than intended, and fonts are not in the
requested size.

Removing the "pt" specifier from the width and height attributes seems
to correct the problem.
Steps To Reproduce

It looks like this is quite generic and any input will cause this bug.
TagsNo tags attached.
It looks to me that just removing the 'pt' specification from the code
that generates the 'svg' element will fix this bug.
VERSION     2.8
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => user1

MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker