[][src]Struct font_kit::properties::Weight

pub struct Weight(pub f32);

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 Copy for Weight[src]

impl Default for Weight[src]

impl Clone for Weight[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<Weight> for Weight[src]

impl PartialOrd<Weight> for Weight[src]

impl Debug for Weight[src]

Auto Trait Implementations

impl Sync for Weight

impl Unpin for Weight

impl Send for Weight

impl UnwindSafe for Weight

impl RefUnwindSafe for Weight

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]