← All built-ins / ui_font()

ui_font()

ui_font(...$args): int

Parameters

NameTypeDescription
$handleintcontrol handle
$sizeintfont size in points
$boldboolbold textoptional
$italicboolitalic textoptional
$familystringfont 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.

See also

ui_bg()ui_fg()