pub struct TypeStyle {
pub size: f32,
pub line_height: f32,
pub weight: Weight,
pub letter_spacing: f32,
}Expand description
One step of the type scale.
Fields§
§size: f32Font size in logical pixels.
line_height: f32Line height in logical pixels.
weight: WeightFont weight.
letter_spacing: f32Extra space between characters in logical pixels; may be negative.
Trait Implementations§
impl Copy for TypeStyle
impl StructuralPartialEq for TypeStyle
Auto Trait Implementations§
impl Freeze for TypeStyle
impl RefUnwindSafe for TypeStyle
impl Send for TypeStyle
impl Sync for TypeStyle
impl Unpin for TypeStyle
impl UnsafeUnpin for TypeStyle
impl UnwindSafe for TypeStyle
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