The FontX Class contains the following constructors:
FontX()
FontX(String name, int style, int size)
FontX(String name, int style, int size, boolean bEmbed)
FontX(String name, int style, int size, int xFlags)
Creates a nondescript font (12-point Dialog).
public FontX();
Creates a new font with the specified name, style, and point size. This constructor is used to access system fonts on the Microsoft® Win32® platform not otherwise available in Java (for example, the "symbol" font).
public FontX(String name, int style, int size);
name | The name of the font face. |
style | The font style, which can be a combination of BOLD, ITALIC, and PLAIN. |
size | The point size of the font. |
Creates a new font with the specified name, style, and point size; specifies whether the font is embedded.
public FontX(String name, int style, int size, boolean bEmbed);
name | The name of the font face. |
style | The font style, which can be a combination of BOLD, ITALIC, and PLAIN. |
size | The point size of the font. |
bEmbed | Set to true if the font is embedded, false otherwise. |
Creates an extended font.
public FontX(String name, int style, int size, int xFlags);
name | The name of the font face. |
style | The font style, which can be a combination of BOLD, ITALIC, and PLAIN. |
size | The point size of the font. |
xFlags | An extended style, which can be one of the following values: |