# Interface: BitmapFontOptions

Defined in: [bitmap-font.ts:3](https://github.com/debuffjp/debuff/blob/8c63a41ceef99b44f44b783b35121cc928cd37d7/packages/spryte/src/bitmap-font.ts#L3)

## Properties

### chars

> **chars**: `string`

Defined in: [bitmap-font.ts:7](https://github.com/debuffjp/debuff/blob/8c63a41ceef99b44f44b783b35121cc928cd37d7/packages/spryte/src/bitmap-font.ts#L7)

The characters the frames hold, in order.

***

### fallback?

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

Defined in: [bitmap-font.ts:20](https://github.com/debuffjp/debuff/blob/8c63a41ceef99b44f44b783b35121cc928cd37d7/packages/spryte/src/bitmap-font.ts#L20)

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

***

### frames

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

Defined in: [bitmap-font.ts:5](https://github.com/debuffjp/debuff/blob/8c63a41ceef99b44f44b783b35121cc928cd37d7/packages/spryte/src/bitmap-font.ts#L5)

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: [bitmap-font.ts:18](https://github.com/debuffjp/debuff/blob/8c63a41ceef99b44f44b783b35121cc928cd37d7/packages/spryte/src/bitmap-font.ts#L18)

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

***

### spaceWidth?

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

Defined in: [bitmap-font.ts:16](https://github.com/debuffjp/debuff/blob/8c63a41ceef99b44f44b783b35121cc928cd37d7/packages/spryte/src/bitmap-font.ts#L16)

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

***

### spacing?

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

Defined in: [bitmap-font.ts:14](https://github.com/debuffjp/debuff/blob/8c63a41ceef99b44f44b783b35121cc928cd37d7/packages/spryte/src/bitmap-font.ts#L14)

Pixels between glyphs. Default 1.

***

### widths?

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

Defined in: [bitmap-font.ts:12](https://github.com/debuffjp/debuff/blob/8c63a41ceef99b44f44b783b35121cc928cd37d7/packages/spryte/src/bitmap-font.ts#L12)

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.
