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
Builder method used to set the font size of the style.
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
impl<C> !RefUnwindSafe for FontTextStyleBuilder<C>
impl<C> !Send for FontTextStyleBuilder<C>
impl<C> !Sync for FontTextStyleBuilder<C>
impl<C> Unpin for FontTextStyleBuilder<C> where
C: Unpin,
impl<C> UnwindSafe for FontTextStyleBuilder<C> where
C: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
Casts the value.
Casts the value.