pub struct Library { /* private fields */ }

Implementations

This function is used to create a new FreeType library instance and add the default modules. It returns a struct encapsulating the freetype library. The library is correctly discarded when the struct is dropped.

Open a font file using its pathname. face_index should be 0 if there is only 1 font in the file.

Similar to new_face, but loads file data from a byte array in memory

Similar to new_face, but loads file data from a byte array in memory

Get the underlying library object

Trait Implementations

Executes the destructor for this type. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.