This property holds the human-readable name of the font.
The unique identifier of the font.
The font family of the font.
Optional
fontThe default font style of the font.
The default font variant ID of the font.
The default font weight of the font.
An array of font variants available for the font.
Applies the font styles to a text shape.
The text shape to apply the font styles to.
Optional
variant: FontVariantOptional. The specific font variant to apply. If not provided, applies the default variant.
Applies the font styles to a text range within a text shape.
The text range to apply the font styles to.
Optional
variant: FontVariantOptional. The specific font variant to apply. If not provided, applies the default variant.
Represents a font in Penpot, which includes details about the font family, variants, and styling options. This interface provides properties and methods for describing and applying fonts within Penpot.