- Documentation
- Client functions
- guiSetFont
Function
guiSetFont
Sets a control's font: a built-in name ("default-normal", "default-small", "default-bold-small", "default-bold", "clear-normal", "sa-header", "sa-gothic") or a handle from guiCreateFont.
Syntax
bool guiSetFont(element guiElement, mixed font)Arguments
guiElementelement- The control.
fontmixed- A name or a font.
Returns
true on success.
Example
local title = guiCreateLabel(20, 20, 400, 40, "Grove Street", false)
guiSetFont(title, "sa-header")