+ l = strlen(text->str); /* number of bytes */
+
+#else
+ pango_layout_set_text(pl, text->str, -1);
+ pango_layout_set_font_description(pl, t->font->pango_font_description);
+ pango_layout_set_single_paragraph_mode(pl, TRUE);
+ pango_layout_set_width(pl, w * PANGO_SCALE);
+ pango_layout_set_ellipsize(pl, PANGO_ELLIPSIZE_MIDDLE);
+ /* This doesn't work with layout_line() of course */
+/* pango_layout_set_alignment(pl, (PangoAlignment)(t->justify)); */
+ pango_layout_get_pixel_extents(pl, NULL, &rect);
+ mw = rect.width;
+
+#endif /* USE_PANGO */
+