[**ruviz**](../../README.md)

***

[ruviz](../../README.md) / [index](../README.md) / registerFont

# Function: registerFont()

> **registerFont**(`bytes`): `Promise`\<`void`\>

Defined in: [index.ts:1840](https://github.com/Ameyanagi/ruviz/blob/main/packages/ruviz-web/src/index.ts#L1840)

Register custom font bytes for browser-hosted text rendering.

## Parameters

### bytes

`ArrayLike`\<`number`\> \| `Uint8Array`\<`ArrayBufferLike`\>

## Returns

`Promise`\<`void`\>
