| |
18. 13. 1. 创建字体 |
|
Constructor | Description | public Font(Device device, FontData fd) | Creates a font using the specified device and font data. | public Font(Device device, FontData[] fds) | Creates a font using the specified device and array of font data. | public Font(Device device, String name, int height, int style) | Creates a font using the specified device, name, height (in points), and style. Style constants are SWT.NORMAL, SWT.BOLD, and SWT.ITALIC. |
|
Font Styles |
Style | Description | SWT.NORMAL | Creates a normal font | SWT.BOLD | Creates a bold font | SWT.ITALIC | Creates an italic font |
|
|