You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skia's own frontend support for the SVG format is no longer experimental. Please expose an API around SkSVGDOM::Builder() with the ability to load SVG from file/string and render to a canvas.
Describe the solution you would like
For "inspiration", rust-skia re-exports via a C interface:
Svg.Skia (which is based on SVG.Net). For reasons I don't fully understand, I found this to generate very large, inefficient PDFs (which used hundreds of /Patterns and produced PDF files hundreds of times larger than required) when importing a specific SVG to an SkPicture and then rendering to a PDF canvas. Generally I would expect the built-in native code in C++ to be a bit more performant too.
When I tried using the native C++ SkSVGCanvas stuff myself, the commands generated in the SkPicture were much more sensible.
Additional context
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
Skia's own frontend support for the SVG format is no longer experimental. Please expose an API around
SkSVGDOM::Builder()
with the ability to load SVG from file/string and render to a canvas.Describe the solution you would like
For "inspiration",
rust-skia
re-exports via a C interface:and then exposes in its crate.
SkiaSharp should do the same.
Describe alternatives you have considered
Svg.Skia (which is based on SVG.Net). For reasons I don't fully understand, I found this to generate very large, inefficient PDFs (which used hundreds of
/Pattern
s and produced PDF files hundreds of times larger than required) when importing a specific SVG to an SkPicture and then rendering to a PDF canvas. Generally I would expect the built-in native code in C++ to be a bit more performant too.When I tried using the native C++ SkSVGCanvas stuff myself, the commands generated in the SkPicture were much more sensible.
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: