Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » ExpandItem Text Size won't change on Linux(Text size will not change on linux in the ExpandItem)
ExpandItem Text Size won't change on Linux [message #810054] Wed, 29 February 2012 11:16
Bradley Holmberg is currently offline Bradley Holmberg
Messages: 1
Registered: February 2012
Junior Member
I have a ExpandBar that I add ExpandItems to dynamically. I set the font size in the ExpandBar to be a larger, bolder font which works fine on Windows but on Linux(both SLED and Ubuntu 11) shows up only as the default non-bold size 11ish font. I have tried using the resourcemanager as well as creating the font manually and so far no luck.

		Segoe10Bold = new Font(null,"Segoe UI",10,SWT.BOLD);
		Segoe11Normal = new Font(null,"Segoe UI",10,SWT.NORMAL);
		
		Composite container = new Composite(parent, SWT.NONE);	
		container.setLayout(new FormLayout());

                expandBar = new ExpandBar(container, SWT.BORDER | SWT.V_SCROLL);
		expandBar.setSpacing(10);
		expandBar.setFont(Segoe10Bold);
		FormData fd_expandBar = new FormData();
		expandBar.setLayoutData(fd_expandBar);

                xpndItem1 = new ExpandItem(expandBar, SWT.NONE);
		xpndItem1.setExpanded(true);
		xpndItem1.setText("File Connector");
		
		Composite compositeFile = new Composite(expandBar, SWT.NONE);
		xpndItem1.setControl(compositeFile);

Previous Topic:SWT.WRAP on Composite
Next Topic:How can I set text limit per byte size on Text widget?
Goto Forum:
  


Current Time: Wed Aug 20 08:52:51 EDT 2014

Powered by FUDForum. Page generated in 0.01472 seconds