Web SDKv1.0.0

FontRegistry.getDefinition()

One entry of the catalog, by id.
methodCatalogsince 1.0.0

Signature

getDefinition(id: string): FontDefinition | undefined

Parameters

ParameterTypeDescription
idstringThe font's id.

Returns

FontDefinition | undefined undefined when no font has that id.

Example

TypeScript
const brand = fonts.getDefinition('brand');

More in FontRegistry