Lua:createFont

From Cheat Engine
Revision as of 19:22, 23 June 2026 by Leunsel (talk | contribs) (Initial page creation.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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[edit]

Parameter Type Description
None This function does not take parameters.

Returns[edit]

Font — A new font object.

Examples[edit]

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

See Also[edit]

Main Pages