Struct swash::Stretch [−][src]
pub struct Stretch(_);
Expand description
Visual width of a font– a relative change from the normal aspect ratio.
Implementations
Creates a stretch attribute from a percentage. The value will be clamped at half percentage increments between 50% and 200%, inclusive.
Converts the stretch value to a percentage.
Returns true if the stretch is condensed (less than normal).
Returns true if the stretch is expanded (greater than normal).
Parses the stretch from a CSS style keyword or a percentage value.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Stretch
impl UnwindSafe for Stretch
Blanket Implementations
Mutably borrows from an owned value. Read more