Skip to content

addFont

Adds a built-in font.

Syntax

lua
Ham.addFont(fontIndex, size)

Parameters

NameTypeDescription
fontIndexintegerFont type: 1 = Rubik, 2 = Font Awesome, 3 = Consolas
sizenumberFont size in pixels

Returns

  • userdata|nil - Font handle or nil on failure

Example

lua
local font = Ham.addFont(1, 18)

See Also

Released under the ISC License.