[−][src]Struct font_kit::properties::Weight
The degree of blackness or stroke thickness of a font. This value ranges from 100.0 to 900.0, with 400.0 as normal.
Methods
impl Weight
[src]
pub const THIN: Weight
[src]
Thin weight (100), the thinnest value.
pub const EXTRA_LIGHT: Weight
[src]
Extra light weight (200).
pub const LIGHT: Weight
[src]
Light weight (300).
pub const NORMAL: Weight
[src]
Normal (400).
pub const MEDIUM: Weight
[src]
Medium weight (500, higher than normal).
pub const SEMIBOLD: Weight
[src]
Semibold weight (600).
pub const BOLD: Weight
[src]
Bold weight (700).
pub const EXTRA_BOLD: Weight
[src]
Extra-bold weight (800).
pub const BLACK: Weight
[src]
Black weight (900), the thickest value.
Trait Implementations
impl Clone for Weight
[src]
fn clone(&self) -> Weight
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Weight
[src]
impl PartialOrd<Weight> for Weight
[src]
fn partial_cmp(&self, other: &Weight) -> Option<Ordering>
[src]
fn lt(&self, other: &Weight) -> bool
[src]
fn le(&self, other: &Weight) -> bool
[src]
fn gt(&self, other: &Weight) -> bool
[src]
fn ge(&self, other: &Weight) -> bool
[src]
impl PartialEq<Weight> for Weight
[src]
impl Copy for Weight
[src]
impl Debug for Weight
[src]
Auto Trait Implementations
impl Unpin for Weight
impl Sync for Weight
impl Send for Weight
impl UnwindSafe for Weight
impl RefUnwindSafe for Weight
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,