Difference between revisions of "Lua:createFont"
Jump to navigation
Jump to search
(Initial page creation.) |
m (Added related function template.) |
||
| Line 21: | Line 21: | ||
===Examples=== | ===Examples=== | ||
| − | < | + | <syntaxhighlight lang="lua" line> |
local font = createFont() | local font = createFont() | ||
font.Name = "Consolas" | font.Name = "Consolas" | ||
font.Size = 12 | font.Size = 12 | ||
| − | </ | + | </syntaxhighlight> |
{{LuaSeeAlso}} | {{LuaSeeAlso}} | ||
| + | |||
| + | {{Creation}} | ||
Latest revision as of 23:50, 26 June 2026
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