Skip to main content

subset_bytes

Function subset_bytes 

Source
pub fn subset_bytes(data: &[u8], ranges: &str) -> Result<Vec<u8>>
Expand description

Reduces raw font bytes to the glyphs reachable from ranges.

ยงErrors

Returns an error when the font or the ranges fail to parse, or when the subsetter rejects the font.