| Summary: | Combo default size too small with certain fonts | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Curtis d'Entremont <curtispd> | ||||
| Component: | SWT | Assignee: | Steve Northover <snorthov> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | eclipse.felipe, fuse, harish.nanjundappa, hollisc, hoy | ||||
| Version: | 3.0.1 | ||||||
| Target Milestone: | 3.1 RC1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Curtis d'Entremont
Created attachment 19280 [details]
screenshot
Can you confirm that this is still failing in the 3.1 stream? I seem to remember fixing something in this area. Better, can you provide a snippet that fails under 3.0.1? Thanks.
Try the following, it will work fine, but switch to MS UI Gothic font (you
might have to install some asian language packs), and the last a is partially
truncated. I also tried using m5a, and got the same result.
---------
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class Test {
public static void main (String [] args) {
Display display = new Display ();
Shell shell = new Shell(display);
shell.setLayout(new GridLayout());
Combo c = new Combo(shell, SWT.READ_ONLY);
c.add("aaa");
c.select(0);
shell.open ();
while (!shell.isDisposed ()) {
if (!display.readAndDispatch ()) display.sleep ();
}
display.dispose ();
}
}
FH, can you try this on your machine? *** Bug 63646 has been marked as a duplicate of this bug. *** fixed in head > 20050408 *** Bug 75003 has been marked as a duplicate of this bug. *** Verified in I20050420-1200. Closing bug. *** Bug 96091 has been marked as a duplicate of this bug. *** *** Bug 39463 has been marked as a duplicate of this bug. *** *** Bug 131263 has been marked as a duplicate of this bug. *** |