gc.setFont (getFont (columnIndex)); width += gc.stringExtent (getText (columnIndex)).x + 2 * MARGIN_TEXT;
gc.setFont (getFont (columnIndex, false)); width += gc.stringExtent (getText (columnIndex, false)).x + 2 * MARGIN_TEXT;
int getPreferredWidth (int columnIndex) {	int width = 2 * parent.getCellPadding ();	if (columnIndex == 0 && (parent.style & SWT.CHECK) != 0) {		width += parent.checkboxBounds.width;		width += Table.MARGIN_IMAGE;	}	GC gc = new GC (parent);	gc.setFont (getFont (columnIndex));	width += gc.stringExtent (getText (columnIndex)).x + 2 * MARGIN_TEXT;	gc.dispose ();	if (columnIndex == 0) {		if (parent.col0ImageWidth > 0) {			width += parent.col0ImageWidth;			width += Table.MARGIN_IMAGE;		}	} else {		Image image = getImage (columnIndex);		if (image != null) {			width += image.getBounds ().width;			width += Table.MARGIN_IMAGE;		}	}	return width;}