On Thu, 2009-03-12 at 10:37 +0530, Rajith Kalluraya wrote:

> Does clutter have support for enabling/disabling of antialiasing of
> text in ClutterLabel?

Clutter uses Pango-Cairo to render text and you can change the font
options it uses by calling clutter_backend_set_font_options. By default
antialiasing is CAIRO_ANTIALIAS_DEFAULT which I think is the same as
CAIRO_ANTIALIAS_GRAY for the image surface backend (which Clutter uses).

You can tweak the options in both 0.8 and 0.9 like this:

cairo_font_options_t *font_options
  = clutter_backend_get_font_options (clutter_get_default_backend ());

font_options = cairo_font_options_copy (font_options);
cairo_font_options_set_hint_style (font_options, CAIRO_HINT_STYLE_FULL);
cairo_font_options_set_antialias (font_options, CAIRO_ANTIALIAS_GRAY);

clutter_backend_set_font_options (clutter_get_default_backend (),
                                  font_options);

cairo_font_options_destroy (font_options);

- Neil

-- 
To unsubscribe send a mail to [email protected]

Reply via email to