Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » How to determine a system font
How to determine a system font [message #373407] Tue, 09 September 2003 22:04 Go to next message
Eclipse UserFriend
Originally posted by: MatthiasBecker.hamburg.de

Hi

can someone please tell me how to determine a system font? Like the font used
on a button, or, in my case, the font used by the os in the titel-bar.

Thank you
Re: How to determine a system font [message #373414 is a reply to message #373407] Tue, 09 September 2003 23:47 Go to previous messageGo to next message
Michael Xia is currently offline Michael XiaFriend
Messages: 119
Registered: July 2009
Senior Member
Hi Matthias,

Use Display.getCurrent().getSystemFont().

Michael


Matthias Becker wrote:

> Hi

> can someone please tell me how to determine a system font? Like the font
used
> on a button, or, in my case, the font used by the os in the titel-bar.

> Thank you
Re: How to determine a system font [message #373415 is a reply to message #373414] Wed, 10 September 2003 00:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: MatthiasBecker.hamburg.de

yun@rti.com (Michael Xia) wrote:
>Hi Matthias,
>
>Use Display.getCurrent().getSystemFont().
that was my first idea. But it seems you cant specify which font you want to
have. Like Titlebar, Face, ToolTip and so on...
Is there a way to get this?

Sincerele
Matt
Re: How to determine a system font [message #373416 is a reply to message #373414] Wed, 10 September 2003 00:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: MatthiasBecker.hamburg.de

yun@rti.com (Michael Xia) wrote:
>Hi Matthias,
>
>Use Display.getCurrent().getSystemFont().
that was my first idea. But it seems you cant specify which font you want to
have. Like Titlebar, Face, ToolTip and so on...
Is there a way to get this?

Sincerely
Matt
Re: How to determine a system font [message #442892 is a reply to message #373407] Tue, 14 September 2004 16:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: k.ruhl.etamax.de

Maybe the different getXXXFont methods of JFaceResources are something
for you.

Best regards,

Kai

Matthias Becker wrote:
> Hi
>
> can someone please tell me how to determine a system font? Like the font used
> on a button, or, in my case, the font used by the os in the titel-bar.
>
> Thank you
>
Re: How to determine a system font [message #442894 is a reply to message #442892] Tue, 14 September 2004 17:42 Go to previous message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
Display.getSystemFont()

> Maybe the different getXXXFont methods of JFaceResources are something
> for you.

> Best regards,

> Kai

> Matthias Becker wrote:
> > Hi
> >
> > can someone please tell me how to determine a system font? Like the font
used
> > on a button, or, in my case, the font used by the os in the titel-bar.
> >
> > Thank you
> >
Previous Topic:How to set focus to the first widget of a tabitem
Next Topic:Drawing text on a picture using GC
Goto Forum:
  


Current Time: Thu Apr 18 15:01:30 GMT 2024

Powered by FUDForum. Page generated in 0.01747 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top