Skip to main content

Module attribute

Module attribute 

Source
Expand description

The width, style and weight of a font.

Font::default_attributes returns the attributes of the default instance. Attributes::from_variations and the named instance constructors return the attributes at other locations. They take the same user space values as InstanceBuilder.

Structs§

Attributes
The width, style and weight of a font at one location.
Weight
How heavy a design is, typically from 1.0 to 1000.0.
Width
How wide a design is relative to its normal width, typically from 0.5 to 2.0.

Enums§

Style
Whether a design is upright, italic or oblique.