GNOME Bugzilla – Bug 109818
Linestyle not correct on prints
Last modified: 2005-05-07 21:23:39 UTC
Some diagrams use linestyles other than solid, for instance dashed and dotted lines in UML diagrams. These look OK on screen, but when they are printed _all_ lines become solid. Annoying since this is of semantic importance in UML. My suspicion goes to the use of the Win32 renderer which is used for printing. The Win32 API does NOT support linestyles other than for hairline width (=0) lines, any lines wider than this silently become solid. A limitation in the API I presume, but it means that other linestyles actually have to be simulated in the application itself! (Or in this case, the renderer.)
For NT based windoze this can be overcome by (PS_GEOMETRIC | PS_USERSTYLE) and a list of 'dashes' (dash lengths). There is some code of mine which does this in gdk/win32. I'm not sure though, if is such a good idea to make Dia's wmf renderer output platform dependent ...
*** Bug 100673 has been marked as a duplicate of this bug. ***
Changed my mind : now platform dependent only when printing 2004-07-04 Hans Breuer <hans@breuer.org> * plug-ins/wmf/wmf.cpp : finally do extended linestyles if the windoze platform supports them. This should fix bug #109818, at least for the majority running NT or above ...
*** Bug 160099 has been marked as a duplicate of this bug. ***
*** Bug 303220 has been marked as a duplicate of this bug. ***