Readonly
idThe unique identifier of the library element.
Readonly
libraryThe unique identifier of the library to which the element belongs.
The name of the library element.
The path of the library element.
The unique identifier of the font used in the typography element.
The font family of the typography element.
The unique identifier of the font variant used in the typography element.
The font size of the typography element.
The font weight of the typography element.
Optional
fontThe font style of the typography element.
The line height of the typography element.
The letter spacing of the typography element.
Optional
textThe text transform applied to the typography element.
Applies the typography styles to a text shape.
The text shape to apply the typography styles to.
Applies the typography styles to a range of text within a text shape.
Represents a range of text within a Text shape. This interface provides properties for styling and formatting text ranges.
Sets the font and optionally its variant for the typography element.
The font to set.
Optional
variant: FontVariantThe font variant to set (optional).
If we know the namespace of an external plugin, this is the way to get their data.
The namespace for the shared data.
The key for which to retrieve the data.
Returns the shared data associated with the key as a string.
Represents a typography element from a library in Penpot. This interface extends
LibraryElement
and includes properties specific to typography elements.