pub struct TextAttrs {
pub size: f32,
pub line_height: f32,
pub weight: f32,
pub letter_spacing: f32,
pub family: Option<String>,
}Expand description
Visual attributes of a piece of text.
Fields§
§size: f32Font size in logical pixels.
line_height: f32Line height in logical pixels.
weight: f32CSS weight (400 regular, 600 semibold).
letter_spacing: f32Extra space between characters in logical pixels; may be negative.
family: Option<String>Font family list in CSS syntax; defaults to the embedded Inter.
Trait Implementations§
impl StructuralPartialEq for TextAttrs
Auto Trait Implementations§
impl Freeze for TextAttrs
impl RefUnwindSafe for TextAttrs
impl Send for TextAttrs
impl Sync for TextAttrs
impl Unpin for TextAttrs
impl UnsafeUnpin for TextAttrs
impl UnwindSafe for TextAttrs
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