Struct cosmic_text::Weight
source · pub struct Weight(pub u16);
Expand description
Specifies the weight of glyphs in the font, their degree of blackness or stroke thickness.
Tuple Fields§
§0: u16
Implementations§
source§impl Weight
impl Weight
sourcepub const EXTRA_LIGHT: Weight = Weight(200)
pub const EXTRA_LIGHT: Weight = Weight(200)
Extra light weight (200).
sourcepub const EXTRA_BOLD: Weight = Weight(800)
pub const EXTRA_BOLD: Weight = Weight(800)
Extra-bold weight (800).
Trait Implementations§
source§impl Ord for Weight
impl Ord for Weight
source§impl PartialOrd<Weight> for Weight
impl PartialOrd<Weight> for Weight
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more