pub enum FontWeight {
Thin,
Light,
Regular,
Medium,
Semibold,
Bold,
Black,
}Expand description
Font weight steps available to the portable font descriptor.
Variants§
Thin
Thinnest stroke.
Light
Light stroke.
Regular
Regular weight (the default).
Medium
Medium weight.
Semibold
Semibold weight.
Bold
Bold weight.
Black
Heaviest stroke.
Implementations§
Trait Implementations§
Source§impl Clone for FontWeight
impl Clone for FontWeight
impl Copy for FontWeight
Source§impl Debug for FontWeight
impl Debug for FontWeight
Source§impl Default for FontWeight
impl Default for FontWeight
impl Eq for FontWeight
Source§impl Hash for FontWeight
impl Hash for FontWeight
Source§impl PartialEq for FontWeight
impl PartialEq for FontWeight
impl StructuralPartialEq for FontWeight
Auto Trait Implementations§
impl Forget for FontWeight
impl Freeze for FontWeight
impl Move for FontWeight
impl RefUnwindSafe for FontWeight
impl Send for FontWeight
impl Sync for FontWeight
impl Unpin for FontWeight
impl UnsafeUnpin for FontWeight
impl UnwindSafe for FontWeight
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