Crate svgr

Source
Expand description

svgr is an SVG rendering library.

Re-exports§

pub use tiny_skia;
pub use usvgr;

Structs§

Context
General context for the rendering.
PixmapPool
Pixmap ring buffer required for reusing allocation when creating a lot of inner pixmaps
SvgrCache
Defines rendering LRU cache. Each individual node and group will be cached separately. Make sure that in most cases it will require saving of the whole canvas which may lead to significant memory usage. So it is recommended to set the cache size to a reasonable value.

Functions§

render
Renders a tree onto the pixmap.
render_node
Renders a node onto the pixmap.