|
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 Messages: 1636 Registered: July 2009 |
Senior Member |
|
|
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" <charlie_surface@yahoo.com> wrote in message
news:cp72gt$9pr$1@www.eclipse.org...
> 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()?
>
> thanks,
> Charlie
|
|
|
Powered by
FUDForum. Page generated in 0.04496 seconds