linebender / resvg

An SVG rendering library.
Apache License 2.0
2.84k stars 229 forks source link

Is there a way to get original SVG command data using `usvg`? #773

Closed GasimGasimzada closed 5 months ago

GasimGasimzada commented 5 months ago

Currently, usvg automatically tesellates graphics data (path, circle, polygon, ellipse etc) for tiny_skia to consume. Is there a way to retrieve the original graphics commands instead of the tesellated data? I want to use usvg to parse the SVGs but utilize my own renderer to render them.

RazrFalcon commented 5 months ago

usvg doesn't perform tessellation. It simply converts basic shapes into paths. Preservation of basic shapes isn't supported at the moment.

GasimGasimzada commented 5 months ago

Makes sense. I figured it out after trying to understand what's going on :) Thank you!