pub fn svg_to_raster(
svg_str: &str,
width_px: u32,
height_px: u32,
) -> Result<Pixmap, RError>Expand description
Rasterize an SVG string into a pixel buffer.
Returns a tiny_skia::Pixmap of the given dimensions with the SVG
rendered onto a white background.