parse_length

Function parse_length 

Source
pub fn parse_length(value: &str, dpi: i32) -> Result<i32, Error>
Expand description

Parse a length. Handles unit suffixes

use esvg::convert::parse_length;
assert_eq!(parse_length("27in", 96).unwrap(), 2592);