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

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]

THIN: Weight = Weight(100.0)

Thin weight (100), the thinnest value.

EXTRA_LIGHT: Weight = Weight(200.0)

Extra light weight (200).

LIGHT: Weight = Weight(300.0)

Light weight (300).

NORMAL: Weight = Weight(400.0)

Normal (400).

MEDIUM: Weight = Weight(500.0)

Medium weight (500, higher than normal).

SEMIBOLD: Weight = Weight(600.0)

Semibold weight (600).

BOLD: Weight = Weight(700.0)

Bold weight (700).

EXTRA_BOLD: Weight = Weight(800.0)

Extra-bold weight (800).

BLACK: Weight = Weight(900.0)

Black weight (900), the thickest value.

Trait Implementations

impl Clone for Weight
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Weight
[src]

impl Debug for Weight
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Weight
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Weight
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Default for Weight
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Weight

impl Sync for Weight