[][src]Struct fontdb::Weight

pub struct Weight(pub u16);

Specifies the weight of glyphs in the font, their degree of blackness or stroke thickness.

Implementations

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]

impl Copy for Weight[src]

impl Debug for Weight[src]

impl Default for Weight[src]

impl PartialEq<Weight> for Weight[src]

impl PartialOrd<Weight> for Weight[src]

impl StructuralPartialEq for Weight[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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, 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.