- /* get length of item->label rendered in the font */
- XftTextExtentsUtf8(dpy, dc.fonts[0], (XftChar8 *)item->label,
- item->labellen, &ext);
+ if (item->label)
+ textwidth = drawtext(NULL, NULL, 0, 0, item->h, item->label);
+ else
+ textwidth = 0;