# Puff

interface in `@dioramajs/text/inflate`

```ts
import type { Puff } from '@dioramajs/text/inflate'
```

The puffed letters of a raster: the distance to their edge and how round each part is.

```ts
interface Puff
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `data` | `Uint16Array` | Per texel, half floats: the signed distance to the glyph edge in CSS px (positive inside), the height of the round profile at depth 1 in CSS px, the turn of the nearest letter, and that height as a share of the profile's radius (0 at the edge, 1 on the ridge). |
| `em` | `number` | Largest font size, px. |
| `frame` | `readonly [number, number, number, number]` | The field in box px: x, y, width, height. |
| `height` | `number` |  |
| `width` | `number` |  |

Defined in [packages/text/src/inflate.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/text/src/inflate.ts#L102).
