pub struct TextStyle {
pub family: String,
pub size: f64,
pub weight: f64,
pub italic: bool,
pub line_height: f64,
pub letter_spacing: f64,
pub align: Align,
pub max_width: Option<f64>,
}Expand description
How text is laid out.
Fields§
§family: String§size: f64Font size in pixels.
weight: f64100..=900.
italic: boolItalic style.
line_height: f64Multiple of the font size.
letter_spacing: f64Extra space between letters, in pixels.
align: AlignAlignment of lines.
max_width: Option<f64>Wrap width; None means no wrapping.
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