fontFaceAsset
fontFaceAsset(
url,family,options?):AssetHandle<FontFace>
Defined in: src/modules/asset-loader/asset-loader.ts:315
An AssetHandle that loads a web font into a FontFace for the given
family. Unless addToDocument is false, the loaded face is registered on
document.fonts so CSS can render with it immediately.
Parameters
Section titled “Parameters”string
family
Section titled “family”string
options?
Section titled “options?”FontFaceAssetOptions = {}
Returns
Section titled “Returns”AssetHandle<FontFace>