Skip to content

loadAndAddHTMLTextStyle

loadAndAddHTMLTextStyle(id, family, style, variants): Promise<void>

Loads and adds an HTML text style.

Parameters

id: string | number

The ID of the style.

family: string

The font family.

style: Partial<HTMLTextStyle>

The style to load.

variants: HTMLTextVariant

The variants of the style.

Returns

Promise<void>

Source

src/utils/HTMLTextStyleManager.ts:115