GC.setFont

Sets the font which will be used by the receiver to draw and measure text to the argument. If the argument is null, then a default font appropriate for the platform will be used instead.

@param font the new font for the receiver, or null to indicate a default font

@exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT - if the font has been disposed</li> </ul> @exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul>

class GC
void
setFont

Meta