Skip to main content

parse_path

Function parse_path 

Source
pub fn parse_path(d: &str) -> Result<Vec<Contour>, IconPathError>
Expand description

Parse SVG path data into closed contours.

A subpath is closed whether or not it ends in Z: icon paths are fills, and an unclosed fill contour is closed implicitly by every rasteriser anyway.