Experimental

An early preview: docs, the API and the dashboard may change or break.

Report a problem
Typecontent.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.ascent: number?
#

how far above the baseline it sits; required for a text image

imageDef.glyphs: { string }?
#

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

imageDef.grid: ImageGrid?
#

cuts the texture into equal cells; default one cell

imageDef.height: number
#

drawn height

imageDef.hud: boolean?
#

makes it a HUD image rather than a text image

imageDef.space: number?
#

width of a space in the font; required with glyphs

imageDef.texture: string?
#

PNG under assets/textures/, or a vanilla texture such as "minecraft:item/apple"; .png optional; default "font/<id>.png"