Skip to main content

foundation-utils.loadfontfaces

Home > @genesislcap/foundation-utils > loadFontFaces

loadFontFaces() function

Loads font faces by inserting a style element with the specified font face rules into the document.

Signature:

loadFontFaces: (fontFaceRules: string, styleElementId: string) => void

Parameters

Parameter

Type

Description

fontFaceRules

string

The CSS rules for the font faces.

styleElementId

string

The ID of the style element to insert into the document.

Returns:

void