ReadonlynameThis property holds the human-readable name of the font.
ReadonlyfontThe unique identifier of the font.
ReadonlyfontThe font family of the font.
Optional ReadonlyfontThe default font style of the font.
ReadonlyfontThe default font variant ID of the font.
ReadonlyfontThe default font weight of the font.
ReadonlyvariantsAn 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.
Optionalvariant: 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.
Optionalvariant: 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.