Skip to main content

BitmapFont:add_glyph()

BitmapFont:add_glyph(param_table)
BitmapFont:add_glyph(code_point, bitmap)

This method adds a glyph correnspoinding to a code point.

Parameters

ParameterTypeDescription
param_tabletableThis parameter is in associative array table format, meaning it's specified by keys rather than parameter positions. See the Parameters Table section.
code_pointstringSpecifies the glyph to add and the corresponding Unicode code point using a Lua string of length 1.
For example, if you want to add a glyph for U+004D, specify 'M'.
bitmapBitmapBitmap that represents the glyph.

Parameters Table

KeyTypeDescription
code_pointstringSpecifies the glyph to add and the corresponding Unicode code point using a Lua string of length 1.
For example, if you want to add a glyph for U+004D, specify 'M'.
bitmapBitmapBitmap that represents the glyph.

Return Values

This method doesn't return any value.

See Also