1
0
Fork 0

Set the default language on the Pango context

When creating the Pango context we should also set the language
to be the default Pango language.
This commit is contained in:
Emmanuele Bassi 2009-11-30 16:15:19 +00:00
parent daeb3b2fec
commit 3cb974ee8b

View file

@ -583,6 +583,7 @@ update_pango_context (ClutterBackend *backend,
const cairo_font_options_t *font_options;
const gchar *font_name;
PangoDirection pango_dir;
PangoLanguage *lang;
gdouble resolution;
/* update the text direction */
@ -640,6 +641,7 @@ _clutter_context_create_pango_context (ClutterMainContext *self)
context = cogl_pango_font_map_create_context (self->font_map);
update_pango_context (self->backend, context);
pango_context_set_language (context, pango_language_get_default ());
return context;
}