import org.eclipse.swt.*; import org.eclipse.swt.custom.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class SWT548140_HieroglyphChangesSpaceSize { public static void main(String[] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.setLayout(new FillLayout()); final StyledText styledText = new StyledText(shell, SWT.MULTI | SWT.BORDER); styledText.setFont(new Font(display, new FontData("Courier New", 9, SWT.NORMAL))); styledText.setText(" 1234567890\n" + " \u618C\n"); shell.setSize(400, 300); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } }