instance

Function instance 

Source
pub fn instance(
    provider: &impl FontTableProvider,
    user_instance: &[Fixed],
) -> Result<(Vec<u8>, OwnedTuple), VariationError>
Expand description

Create a static instance of a variable font according to the variation instance instance.

TrueType fonts with a gvar table as well as CFF2 fonts are supported. If the font is variable but does not contain a gvar or CFF2 table VariationError::NotImplemented is returned.