Crate krilla_svg

Crate krilla_svg 

Source
Expand description

An extension to krilla that allows rendering SVG files to a PDF file.

It is based on usvg and passes nearly the whole resvg test suite. See the examples directory for an example on how to use this crate in combination with krilla to convert SVG files to PDF.

Structs§

SvgSettings
Settings that should be applied when converting a SVG.

Traits§

SurfaceExt
An extension trait for the Surface struct that allows you to draw SVGs onto a surface.

Functions§

render_svg_glyph
Render an SVG glyph from an OpenType font into a surface. You can plug this method into the render_svg_glyph_fn field of SerializeSettings in krilla..