Skip to main content



      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 15:15 Go to next message
Eclipse UserFriend
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 01:27 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: [SWT-JFace] how to change the default font? [message #314016 is a reply to message #314015] Sat, 31 March 2007 04:28 Go to previous message
Eclipse UserFriend
> 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 Jul 07 01:33:46 EDT 2025

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

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

Back to the top