|Re: Can a Font have a height of zero? [message #447103 is a reply to message #447073]
||Wed, 08 December 2004 15:49
| Steve Northover
Registered: July 2009
Font creation never fails (I forget which platform forced this behavior ...|
was it Motif?). Anyways, if you pass garbage to a Font constructor, you
will get the closest match for the platform.
"Charlie Surface" <email@example.com> wrote in message
> On SWT for Win32, it is valid to create a Font with zero height (new
> Font("Courier",0,0)). The strange thing is that the resulting Font can
> be set on a Label, and is large enough to read. It is also large enough
> to be read when drawn by a GC.
> Can I expect similar behavior on all SWT platforms? If so, can someone
> explain a good reason for them? If a developer needs to find the
> smallest available font, can't they just use Device.getFontList()?
Powered by FUDForum
. Page generated in 0.05472 seconds