Evas textgrid: Use default language according to locale

Summary:
Use default language according to locale.
It's the same as the recent changes on Evas Text, Textblock.
@feature

Test Plan: N/A

Reviewers: herdsman, raster, tasn

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3642
This commit is contained in:
Youngbok Shin 2016-02-03 09:34:32 +00:00 committed by Tom Hacohen
parent 6721a7f1d6
commit 757f842992
1 changed files with 4 additions and 0 deletions

View File

@ -1157,6 +1157,10 @@ _evas_textgrid_efl_text_properties_font_set(Eo *eo_obj, Evas_Textgrid_Data *o, c
evas_object_async_block(obj);
font_description = evas_font_desc_new();
/* Set default language according to locale. */
eina_stringshare_replace(&(font_description->lang),
evas_font_lang_normalize("auto"));
evas_font_name_parse(font_description, font_name);
if (o->cur.font_description &&
!evas_font_desc_cmp(font_description, o->cur.font_description) &&