BufSize = 8192, /* default buffer size */
FontCacheSize = 16, /* Maximum number of fonts allowed in the font cache */
EventTimeout = 100, /* Maximum blocking wait time for events */
+ LineSpacing = 2, /* Number of pixels for spacing between lines */
};
/* choose the font to use for xft */
XGlyphInfo extent;
XftTextExtentsUtf8(X.display, font, (const FcChar8*)"0", 1, &extent);
int w = extent.xOff;
- int h = (font->height - font->descent);
+ int h = (font->height - font->descent) + LineSpacing;
xftcolor(&bgc, Config->palette[bg]);
size_t width = specs[nspecs-1].x - specs[0].x + w;
- x11_draw_rect(bg, specs[0].x, specs[0].y - h, width, font->height);
+ x11_draw_rect(bg, specs[0].x, specs[0].y - h, width, font->height + LineSpacing);
XftColorFree(X.display, X.visual, X.colormap, &bgc);
}
xftcolor(&fgc, Config->palette[fg]);