honour rc file config option for drop shadows with new shadow code
_display, _xftfont, (XftChar8 *) string.c_str(),
string.size(), &info);
- return info.xOff + (_shadow ? 1 : 0);
+ return info.xOff + (_shadow ? _offset : 0);
}
#endif // XFT
#ifdef XFT
if (_xftfont)
- return _xftfont->height + (_shadow ? 1 : 0);
+ return _xftfont->height + (_shadow ? _offset : 0);
#endif // XFT
if (i18n.multibyte())
BFont *b = new BFont(blackbox->getXDisplay(), this, family, i, bold,
- italic, dropShadow, offset, tint, resource.aa_fonts);
+ italic, dropShadow && resource.shadow_fonts, offset,
+ tint, resource.aa_fonts);
if (b->valid())
return b;
else