Function: registerFontFamily()
ts
function registerFontFamily(family, faces, options?): () => void;Register several faces of one family at once (plan E8.3: fonts.register('Inter', { regular, bold, italic })). Each face goes through registerFont, so troika resolution and the metrics oracle's CSS FontFace registration both apply. Returns a function that unregisters every face registered by this call (faces replaced by a later registration are left alone).
Parameters
| Parameter | Type |
|---|---|
family | string |
faces | FontFamilyFaces |
options | RegisterFontOptions |
Returns
() => void