Microsoft SDK for Java

Graphics.setFont

Associates a font with the Graphics object.

Syntax

public final void setFont( Font font )

Parameters

font

A Font object that describes the font to associate with this Graphics object.

Remarks

All text drawn within the Graphics object's clipping region is drawn using this font.

See Also   getFont

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