mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
daeb3b2fec
commit
3cb974ee8b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user