# Font

Class · category: User Interface

Source: https://github.com/playcanvas/engine/blob/970d89f6d3bc6667f4e1f88153abd6e7e82ed52c/src/framework/font/font.js#L13

Represents the resource of a font asset.

## Constructors

### constructor

```ts
new Font(textures: Texture[], data: any)
```

Create a new Font instance.

**Parameters**

- `textures` ([`Texture`](https://api.playcanvas.com/engine/classes/Texture.md)`[]`): The font textures.
- `data` (`any`): The font data.

## Properties

### intensity

```ts
intensity: number
```

The font intensity.

### textures

```ts
textures: Texture[]
```

The font textures.

## Methods

### destroy

```ts
destroy(): void
```

Frees the GPU textures owned by the font and removes them from the resource loader cache.
Called automatically when the owning font asset is unloaded (see [Asset#unload](https://api.playcanvas.com/engine/classes/Asset.md#unload)).
