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§
- Error handler function for
render_tree_with
which draws a transparent red box instead of unsupported SVG features - Append a
usvg::Tree
into a VelloScene
, with default error handling This will draw a red box over (some) unsupported elements - Append a
usvg::Tree
into a VelloScene
.