Lua:createFont

From Cheat Engine
Revision as of 23:50, 26 June 2026 by Leunsel (talk | contribs) (Added related function template.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<> Lua API 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]

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

Main Pages

Core Lua documentation entry points

Lua
Script Engine

Basic Visual Controls

Text / Input Controls

Value / Progress Controls

Graphics / Resources

Strings / Streams

Timers / Hotkeys

Scanning / Found Lists

Other Creation Helpers