Skip to main content

sfnt

Function sfnt 

Source
pub fn sfnt(data: &[u8]) -> Option<Cow<'_, [u8]>>
Expand description

Unpacks a WOFF or WOFF 2 file into the plain sfnt it wraps; other data is returned as is. From WOFF 2, tables stored with a transform (the packed glyf/loca and hmtx) are left out: metadata needs only the names, maxp, cmap and the other plain tables.