Developer's reference PB2XLS for PowerBuilder

Reference > N_XLS_FORMAT > of_set_font

of_set_font() method

Specify the font.

Syntax

format.of_set_font ( fontname )

Parameters

FontnameA string or a blob (unicode string) whose value is the name of the font

Return value

Integer. Returns 1 if it succeeds and -1 if an error occurs. If argument value is NULL, of_create returns NULL.

Description

Default font is Arial.
Excel can only display fonts that are installed on the system that it is running on. Therefore it is best to use the fonts that come as standard such as 'Arial', 'Times New Roman' and 'Courier New'.

Examples

format.of_set_font ( 'Times New Roman' )