Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Is it possible to change Font weight?
Is it possible to change Font weight? [message #441440] Mon, 16 August 2004 06:41 Go to next message
Asim Ullah is currently offline Asim Ullah
Messages: 24
Registered: July 2009
Junior Member
Anybody know if it's possible to change the weight of a
Font beyond normal (SWT.NORMAL) and bold (SWT.BOLD)?

I'd like to be able to get lighter and darker weights of Fonts.
Re: Is it possible to change Font weight? [message #441511 is a reply to message #441440] Mon, 16 August 2004 12:04 Go to previous message
Benjamin Pasero is currently offline Benjamin Pasero
Messages: 337
Registered: July 2009
Senior Member
Changing more than that will make your application use
classes which are platform dependant. Have a look at
the FontData class, which for example for windows uses
the LOGFONT class to set properties to the font. Its possible
to change options in there but they wont work on other
OS than windows (they wont even compile there).

> Anybody know if it's possible to change the weight of a
> Font beyond normal (SWT.NORMAL) and bold (SWT.BOLD)?

> I'd like to be able to get lighter and darker weights of Fonts.
Previous Topic:Table, continu text on next line of row
Next Topic:KeyListeners and pressing two keys at the same time
Goto Forum:
  


Current Time: Mon Jul 28 10:32:19 EDT 2014

Powered by FUDForum. Page generated in 0.03695 seconds