pub struct FontBuilder<'a> { /* private fields */ }
Expand description

Builds a font struct

Parameters: - size: Size of the font. The font mapper transforms this value into device units and matches it against the cell height of the available fonts. - size_absolute: Size of the font. The font mapper transforms this value into device units and matches its absolute value against the character height of the available fonts. - weight: Weight of the font. A value betweem 0 and 1000. 0 use the system default, 100 is very thin, 1000 is very bold. - family: Family name of the font (ex: Arial). Can be None to use the system default.

Implementations

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.