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 
PrioritynormalSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformOS*-*-*OS Version
Summary0001318: Incorrect units in SVG width and height
Description



The generator for SVG output creates the following element:
<CD>
  <svg width="330pt" height="290pt"
    viewBox = "0 0 330 290"
 xmlns="http://www.w3.org/2000/svg" [^] xmlns:xlink="http://www.w3.org/1999/xlink"> [^]
</CD>



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.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 
It looks to me that just removing the 'pt' specification from the code
that generates the 'svg' element will fix this bug.
FORMER-ID1351
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT*
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