Search the docs

Find a guide, global, type or member

TypeContentcontent.luau

ImageDef

A font image: a picture drawn inside text, a HUD image, or, with glyphs, a HUD font. The texture's width and height must divide by the grid's columns and rows.

Fields

imageDef.height: number#

Drawn height.

imageDef.texture: string?#

PNG under assets/textures/; .png may be left off. under assets/textures/, default "font/<id>.png"

imageDef.ascent: number?#

How far above the baseline it sits. required for a text image

imageDef.grid: { rows: number, cols: number }?#

Cuts the texture into equal cells; default one cell.

imageDef.hud: boolean?#

Makes it a HUD image rather than a text image.

imageDef.glyphs: { string }?#

The characters of each grid cell, one string per row. one string per grid row; makes a HUD font

imageDef.space: number?#

Width of a space in the font. required with glyphs