summaryrefslogtreecommitdiff
path: root/legacy/evas
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2011-08-01 10:45:42 +0000
committerTom Hacohen <tom@stosb.com>2011-08-01 10:45:42 +0000
commit9145913cdc5ed02b470f9279637042eea0c6884f (patch)
tree779d2c9fa670e87e31d2b91a32560a842257236d /legacy/evas
parent2661895aec6a07930f98f9de9f894b632c41a762 (diff)
Evas textblock: Use the set language with liblinebreak if known.
SVN revision: 61945
Diffstat (limited to 'legacy/evas')
-rw-r--r--legacy/evas/src/lib/canvas/evas_object_textblock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c
index 9d6ee29a3b..5d82405097 100644
--- a/legacy/evas/src/lib/canvas/evas_object_textblock.c
+++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c
@@ -3687,6 +3687,9 @@ _layout_par(Ctxt *c)
3687 /* Only relevant in those cases */ 3687 /* Only relevant in those cases */
3688 if (it->format->wrap_word || it->format->wrap_mixed) 3688 if (it->format->wrap_word || it->format->wrap_mixed)
3689 { 3689 {
3690 const char *lang;
3691 lang = (it->format->font.fdesc) ?
3692 it->format->font.fdesc->lang : "";
3690 size_t len = 3693 size_t len =
3691 eina_ustrbuf_length_get( 3694 eina_ustrbuf_length_get(
3692 it->text_node->unicode); 3695 it->text_node->unicode);
@@ -3694,8 +3697,7 @@ _layout_par(Ctxt *c)
3694 set_linebreaks_utf32((const utf32_t *) 3697 set_linebreaks_utf32((const utf32_t *)
3695 eina_ustrbuf_string_get( 3698 eina_ustrbuf_string_get(
3696 it->text_node->unicode), 3699 it->text_node->unicode),
3697 len, "", line_breaks); 3700 len, lang, line_breaks);
3698 /* FIXME: "" should be text_props language */
3699 } 3701 }
3700 } 3702 }
3701#endif 3703#endif