Release 1.6.1 29 June 2005 |
Developer's reference |
![]() |
Reference > N_XLS_FORMAT > of_set_font |
of_set_font() method
Specify the font.
Syntax
format.of_set_font ( fontname ) |
Parameters
Fontname | A 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' )
© 2003-2005 Desta, Ltd. All rights reserved. | SupportDesk |