Function: registerFont()
ts
function registerFont(face, options?): () => void;Register a font file for a family/weight/style. Registering the same family/weight/style again replaces the URL. Returns a function that unregisters the face.
Parameters
| Parameter | Type |
|---|---|
face | RegisteredFontFace |
options | RegisterFontOptions |
Returns
() => void