# FontRegistry.registerCustomFontUrl()

```ts
registerCustomFontUrl(font: CustomFont & { ttfUrl: string }): void
```

Adds a font fetched from `ttfUrl` on first use.

- Kind: method
- Since: 1.0.0

| Parameter | Type | Description |
| --- | --- | --- |
| `font` | `CustomFont & { ttfUrl: string }` | `{ id, displayName, ttfUrl, category?, cssFallback? }` — the same bag as a [fonts.customFonts](https://kernstra.com/docs/web-sdk/config/fonts/customfonts) entry. `category` defaults to `'sans-serif'`. |

Returns `void`

```ts
fonts.registerCustomFontUrl({ id: 'brand', displayName: 'Brand Sans', ttfUrl: '/fonts/brand.ttf' });
```

Part of [FontRegistry](https://kernstra.com/docs/web-sdk/api/fontregistry) in the Kernstra Web SDK 1.0.0 API reference.

Web page: https://kernstra.com/docs/web-sdk/api/fontregistry/registercustomfonturl
