pub struct FontAttrs {
pub weight: u16,
pub italic: bool,
pub stretch: f32,
}Expand description
FontAttrs describes a face’s position within a font family.
Fields§
§weight: u16weight is the CSS font weight, conventionally from 100 to 900.
italic: boolitalic indicates whether the face uses an italic or oblique style.
stretch: f32stretch is the CSS font-width percentage, where 100 is normal.
Trait Implementations§
impl Copy for FontAttrs
impl StructuralPartialEq for FontAttrs
Auto Trait Implementations§
impl Freeze for FontAttrs
impl RefUnwindSafe for FontAttrs
impl Send for FontAttrs
impl Sync for FontAttrs
impl Unpin for FontAttrs
impl UnsafeUnpin for FontAttrs
impl UnwindSafe for FontAttrs
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