Struct embedded_font::FontTextStyleBuilder[][src]

pub struct FontTextStyleBuilder<C: PixelColor> { /* fields omitted */ }
Expand description

Text style builder for ttf and otf fonts.

Use this builder to create [MonoTextStyle]s for [Text].

Implementations

Creates a new text style builder.

Builder method used to set the font size of the style.

Enables underline using the text color.

Enables strikethrough using the text color.

Sets the text color.

Sets the background color.

Enables underline with a custom color.

Enables strikethrough with a custom color.

Builds the text style.

This method can only be called after a font was set by using the font method. All other settings are optional and they will be set to their default value if they are missing.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Casts the value.

Casts the value.

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.

Casts the value.

Casts the value.