pub struct Font {
pub units_per_em: usize,
pub ascender: isize,
pub descender: isize,
pub case: Box<dyn Case>,
}
Expand description
The number of units per em.
The ascender line relative to the base line.
The descender line relative to the base line.
The collection of glyphs.
Open a file containing a single font.
Read a file containing a single font.
The resulting type after dereferencing.
Dereferences the value.
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.