Struct font_kit::properties::Properties [−][src]
Expand description
Properties that specify which font in a family to use: e.g. style, weight, and stretchiness.
This object supports a method chaining style for idiomatic initialization; e.g.
println!("{:?}", Properties::new().style(Style::Italic));
Fields
style: Style
The font style, as defined in CSS.
weight: Weight
The font weight, as defined in CSS.
stretch: Stretch
The font stretchiness, as defined in CSS.
Implementations
Initializes a property set to its default values: normal style, normal weight, and normal stretchiness.
Sets the value of the style property and returns this property set for method chaining.
Sets the value of the weight property and returns this property set for method chaining.
Sets the value of the stretch property and returns this property set for method chaining.
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
Blanket Implementations
Mutably borrows from an owned value. Read more