Crate vello_svg

source ·
Expand description

Append a usvg::Tree to a Vello Scene

This currently lacks support for a number of important SVG features. This is because this integration was developed for examples, which only need to support enough SVG to demonstrate Vello.

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

render_tree_with is the primary entry point function, which supports choosing the behaviour when unsupported features are detected. In a future release where there are no unsupported features, this may be phased out

render_tree is a convenience wrapper around render_tree_with which renders an indicator around not yet supported features

This crate also re-exports usvg, to make handling dependency versions easier

§Unsupported features

Missing features include:

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

Re-exports§

Functions§