Struct swash::Attributes [−][src]
pub struct Attributes(pub u32);
Expand description
Primary attributes for font classification: stretch, weight and style.
This struct is created by the attributes
method on FontRef
.
Implementations
Creates new font attributes from the specified stretch, weight and style.
Extracts the attributes from the specified font.
Returns true if the font has variations corresponding to primary attributes.
Returns true if the font has a variation for the stretch attribute.
Returns true if the font has a variation for the weight attribute.
Returns true if the font has a variation for the oblique style attribute.
Returns true if the font has a variation for the italic style attribute.
Returns a synthesis analysis based on the requested attributes with respect to this set of attributes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Attributes
impl Send for Attributes
impl Sync for Attributes
impl Unpin for Attributes
impl UnwindSafe for Attributes
Blanket Implementations
Mutably borrows from an owned value. Read more