- GList *items
- = pango_itemize (context_,
- str.c_str (),
- 0, str.length (), attribute_list_,
- NULL);
+ /*
+ The text assigned to a PangoLayout is automatically divided
+ into sections and reordered according to the Unicode
+ Bidirectional Algorithm, if necessary.
+ */
+ PangoLayout *layout = pango_layout_new (context_);
+ pango_layout_set_text (layout, str.c_str (), -1);
+ GSList *lines = pango_layout_get_lines (layout);