pub struct TextStyle {
pub font_name: String,
pub font_style: FontStyle,
pub font_size: u16,
pub font_color: Color,
pub justification: TextJustify,
}Expand description
The font and alignment used to draw text with text.
Fields§
§font_name: StringPath to the TrueType font file.
font_style: FontStyleFont style (normal, bold, italic, …)
font_size: u16Font size in points.
font_color: ColorText color.
justification: TextJustifyHorizontal justification.
Implementations§
Trait Implementations§
impl StructuralPartialEq for TextStyle
Auto Trait Implementations§
impl Freeze for TextStyle
impl RefUnwindSafe for TextStyle
impl Send for TextStyle
impl Sync for TextStyle
impl Unpin for TextStyle
impl UnsafeUnpin for TextStyle
impl UnwindSafe for TextStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more