SVG support

I saw some posts from 2014 saying that Corona doesn’t support SVG however, I thought I would ask again since a few years have gone by.   I have a server that I call which returns floor plan data in SVG format and I need a way to display it.  Even a Lua based SVG to PNG converter might do but would not be ideal.  

Anyone tackled this problem? 

Sweet

I don’t think there is currently a way to do this in corona sdk, maybe with enterprise. You may be able to try to do some research into how to convert svg to png via a server.

I think Lerg was going to make a plugin, but have heard nothing recently.

There is indeed a fairly new feature in Enterprise that allows you to load a texture from a blob of data. This texture can then be fed, like canvases, as input to display.newImage() et al. I’ve used this to load non-PNG or -JPEG files, for instance.

Coming up with that blob of data is the problem. There are projects like Cairo and Anti-Grain that could render it (and do much more besides, of course), but I couldn’t say from experience whether this is easy. I see mixed reports about the difficulty of porting them to multiple platforms.

Please vote for this feature here:

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3584597-vector-graphics-support

Corona supports quite a few primitives to do SVG, but we have a ways to go. Due to the complexity, it’s not high on the priority list. More votes the better.

Rob

I don’t think there is currently a way to do this in corona sdk, maybe with enterprise. You may be able to try to do some research into how to convert svg to png via a server.

I think Lerg was going to make a plugin, but have heard nothing recently.

There is indeed a fairly new feature in Enterprise that allows you to load a texture from a blob of data. This texture can then be fed, like canvases, as input to display.newImage() et al. I’ve used this to load non-PNG or -JPEG files, for instance.

Coming up with that blob of data is the problem. There are projects like Cairo and Anti-Grain that could render it (and do much more besides, of course), but I couldn’t say from experience whether this is easy. I see mixed reports about the difficulty of porting them to multiple platforms.

Please vote for this feature here:

http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/3584597-vector-graphics-support

Corona supports quite a few primitives to do SVG, but we have a ways to go. Due to the complexity, it’s not high on the priority list. More votes the better.

Rob