RazrFalcon / resvg

An SVG rendering library.
Mozilla Public License 2.0
2.74k stars 220 forks source link

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

Closed GasimGasimzada closed 3 months ago

GasimGasimzada commented 3 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 3 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 3 months ago

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