| Summary: | Toolbar item cut-off when using custom toolbar font | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [RT] Riena | Reporter: | Elias Volanakis <elias> | ||||
| Component: | Look And Feel | Assignee: | Elias Volanakis <elias> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | christian.campo | ||||
| Version: | unspecified | ||||||
| Target Milestone: | 3.0.0.M2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows Vista | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
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.
|
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)