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