Font.getHandle

Overview | Methods | Fields | This Package | All Packages

Font.getHandle

Retrieves the Win32 font handle (HFONT) for this object's underlying font.

Syntax

public int getHandle()

public int getHandle( Graphics gr )

Parameters

gr

A Graphics object to render the font against.

Return Value

Returns a handle to the font.

Remarks

If you pass a Graphics object instance to getHandle, the method uses the rendering dimensions of the Graphics object to retrieve the font handle.