Evas textblock: Use the set language with liblinebreak if known.

SVN revision: 61945
This commit is contained in:
Tom Hacohen 2011-08-01 10:45:42 +00:00
parent 2661895aec
commit 9145913cdc
1 changed files with 4 additions and 2 deletions

View File

@ -3687,6 +3687,9 @@ _layout_par(Ctxt *c)
/* Only relevant in those cases */
if (it->format->wrap_word || it->format->wrap_mixed)
{
const char *lang;
lang = (it->format->font.fdesc) ?
it->format->font.fdesc->lang : "";
size_t len =
eina_ustrbuf_length_get(
it->text_node->unicode);
@ -3694,8 +3697,7 @@ _layout_par(Ctxt *c)
set_linebreaks_utf32((const utf32_t *)
eina_ustrbuf_string_get(
it->text_node->unicode),
len, "", line_breaks);
/* FIXME: "" should be text_props language */
len, lang, line_breaks);
}
}
#endif