← All built-ins / ui_font()
ui_font()
ui_font(...$args): int
Parameters
| Name | Type | Description |
|---|---|---|
| $handle | int | control handle |
| $size | int | font size in points |
| $bold | bool | bold textoptional |
| $italic | bool | italic textoptional |
| $family | string | font family nameoptional |
Return value
Sets the control's font.
Example
echo "ui_font($title, 16, true);";
ui_font($title, 16, true);
This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.