TextWidget::SetFont
Defined in:
Sets the font used by a text widget.
C4Widgets.h
Prototype
void SetFont(const char *font);
void SetFont(const char *font, float em);
Parameters
font |
The name of the font to assign to the text widget. This can be nullptr .
|
em |
The em size of the font, in pixels. |
Description
The SetFont
function sets the font used by a text widget. If the font
parameter is not nullptr
, then the specified font resource is loaded (if necessary) and used by the text widget. If the font
parameter is nullptr
, then any font already in use by the text widget is released. (A text widget is not rendered if no font is assigned to it.)
See Also