Cairo.cairo_set_font_options(data.cairo, options);
if (OS.GTK_VERSION < OS.VERSION(2, 8, 0)) { Cairo.cairo_set_font_options(data.cairo, options); } else { if (data.context == 0) createLayout(); OS.pango_cairo_context_set_font_options(data.context, options); }
public void setTextAntialias(int antialias) {    if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	if (data.cairo == 0 && antialias == SWT.DEFAULT) return;	int mode = 0;	switch (antialias) {		case SWT.DEFAULT: mode = Cairo.CAIRO_ANTIALIAS_DEFAULT; break;		case SWT.OFF: mode = Cairo.CAIRO_ANTIALIAS_NONE; break;		case SWT.ON: mode = Cairo.CAIRO_ANTIALIAS_GRAY;            break;		default:			SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}    initCairo();    int /*long*/ options = Cairo.cairo_font_options_create();    Cairo.cairo_font_options_set_antialias(options, mode);    Cairo.cairo_set_font_options(data.cairo, options);    Cairo.cairo_font_options_destroy(options);}