void SetTextFont( String sTypeface, int nStyle <, int nSize <, int nColor>> )
String sTypeface
The desired typeface. If the requested typeface is not installed, the IMLPlus program will stop with an error.
int nStyle
A predefined constant specifying the desired style. The valid values are STYLE_REGULAR, STYLE_BOLD,
STYLE_ITALIC, and STYLE_BOLDITALIC.
int nSize
The desired point size (units of 1/72 inch). If you do not specify this parameter, the font retains the current size.
int nColor
A predefined constant specifying the desired color. The valid values are BLACK, BLUE, BROWN,
CHARCOAL, CREAM, CYAN, GOLD, GRAY, GREY, GREEN, LILAC, LIME, MAGENTA, MAROON, OLIVE, ORANGE, PINK,
PURPLE, RED, ROSE, SALMON, STEEL, TAN, VIOLET, WHITE, and YELLOW. If you do not specify this parameter, the font retains the
current color.
This method sets the font of subsequent textual output.
declare OutputDocument doc = OutputDocument.GetDefault(); doc.SetTextFont( "Times New Roman", STYLE_REGULAR, 14 ); print "This is in Times New Roman, regular, 14 point."; doc.SetTextFont( "Arial", STYLE_ITALIC, 14, BLUE ); print "This is in Arial, italic, 14 point, blue."; doc.SetTextDefaultFont(); print "This is in the default font.";