## wb_create_font

int wb_create_font (string name, int height [, int color [, int flags]])

Creates a new font. name is the font name, height is its height in points (not pixels), and color is a RGB color value. flags can be a combination of the following values:

`FTA_NORMAL
FTA_REGULAR
FTA_BOLD
FTA_ITALIC
FTA_UNDERLINE
FTA_STRIKEOUT`

Constants of `FTA_NORMAL` and `FTA_REGULAR` mean the same thing and are defined as zero.

The function returns an integer value that is the font identifier.

After use, the font must be destroyed by a call to wb_destroy_font() to prevent resource leaks.

NOTE: The color parameter is not implemented yet.

# 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_set_font
wb_destroy_font
wb_draw_text
System functions