any predictions on when, or if, 'miter-clip join' will be implemented?
I see that the SVG 2 spec contains a new property called miter-clip. https://svgwg.org/svg2-draft/painting.html#LineJoin
Just wondering whether Inkscape, or any other renderers, are going to implement this, or have already implemented it? I ran into this by accident when trying to produce an svg representation of some spirograph bitmaps. The original spirographs came from https://sourceforge.net/projects/spirograph/ , I have attached a png screenshot of one here. The corresponding svg file that I produced is attached here as well. The svg file has some serious discrepancies at the line joins, which could possibly be fixed by the miter-clip, I hope, hence the question. 13_YellowCircles.png http://inkscape.13.x6.nabble.com/file/n4975611/13_YellowCircles.png 13_YellowCircles.svg http://inkscape.13.x6.nabble.com/file/n4975611/13_YellowCircles.svg
Cheers, Alvin
-- View this message in context: http://inkscape.13.x6.nabble.com/any-predictions-on-when-or-if-miter-clip-jo... Sent from the Inkscape - Dev mailing list archive at Nabble.com.
2016-02-20 9:23 GMT-08:00 alvinpenner <penner@...1856...>:
I see that the SVG 2 spec contains a new property called miter-clip. https://svgwg.org/svg2-draft/painting.html#LineJoin
Just wondering whether Inkscape, or any other renderers, are going to implement this, or have already implemented it?
Not that I know of.
We use Cairo for rendering, so there would first need to be support in Cairo for this, and I'm not aware of anyone working on this at the moment. Alternatively, if we ever implement reliable stroke-to-path, we can rely on that instead and use only Cairo fills.
Another option would be to use Skia, which has a very good OpenGL rendering backend. However, there are no releases of Skia, and the recommended way of using it in a project is to include it as a Git submodule; if we do that, we might exceed the Travis CI build time limit.
Best regards, Krzysztof
On Tue, 2016-02-23 at 22:36 -0800, Krzysztof Kosiński wrote:
2016-02-20 9:23 GMT-08:00 alvinpenner <penner@...1856...>:
I see that the SVG 2 spec contains a new property called miter- clip. https://svgwg.org/svg2-draft/painting.html#LineJoin
Just wondering whether Inkscape, or any other renderers, are going to implement this, or have already implemented it?
Not that I know of.
We use Cairo for rendering, so there would first need to be support in Cairo for this, and I'm not aware of anyone working on this at the moment. Alternatively, if we ever implement reliable stroke-to-path, we can rely on that instead and use only Cairo fills.
I have just started to work on this. I will use it as practice for adding the 'arcs' line join to Cairo.
Another option would be to use Skia, which has a very good OpenGL rendering backend. However, there are no releases of Skia, and the recommended way of using it in a project is to include it as a Git submodule; if we do that, we might exceed the Travis CI build time limit.
How hard would it be to move from Cairo to Skia?
Tav
Best regards, Krzysztof
Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel
2016-02-23 23:12 GMT-08:00 Tavmjong Bah <tavmjong@...8...>:
On Tue, 2016-02-23 at 22:36 -0800, Krzysztof Kosiński wrote:
2016-02-20 9:23 GMT-08:00 alvinpenner <penner@...1856...>:
I see that the SVG 2 spec contains a new property called miter- clip. https://svgwg.org/svg2-draft/painting.html#LineJoin
Just wondering whether Inkscape, or any other renderers, are going to implement this, or have already implemented it?
Not that I know of.
We use Cairo for rendering, so there would first need to be support in Cairo for this, and I'm not aware of anyone working on this at the moment. Alternatively, if we ever implement reliable stroke-to-path, we can rely on that instead and use only Cairo fills.
I have just started to work on this. I will use it as practice for adding the 'arcs' line join to Cairo.
Another option would be to use Skia, which has a very good OpenGL rendering backend. However, there are no releases of Skia, and the recommended way of using it in a project is to include it as a Git submodule; if we do that, we might exceed the Travis CI build time limit.
How hard would it be to move from Cairo to Skia?
About the same effort as moving from libnr to Cairo, maybe a little less. The biggest work item would be the SVG filters. If we want to keep the Cairo renderer as an option, then some extra effort would be required.
By the way, to clear up a potential misunderstanding, I don't know whether Skia has miter-clip joins. I just mentioned it because I've been thinking about that lately, and it seems that it also has working Boolean operations (!).
Best regards, Krzysztof
participants (3)
-
alvinpenner
-
Krzysztof Kosiński
-
Tavmjong Bah