Is there a way to specify the font size as a float/double instead of integer. I am creating my font as:
Font font = new Font(shell.getDisplay(), "CormorantGaramond",14, SWT.NULL);
where 14 is the font size in points. But the constructor only accept an integer, which I find odd when the font size is specified in points and not pixel. Is there a way to specify font size as a non integer value. (It is a ttf font, if that matter).
float
deriveFont(float size)
then convert AWT to SWT. In Eclipse 3.0, APIs have been introduced for integrating AWT and Swing with SWT. but AWT font is restricted to be converted to anint
before the conversion. -eclipse.org/articles/…. I am posting this just so you don't go down this dead end. – Bark