# Interface: BitmapFontOptions

Defined in: spryte/dist/bitmap-font.d.ts:2

## Properties

### chars

> **chars**: `string`

Defined in: spryte/dist/bitmap-font.d.ts:6

The characters the frames hold, in order.

***

### fallback?

> `optional` **fallback?**: `string`

Defined in: spryte/dist/bitmap-font.d.ts:19

Drawn for characters the font lacks. Default "?" if present, else nothing.

***

### frames

> **frames**: readonly [`Frame`](Frame.md)[]

Defined in: spryte/dist/bitmap-font.d.ts:4

One frame per glyph, in the order of `chars`: usually `assets.frames("font")` from a `font@WxH.png` grid.

***

### lineHeight?

> `optional` **lineHeight?**: `number`

Defined in: spryte/dist/bitmap-font.d.ts:17

Pixels from one line's top to the next. Default the cell height + 1.

***

### spaceWidth?

> `optional` **spaceWidth?**: `number`

Defined in: spryte/dist/bitmap-font.d.ts:15

Advance for a space (and any glyph that measures empty). Default a third of the cell height, rounded.

***

### spacing?

> `optional` **spacing?**: `number`

Defined in: spryte/dist/bitmap-font.d.ts:13

Pixels between glyphs. Default 1.

***

### widths?

> `optional` **widths?**: `number` \| readonly `number`[]

Defined in: spryte/dist/bitmap-font.d.ts:11

Advance per glyph in pixels. Default: measured from each glyph's rightmost opaque column, so a
grid drawn in Aseprite becomes a proportional font. Pass a number for a monospaced font.
