Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001907graphvizDotpublic2010-06-16 06:182011-04-28 04:03
Assigned ToRyan 
PlatformOS*-*-*OS Version
Summary0001907: Rounded lines thinner for PNG output with:penwidth=4,shape=box,style="rounded"

If you draw box-shaped nodes with style="rounded", it seems the line width is not handled correctly. The rounded corners are thiner than the straight lines of the box.
This problems appears only if you create graphical output like PNG or GIF.
However an SVG viewed in Opera has shows the correct line width. And the PS or PS2 output is also correct.
Additional Information

Another interesting test is to change the graph DPI; see \<A HREF="b1980.gv"\>graph\</A\>
and \<A HREF="b1980a.png"\>attachment\</A\>.

See also this mailing list thread: [^]

In fact the problem affected more than just the rounded style -- it affected anything that used polyline to draw using pango.

Here's the one-line fix that I just put in MacPorts: simply remove the cairo_set_line_width call in cairogen_polyline: [^]

(cairogen_set_penstyle already calls cairo_set_line_width with the correct arguments; cairogen_polyline called cairo_set_line_width with the wrong parameters.)

TagsNo tags attached.
STATUS-COMMENTFixed (14 April 2011)
VERSION     2.26.3 (20100126.1600)
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 => Ryan

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