Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

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