Skip to content

loadHTMLTextStyle

loadHTMLTextStyle(family, style, variants): Promise<HTMLTextStyle>

Loads an HTML text style.

Parameters

family: string

The font family.

style: Partial<HTMLTextStyle>

The style to load.

variants: HTMLTextVariant

The variants of the style.

Returns

Promise<HTMLTextStyle>

  • The loaded text style.

Source

src/utils/HTMLTextStyleManager.ts:104