|
|
|
Re: Combo with font facenames [message #445134 is a reply to message #445054] |
Tue, 26 October 2004 14:48 |
Eclipse User |
|
|
|
Originally posted by: patrick.sirr.embarcadero.com
Thanks! I think this will do it. I was searching for a solution under the
fontregistry. Didn't know the Display had this functionality. To answer
your previous question I'm trying to make the changing of fonts more
efficient for my users. Similar to MS Word where the font details are
directly accessible from a combo.
"Robert Bacs" <boby@zerosoft.ro> wrote in message
news:clit50$tl9$1@eclipse.org...
> Hi,
>
> Or you could use the following code:
>
> ...
> FontData[] fontData = display.getFontList(null, true);
> for (int i = 0; i < fontData.length; i++){
> // call fontData[i].getName() to get the font name
> }
>
> FontData[] fontData = display.getFontList(null, false);
> for (int i = 0; i < fontData.length; i++){
> // call fontData[i].getName() to get the font name
> }
>
> Regards,
> Boby
>
>
> "Patrick" <psirr@earthlink.net> wrote in message
> news:clbr81$26c$1@eclipse.org...
> > Any ideas on how to create a font selection combo box? I'd like to
> > enumerate the font face names and place them into a combo, but I can't
> > figure out how to do this in swt. Any ideas?
> >
> >
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02610 seconds