[][src]Enum polyhorn_ios::font::FontWeight

pub enum FontWeight {
    Number(f32),
    Thin,
    ExtraLight,
    Light,
    Normal,
    Medium,
    SemiBold,
    Bold,
    ExtraBold,
    Black,
}

Controls the thickness of outlines rendered to a text element.

Variants

Number(f32)

Accepts a custom normalized font weight scaled between 0 and 1.0

Thin

This corresponds to the CSS font weight with the same name and has a numerical value of 100.

ExtraLight

This corresponds to the CSS font weight with the same name and has a numerical value of 200. This weight is also known as ultra light.

Light

This corresponds to the CSS font weight with the same name and has a numerical value of 300.

Normal

This corresponds to the CSS font weight with the same name and has a numerical value of 400. This is the default font weight.

Medium

This corresponds to the CSS font weight with the same name and has a numerical value of 500.

SemiBold

This corresponds to the CSS font weight with the same name and has a numerical value of 600. This weight is also known as demi bold.

Bold

This corresponds to the CSS font weight with the same name and has a numerical value of 700.

ExtraBold

This corresponds to the CSS font weight with the same name and has a numerical value of 800. This weight is also known as ultra bold.

Black

This corresponds to the CSS font weight with the same name and has a numerical value of 900. This weight is also known as heavy.

Trait Implementations

impl Clone for FontWeight[src]

impl Copy for FontWeight[src]

impl Debug for FontWeight[src]

impl Default for FontWeight[src]

impl FromStr for FontWeight[src]

type Err = ParseError

The associated error which can be returned from parsing.

impl PartialEq<FontWeight> for FontWeight[src]

impl StructuralPartialEq for FontWeight[src]

impl ToTokens for FontWeight[src]

Auto Trait Implementations

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

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

impl<T> AsAny for T where
    T: Any
[src]

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

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

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

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

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

impl<T> IsDefault for T where
    T: PartialEq<T> + Default + Copy
[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.