Font Antialiasing + AWT

Hi all,
dumb question follows…

how do I antialias the font in awt? Is it even possible without extending each component and whatnot?

Thanks

DP

if it is an instance of Graphics2D use set rendering hint:

screenGraphic.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);

mick

EDIT: screenGraphic here is the Graphics2d object

Sorry, i should have been clearer. This is for components (i.e. buttons, textfields, labels). Not for drawing using J2D.

DP

Well, that’s not that easy then… you need a look and feel then.

Fortunatelly the work has been already done:
http://smoothmetal.sourceforge.net/

thanks, that did the trick.

DP