Community
Participate
Working Groups
When enabling custom toolbar Fonts: RienaDefaultTheme uncomment: lnf.putLnfResource(LnfKeyConstants.MENUBAR_FONT, getPrimaryFont()); lnf.putLnfResource(LnfKeyConstants.TOOLBAR_FONT, getPrimaryFont()); and public class FooTheme extends RienaDefaultTheme { protected FontLnfResource getPrimaryFont() { if (primaryFont == null) { final String name = "Arial"; //$NON-NLS-1$ final int height = 10; primaryFont = new FontLnfResource(name, height, SWT.NORMAL); } return primaryFont; } } the result is that the toolbar item is cut-off (see screenshot)
Created attachment 173599 [details] Screenshot
Resolved in HEAD
Note: apart from recomputing the size of all players as usual (see SWT Snippet150), one has to trigger a change of the text in the ToolItem (i.e. ti.setText("abc"), ti.setText(oldText)) to avoid a windows/SWT bug.