pub struct TextStyle {
pub family: FontFamily,
pub size: f32,
pub weight: FontWeight,
pub line_height: f32,
pub letter_spacing: f32,
}Expand description
A complete description of how a piece of text should be rendered.
Fields§
§family: FontFamily§size: f32Font size in logical pixels.
weight: FontWeight§line_height: f32Line height as a multiplier of size. Defaults to 1.4.
letter_spacing: f32Additional letter spacing in logical pixels. Defaults to 0.0.
Implementations§
Trait Implementations§
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