setDefaultFont() |
Top Previous Next |
setDefaultFont( fontFace, size [, fgColor] [, flags])
The setDefaultFont() function was introduced in EFS2 and is designed to work in conjunction with the drawText() function. It allows you to set a default font to be used in all drawing operations.
Parameters
Text Flags
Usage
//set the default font to Arial 14-pt, use magenta a the color and apply //bold and underline attributes setDefaultFont( "Arial", 14, Color.magenta, Text.BOLD | Text.UNDERLINE );
//set the default font to Courier New 10-pt setDefaultFont( "Courier New", 10 );
|