Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Change fonts in SWT?
Change fonts in SWT? [message #445937] Mon, 15 November 2004 11:50
Tommy is currently offline TommyFriend
Messages: 11
Registered: July 2009
Junior Member
Hi,
I want to use a bigger text font than the default one for my PDA
application.
I tried to change the size of the font with:
int fontHeight = lblOrdId.getFont().getFontData()[0].getHeight();
lblOrdId.getFont().getFontData()[0].setHeight(fontHeight*2);
but this does not work :-( And if it did work it would be a pain to
manually change fonts for all widgets...
So, there must be another way - but how?

Thanks in advance!
Tommy
Previous Topic:New Widgets
Next Topic:Java2D equiv. for SWT?
Goto Forum:
  


Current Time: Wed Oct 28 14:25:32 GMT 2020

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

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

Back to the top