Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » [SWT-JFace] how to change the default font?
[SWT-JFace] how to change the default font? [message #314006] Fri, 30 March 2007 19:15 Go to next message
Diego Guidi is currently offline Diego GuidiFriend
Messages: 20
Registered: July 2009
Junior Member
I've using SWT-JFace for my app, and i'm unable to find a way to set the
font that my application could use as default font.
As default i think that SWT uses "tahoma-9", but i do specify for each
label/button the font to use? I think that specifying a font in a parent
composite, all elements child of this composite would inherit the font of
the parent, but this not seems to be the behaviour of SWT... any resource or
suggestion for this?
Thanks ;)
Re: [SWT-JFace] how to change the default font? [message #314015 is a reply to message #314006] Sat, 31 March 2007 05:27 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
Messages: 555
Registered: July 2009
Senior Member
Diego Guidi wrote:

> I've using SWT-JFace for my app, and i'm unable to find a way to set the
> font that my application could use as default font.
> As default i think that SWT uses "tahoma-9", but i do specify for each
> label/button the font to use? I think that specifying a font in a parent
> composite, all elements child of this composite would inherit the font of
> the parent, but this not seems to be the behaviour of SWT... any resource or
> suggestion for this?

I think SWT does not any special settings for font. It just keeps
current one, that was set by OS. You can write small recursive function
that iterates over full controls tree and modifies font for each control.

--
SY, Konstantin.


Konstantin Scheglov,
Google, Inc.
Re: [SWT-JFace] how to change the default font? [message #314016 is a reply to message #314015] Sat, 31 March 2007 08:28 Go to previous message
Diego Guidi is currently offline Diego GuidiFriend
Messages: 20
Registered: July 2009
Junior Member
> I think SWT does not any special settings for font. It just keeps
> current one, that was set by OS. You can write small recursive function
> that iterates over full controls tree and modifies font for each control.

Ok thanks, i try :)
Previous Topic:[Databinding] Using RCP- A Simple Snippet?
Next Topic:Re: not getting IFile
Goto Forum:
  


Current Time: Mon Dec 30 17:27:05 GMT 2024

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

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

Back to the top