Skip to content

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 ​

ParameterType
faceRegisteredFontFace
optionsRegisterFontOptions

Returns ​

() => void

Released under the MIT License.