Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001901graphvizDotpublic2010-06-06 15:492012-04-16 12:36
ReporterPekka Pihlajasaari 
Assigned ToArif Bilgin 
PlatformOSx86-Windows-VistaOS Version
Summary0001901: 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".

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

digraph {
    Node1 [style="dashed"];
    Node2 [style="dotted"];
    Node1 -> Node2 [style="dashed"];
    Node1 -> Node2 [style="dotted"];
    Node1 -> Node2;
Additional Information
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 ( [^]) 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.
TagsNo tags attached.
FIX-COMMENTpatch from [email protected] applied
VERSION     2.26.3 (20100126.1600)
Attached Filespatch file icon 1901.patch [^] (851 bytes) 2012-04-12 12:48 [Show Content]

- Relationships

-  Notes
User avatar (0000220)
dds (reporter)
2012-04-12 12:50

I uploaded the file 1901.patch, which should fix this bug. Unfortunately, I lacked the resources to test it.

- Issue History
Date Modified Username Field Change
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
Powered by Mantis Bugtracker