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.
ConstantsΒ§
FunctionsΒ§
- style_
at π - Returns the style at a location with the given
italicandslantvalues, starting from the fontβsdefaultstyle.