Personal tools
From wiki.swiftlytilting.com
Jump to: navigation, search

WinBinder Manual/wb set font

Sets the font of control.

Contents

Syntax

bool wb_set_font (int control [, int font [, bool redraw]])
  • 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.

Tip - To check the system font name and size, call <winterpostwiki>wb_get_system_info</winterpostwiki>("systemfont").

Returns

Returns TRUE on success or FALSE if an error occurs.

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

Winbinder Projects