[][src]Function nsvg::parse_str

pub fn parse_str(
    svg_str: &str,
    units: Units,
    dpi: f32
) -> Result<SvgImage, Error>

Loads SVG data from the given SVG text contents.

Arguments

  • svg_str - Text contents of the SVG you want to load
  • units - The length unit identifier, you probably just want nsvg::Units::Pixel
  • dpi - Probably just want 96.0.