getFontStyleItems

See source code

Returns the current list of font style items for the style panel, derived from the theme's font palette.

Fonts are ordered by their position in DefaultFontStyle, followed by any additional theme fonts in their object key order.

function getFontStyleItems(theme: TLTheme): StyleValuesForUi<string>;

Parameters

NameDescription

theme

TLTheme;

Returns

StyleValuesForUi<string>;
Prev
getFontFamily
Next
getHitShapeOnCanvasPointerDown