Microsoft SDK for Java

FontX Class Constructors

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)

FontX()

Creates a nondescript font (12-point Dialog).

Syntax

public FontX();

FontX(String name, int style, int size)

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).

Syntax

public FontX(String name, int style, int size);

Parameters

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.

FontX(String name, int style, int size, boolean bEmbed)

Creates a new font with the specified name, style, and point size; specifies whether the font is embedded.

Syntax

public FontX(String name, int style, int size, boolean bEmbed);

Parameters

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.

FontX(String name, int style, int size, int xFlags)

Creates an extended font.

Syntax

public FontX(String name, int style, int size, int xFlags);

Parameters

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:

EMBEDDED
UNDERLINE
STRIKEOUT
OUTLINE


© 1999 Microsoft Corporation. All rights reserved. Terms of use.