Struct font::Font

source ·
pub struct Font {
    pub units_per_em: usize,
    pub ascender: isize,
    pub descender: isize,
    pub case: Box<dyn Case>,
}
Expand description

A font.

Fields§

§units_per_em: usize

The number of units per em.

§ascender: isize

The ascender line relative to the base line.

§descender: isize

The descender line relative to the base line.

§case: Box<dyn Case>

The collection of glyphs.

Implementations§

Open a file containing a single font.

Read a file containing a single font.

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.

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.