Sets the default font which will be used by the receiver
to draw and measure text. If the
argument is null, then a default font appropriate
for the platform will be used instead. Note that a text
style can override the default font.
@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>
Sets the default font which will be used by the receiver to draw and measure text. If the argument is null, then a default font appropriate for the platform will be used instead. Note that a text style can override the default font.
@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>