Struct font_kit::properties::Properties[][src]

pub struct Properties {
    pub style: Style,
    pub weight: Weight,
    pub stretch: Stretch,
}

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

The font style, as defined in CSS.

The font weight, as defined in CSS.

The font stretchiness, as defined in CSS.

Methods

impl Properties
[src]

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

impl Clone for Properties
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Properties
[src]

impl Debug for Properties
[src]

Formats the value using the given formatter. Read more

impl Default for Properties
[src]

Returns the "default value" for a type. Read more

impl PartialEq for Properties
[src]

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 Send for Properties

impl Sync for Properties