|Anonymous | Login||2017-11-19 12:50 EST|
|Main | My View | View Issues | Change Log | Roadmap | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001901||graphviz||Dot||public||2010-06-06 15:49||2012-04-16 12:36|
|Assigned To||Arif Bilgin|
|Summary||0001901: Windows meta file output ignores linestyles in nodes and edges|
When generating an emf meta file output the dotted and dashed linestyles appear to be ignored.
The sample works correctly when rending a gif output.
The command line is "dot -Temf -O Graph.dot".
Until recently, I have used version "uwin98 (01-26-98)", but this will not work on Server 2008 - understandably. I generated EMF output with the WinGraphViz COM components (with very poor rendering of lines).
The new version EMF support was very welcome and I hope that I am doing something incorrect rather than have found a bug.
In the last 5 years I have frequently used your tool to generate elegant drawings that can be rapidly re-generated and really appreciate the support. I have also used the UBET tool for small protocol analysis exercises and was amused to see Dot embedded.
|Steps To Reproduce|
Node1 -> Node2 [style="dashed"];
Node1 -> Node2 [style="dotted"];
Node1 -> Node2;
I saw that there is support for line styles in gpcanvas.c for Windows meta files, but have not reviewed the current full code base to see if it is still active.
The problem is gdiplus renderer does not seem supporting styles and emf is only available via gdiplus since it is window's native metafile format.We need to extend our rtests to cover gdi plus too.
Is it that the gdiplus renderer does not support styles, or that we have implemented them?
It supports dashed lines,i cant tell whether it supports others.
But it is obvious that our gdiplus code is not complete.
> Is it that the gdiplus renderer does not support styles, or that we have implemented them?
Looks like the latter to me. I see no code for setting pen style in plugin/gdiplus/gvrender_gdiplus.cpp.
I think this code came from Glen Low.
The Windows metafile PenStyle enumeration is documented (http://msdn.microsoft.com/en-us/library/cc231188(v=PROT.10).aspx [^]) and supports 5 native line styles including the ones provided in the dot language.
Yes ,we are aware of the problem, it is about the gdiplus plugin. Hopefully someone will look into it soon.
|Tags||No tags attached.|
|FIX-COMMENT||patch from [email protected] applied|
|Attached Files||1901.patch [^] (851 bytes) 2012-04-12 12:48 [Show Content]|
|I uploaded the file 1901.patch, which should fix this bug. Unfortunately, I lacked the resources to test it.|
|2011-04-28 04:03||user1||New Issue|
|2011-04-28 04:03||user1||Assigned To||=> Arif Bilgin|
|2012-04-12 12:48||dds||File Added: 1901.patch|
|2012-04-12 12:50||dds||Note Added: 0000220|
|2012-04-16 12:36||ellson||FIX-COMMENT||=> patch from [email protected] applied|
|2012-04-16 12:36||ellson||Status||acknowledged => resolved|
|2012-04-16 12:36||ellson||Resolution||open => fixed|
|MantisBT 1.2.5[^] Copyright © 2000 - 2011 MantisBT Group|