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: StyleThe font style, as defined in CSS.
weight: WeightThe font weight, as defined in CSS.
stretch: StretchThe 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 Propertiesimpl Send for Propertiesimpl Sync for Propertiesimpl Unpin for Propertiesimpl UnwindSafe for PropertiesBlanket Implementations
Mutably borrows from an owned value. Read more