Constructs a new font given a device and font data
which describes the desired font's appearance.
<p>
You must dispose the font when it is no longer required.
</p>
@param device the device to create the font on
@param fd the FontData that describes the desired font (must not be null)
@exception IllegalArgumentException <ul>
<li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li>
<li>ERROR_NULL_ARGUMENT - if the fd argument is null</li>
</ul>
@exception SWTError <ul>
<li>ERROR_NO_HANDLES - if a font could not be created from the given font data</li>
</ul>
Constructs a new font given a device and font data which describes the desired font's appearance. <p> You must dispose the font when it is no longer required. </p>
@param device the device to create the font on @param fd the FontData that describes the desired font (must not be null)
@exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT - if device is null and there is no current device</li> <li>ERROR_NULL_ARGUMENT - if the fd argument is null</li> </ul> @exception SWTError <ul> <li>ERROR_NO_HANDLES - if a font could not be created from the given font data</li> </ul>