GNOME Bugzilla – Bug 142783
support SVG shapes
Last modified: 2019-03-20 11:11:47 UTC
Please add support for SVG shapes, which would allow nicer shapes, e.g. http://www.linuxjournal.com/modules/NS-articles/briefs/7591f2.jpg Current shapes are quite bad looking (networking). Thanks
I see those are quite pretty. However, the associated rendering implementations are surely not easy. We have nothing like the SVG gradient in Dia, so none of the renderers support it. It is awfully pretty, though. Methinks it'd be better off as a post-1.0 effort, as it entails a fair amount of reworking while not fixing something that's decidedly broken.
Setting milestone. Oh, and working patches are likely to be accepted.
As described here [1] this should be possible already with 0.94 and the support of a librsvg based pixbuf loader - which should be quite common on current GNOME installations. [1] http://mail.gnome.org/archives/dia-list/2004-December/msg00014.html
I could use librsvg to render dia shapes. It renders well but then i lose shape information (librsvg reads xml directly and it currently doesn't provide any way to access svg shapes) so dia shapes can be selected as images only. Do you have any idea?
Dia shapes or (programmed) objects are always treated as a unit. They are the diagram building blocks. One could describe this as "image only". Depending on the implementation of the shape/object everything is rendered as sequence of vectors and bitmaps. For svg contained in a shape the only thing special is there ability to produce different precision bitmaps depending on the requiested resolution. If I would understand what you mean with "lose shape information" I may get a better idea of what you think is missing.
That's information about what lines/curves/paths.. used to draw a shape. Because I pass svg:svg node content to librsvg without parsing it, i don't know what lines/curves/paths used to draw that shape. As a result, I don't know how to implement distance_from function because what I only have is a RsvgHandle which not expose anything inside it. Perhaps i might pass svg content for librsvg to have a better image and reuse parse_svg_node to keep those information.
*** Bug 96824 has been marked as a duplicate of this bug. ***
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/dia/issues/105.