pub fn subset(
font: &[u8],
characters: impl IntoIterator<Item = char>,
) -> Result<Vec<u8>, SubsettingError>Expand description
A convenient method to create a subset of a font over given characters.
The returned font can be used everywhere where the original font was used, as long as the string contains only characters from the given set. In particular, the font includes all relevant ligatures.