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 cairo_font_options_t *font_options;
|
||||||
const gchar *font_name;
|
const gchar *font_name;
|
||||||
PangoDirection pango_dir;
|
PangoDirection pango_dir;
|
||||||
|
PangoLanguage *lang;
|
||||||
gdouble resolution;
|
gdouble resolution;
|
||||||
|
|
||||||
/* update the text direction */
|
/* 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);
|
context = cogl_pango_font_map_create_context (self->font_map);
|
||||||
update_pango_context (self->backend, context);
|
update_pango_context (self->backend, context);
|
||||||
|
pango_context_set_language (context, pango_language_get_default ());
|
||||||
|
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user