wb_set_font

bool wb_set_font (int control [, int font [, bool redraw]])

Sets the font of control. font is a unique integer value returned by wb_create_font(). If font is zero or not given, the most recently created font is used. If font is a negative number, it means the system default font.

Returns TRUE on success or FALSE if an error occurs.

Tip

To check the system font name and size, call wb_get_system_info() using ("systemfont") as the info parameter.

Example

// Create a font, and use it to change the look of a Label control
$font = wb_create_font("Arial", 14, BLACK, FTA_BOLD);
wb_set_font($label, $font);

See also

wb_create_font
wb_get_system_info
Control functions