Status of skia svg support

1,255 views
Skip to first unread message

Jake

unread,
Nov 13, 2011, 6:33:41 PM11/13/11
to skia-discuss
Hello,

What is the status of svg rendering in skia? i see a bunch of code for
svg under src/svc, but can't find any tests for samples for it.

Is it still viable?

Thanks,
-Jake

Mike Reed

unread,
Nov 14, 2011, 1:45:11 PM11/14/11
to skia-d...@googlegroups.com
Jake,

The svg code is a partial impl for read and writing, but neither is
complete. SVG complete would be a huge task (take a look at how much
code is in webkit for svg). However, if we knew the specific need you
have, perhaps it can be accommodated in skia.

mike

> --
> You received this message because you are subscribed to the Google Groups "skia-discuss" group.
> To post to this group, send email to skia-d...@googlegroups.com.
> To unsubscribe from this group, send email to skia-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/skia-discuss?hl=en.
>
>

Jake

unread,
Nov 14, 2011, 1:52:53 PM11/14/11
to skia-discuss
My immediate need is to be able to render this svg:

<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/
Graphics/SVG/1.1/DTD/svg11.dtd">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/
1999/xlink" width="[width]" height="[height]">
<defs>
<path id="circleCurve" d="M [startX] [startY] a[radius] [radius] 0
1,1 0.01,0 z"/>
</defs>
<text id="T" fill="[fontColor]" style="font-family:Helvetica
Neue,arial,sans-serif;font-size:[fontSize];font-weight:
[fontWeight];color:[fontColor]">
<textPath xlink:href="#circleCurve" startOffset="[rotationPercent]
%">[content]</textPath>
</text>
</svg>

the [] are placeholders.

-Jake

Raj

unread,
Jan 16, 2013, 1:10:38 PM1/16/13
to skia-d...@googlegroups.com
I need this functionality to be able to render SVG in skia. Is there any update available on this ??
I will really appreciate any info on this.
 
Regards,
Raj

Mike Reed

unread,
Jan 16, 2013, 1:20:32 PM1/16/13
to skia-d...@googlegroups.com
"render SVG in skia" -- this is a non-goal for Skia, given the very large size of the SVG spec, its reliance on a DOM, javascript, and animations.

Supporting individual primitives/features of SVG is (mostly) a goal for Skia. If you know of missing support at that level, you may find a more receptive audience.

mike


--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To view this discussion on the web visit https://groups.google.com/d/msg/skia-discuss/-/WKwLRvtgnJEJ.

Raj

unread,
Jan 17, 2013, 12:42:39 PM1/17/13
to skia-d...@googlegroups.com
Thanks Mike.
I am actually new to skia ... so what I need is to be able to render a svg image ... could you please provide me some hints or reference or if there is any sample available. I tried to search but couldn't find anything.
 
Raj

Raj

unread,
Jan 23, 2013, 5:03:12 PM1/23/13
to skia-d...@googlegroups.com
I am trying to parse the svg using skSVGParser and want to know how do I a ccess each element inside the svg. I am not able to find any call in  the code or any documentation. Could you please provide any reference aor example. I would really appreciate that.
Reply all
Reply to author
Forward
0 new messages