Struct owned_ttf_parser::OwnedFace[][src]

pub struct OwnedFace(_);
Expand description

An owned version of font Face.

Implementations

Creates an OwnedFace from owned data.

You can set index for font collections. For simple ttf fonts set index to 0.

Example

let owned_face = OwnedFace::from_vec(owned_font_data, 0).unwrap();

Trait Implementations

Convert to a Face reference.

Convert to a Face reference.

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.