FontRegistry.getDefinition()
One entry of the catalog, by id.
methodCatalogsince 1.0.0
Signature
getDefinition(id: string): FontDefinition | undefined
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | string | The font's id. |
Returns
FontDefinition | undefined undefined when no font has that id.
Example
TypeScript
const brand = fonts.getDefinition('brand');