GNOME Bugzilla – Attachment #260039: text: Consider text direction according to the content of the text for bug #705779
- 2 * TEXT_PADDING;
text_width = logical_rect.width / PANGO_SCALE;
rtl = clutter_actor_get_text_direction (self) == CLUTTER_TEXT_DIRECTION_RTL;
rtl = pango_find_base_dir (clutter_text_buffer_get_text (priv->buffer),
clutter_text_buffer_get_length (priv->buffer)) == PANGO_DIRECTION_RTL;
if (actor_width < text_width)
{