pub struct TypeStyle {
pub typeface: Typeface,
pub size: f32,
pub line_height: f32,
pub tracking: f32,
pub weight: u16,
}Expand description
Material type metrics in scale-independent units (sp).
Fields§
§typeface: TypefaceLogical typeface slot (Brand or Plain).
size: f32Font size in sp.
line_height: f32Line height in sp.
tracking: f32Letter spacing (tracking) in sp.
weight: u16Numeric font weight (100..=900).
Trait Implementations§
impl Copy for TypeStyle
impl StructuralPartialEq for TypeStyle
Auto Trait Implementations§
impl Forget for TypeStyle
impl Freeze for TypeStyle
impl Move 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