Enum pango::Weight [−][src]
#[non_exhaustive] pub enum Weight { Thin, Ultralight, Light, Semilight, Book, Normal, Medium, Semibold, Bold, Ultrabold, Heavy, Ultraheavy, // some variants omitted }
Expand description
An enumeration specifying the weight (boldness) of a font. This is a numerical value ranging from 100 to 1000, but there are some predefined values:
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
the thin weight (= 100; Since: 1.24)
the ultralight weight (= 200)
the light weight (= 300)
the semilight weight (= 350; Since: 1.36.7)
the book weight (= 380; Since: 1.24)
the default weight (= 400)
the normal weight (= 500; Since: 1.24)
the semibold weight (= 600)
the bold weight (= 700)
the ultrabold weight (= 800)
the heavy weight (= 900)
the ultraheavy weight (= 1000; Since: 1.24)
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
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
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for Weight
impl UnwindSafe for Weight
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.