bool set_font_name(string fontname);

Use this method to set the font name that must be currently selected by the font selection dialog. The parameter for this function will be a string similar to the result generated by get_font_name() , i.e. passing "Sans Bold 14" will set the font to be "Sans", of "Bold" type and size 14.

See also: get_font_name()