if (isVisible && hasFocus ()) { int hFont = 0; if (font != null) hFont = font.handle; if (hFont == 0) hFont = defaultFont (); saveIMEFont (); setIMEFont (hFont); }
if (hasFocus ()) setIMEFont ();
public void setFont (Font font) {	checkWidget();	if (font != null && font.isDisposed ()) {		error (SWT.ERROR_INVALID_ARGUMENT);	}	this.font = font;	if (isVisible && hasFocus ()) {		int hFont = 0;		if (font != null) hFont = font.handle;		if (hFont == 0) hFont = defaultFont ();		saveIMEFont ();		setIMEFont (hFont);	}}