revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.07k stars 197 forks source link

feat(skia): bind to Skia's SVGDOM #1058

Closed zbaylin closed 3 years ago

zbaylin commented 3 years ago

This uses Skia's SVGDOM API to render SVGs onto Skia canvas's, which is exactly what we need for SVG rendering!

The basic process to get it working is:

The results are surprisingly good, considering the SVG API is marked as "experimental" in Skia:

image