Documentation / @debuffjp/core / BitmapFontOptions
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?
optionalfallback?: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[]
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?
optionallineHeight?: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?
optionalspaceWidth?: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?
optionalspacing?:number
Defined in: spryte/dist/bitmap-font.d.ts:13
Pixels between glyphs. Default 1.
widths?
optionalwidths?:number| readonlynumber[]
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.