Microsoft SDK for Java

getFont

The getFont method of the FontX Class contains the following signatures:

getFont(String face, int style, int size, int flags)
getFont(String face, Vector v, int size)

getFont(String face, int style, int size, int flags)

Retrieves a font if an exact match is made, given the font face, style, size, and any specified flags.

Syntax

public static Font getFont(String face, int style, int size, int flags);

Return Value

Returns the Font that is the exact match to the given parameters.

Parameters

face The font face.
style The font style.
size The font size, in points.
flags One or more of the following font flags:

EMBEDDED
STRIKEOUT
UNDERLINE
OUTLINE


getFont(String face, Vector v, int size)

Retrieves a font if an exact match is made, given the font face, vector, and size.

Syntax

public static Font getFont(String face, Vector v, int size);

Return Value

Returns the Font that is the exact match to the given parameters.

Parameters

face The font face.
v A list of style names.
size The font size, in points.

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