Lua:createFont

From Cheat Engine
Jump to navigation Jump to search

<> Reference

function createFont() : Font

Creates a Font object initialized from Cheat Engine's main window font.

Assign the returned object to a control's Font property or change its properties before assigning it.

Function Parameters

Parameter Type Description
None This function does not take parameters.

Returns

Font — A new font object.

Examples

local font = createFont()
font.Name = "Consolas"
font.Size = 12

See Also

Main Pages