Create the pango context in clutter_set_font_flags

if it wasn't already. Allows honoring CLUTTER_FONT_MIPMAPPING.

http://bugzilla.openedhand.com/show_bug.cgi?id=2161

Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
Johan Bilien 2010-06-08 15:22:29 -04:00 committed by Emmanuele Bassi
parent 30296a3307
commit 5929468599

View File

@ -2889,7 +2889,9 @@ clutter_set_font_flags (ClutterFontFlags flags)
backend = clutter_get_default_backend (); backend = clutter_get_default_backend ();
if (CLUTTER_CONTEXT ()->font_map) if (CLUTTER_CONTEXT ()->font_map == NULL)
_clutter_context_create_pango_context (CLUTTER_CONTEXT ());
cogl_pango_font_map_set_use_mipmapping (CLUTTER_CONTEXT ()->font_map, cogl_pango_font_map_set_use_mipmapping (CLUTTER_CONTEXT ()->font_map,
(flags (flags
& CLUTTER_FONT_MIPMAPPING) != 0); & CLUTTER_FONT_MIPMAPPING) != 0);