Crate vello_svg

Source
Expand description

Render an SVG document to a Vello Scene.

This currently lacks support for a number of important SVG features.

This is also intended to be the preferred integration between Vello and usvg, so consider contributing if you need a feature which is missing.

This crate also re-exports usvg and vello, so you can easily use the specific versions that are compatible with Vello SVG.

§Unsupported features

Missing features include:

  • text
  • group opacity
  • mix-blend-modes
  • clipping
  • masking
  • filter effects
  • group background
  • path shape-rendering
  • patterns

Re-exports§

pub use vello;
pub use usvg;

Modules§

util

Enums§

Error
Triggered when there is an issue parsing user input.

Functions§

append
Append an SVG to a vello Scene, with default error handling.
append_tree
Append an usvg::Tree to a vello Scene, with default error handling.
append_tree_with
Append an usvg::Tree to a vello Scene, with user-provided error handling logic.
append_with
Append an SVG to a vello Scene, with user-provided error handling logic.
render
Render a Scene from an SVG string, with default error handling.
render_tree
Render a Scene from a usvg::Tree, with default error handling.