Constructs a new font given a device, a font name,
the height of the desired font in points, and a font
style.
<p>
You must dispose the font when it is no longer required.
</p>
@param device the device to create the font on
@param name the name of the font (must not be null)
@param height the font height in points
@param style a bit or combination of NORMAL, BOLD, ITALIC
@exception IllegalArgumentException <ul>
<li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
<li>ERROR_NULL_ARGUMENT - if the name argument is null</li>
<li>ERROR_INVALID_ARGUMENT - if the height is negative</li>
</ul>
@exception SWTError <ul>
<li>ERROR_NO_HANDLES - if a font could not be created from the given arguments</li>
</ul>
Constructs a new font given a device, a font name, the height of the desired font in points, and a font style. <p> You must dispose the font when it is no longer required. </p>
@param device the device to create the font on @param name the name of the font (must not be null) @param height the font height in points @param style a bit or combination of NORMAL, BOLD, ITALIC
@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li> <li>ERROR_NULL_ARGUMENT - if the name argument is null</li> <li>ERROR_INVALID_ARGUMENT - if the height is negative</li> </ul> @exception SWTError <ul> <li>ERROR_NO_HANDLES - if a font could not be created from the given arguments</li> </ul>