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
ReporterManuel 
Assigned ToRyan 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-*OS Version
Summary0001907: Rounded lines thinner for PNG output with:penwidth=4,shape=box,style="rounded"
Description



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

[ryan]
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:

https://mailman.research.att.com/pipermail/graphviz-interest/2011q2/007737.html [^]

[ryan]
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:

http://trac.macports.org/browser/trunk/dports/graphics/graphviz-devel/files/patch-plugin-pango-gvrender_pango.c.diff?rev=77833 [^]

(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.
AUXILLARY-FILEShttp://www.graphviz.org/bugs/b1980.gv [^] http://www.graphviz.org/bugs/b1980a.png [^]
DATE-FIXED
FIX-COMMENT
FORMER-ID1980
INPUT-FILEhttp://www.graphviz.org/bugs/b1980.dot [^]
OUTPUT-FILEhttp://www.graphviz.org/bugs/b1980.png [^]
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