[ type ] Font

Description:

Font object used in most UI components, ListItem, TableColumn, Text shape and other text-rendering components.

Type: Object

Properties:

Name Type Description

[name]

string | FontFamily

Font family name (e.g., "sans-serif").

[size]

number

Font size in pixels.

[bold]

boolean

Whether the text is bold.

[italic]

boolean

Whether the text is italic.

[underlined]

boolean

Whether the text is underlined.

[strikethrough]

boolean

Whether the text has a strikethrough.

[direction]

string

Text direction: "ltr" or "rtl".

[kerning]

boolean

Enable or disable kerning.

[ligatures]

boolean

Enable or disable font ligatures.

[tracking]

number

Letter spacing adjustment: -1, 0 (default), or 1.

Also See: