Lua:createFont

From Cheat Engine
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

Parameter Type Description
None This function does not take parameters.

Returns

Font — A new font object.

Examples

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