Crate roarsvg

Crate roarsvg 

Source
Expand description

roarsvg is a library to deserialize lyon Paths into SVG.

It provides a struct LyonWriter that accepts a push operation to append Paths and a write operation to write all those paths to an SVG using usvg.

Structs§

Color
A 8-bit RGB color.
Fill
A fill style.
LyonWriter
Translate from lyon_path::Path to usvg::Path on push and write an SVG to a file.
NoText
Marker struct for LyonWriter that indicates that no Text node has been added so far. It disallows push_text and does not convert Text to SvgPath upon write.
Stroke
A stroke style.
SvgTransform
An affine transformation matrix.

Enums§

DominantBaseline
A dominant baseline property.
LyonTranslationError
NodeKind
Node’s kind.

Traits§

FontProvider
Marker trait that changes the behavior of write for LyonWriter and allows for writing text to the SVG.

Functions§

create_png_node
Utility function to create usvg::Image elements.
create_text_node
Utility function to create Text elements.
fill
Utility function to build a Fill.
stroke
Utility function to build a Stroke.