Skip to main content


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 10:41 Go to next message
Asim Ullah is currently offline Asim UllahFriend
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 16:04 Go to previous message
Benjamin Pasero is currently offline Benjamin PaseroFriend
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: Fri Apr 26 05:51:35 GMT 2024

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

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

Back to the top