use drop shadow height in the font height. honour rc file config option for drop shadows with new shadow code
Scott Moynes smoynes@nexus.carleton.ca
2 files changed,
4 insertions(+),
3 deletions(-)
M
src/Font.cc
→
src/Font.cc
@@ -331,7 +331,7 @@ #endif
_display, _xftfont, (XftChar8 *) string.c_str(), string.size(), &info); - return info.xOff + (_shadow ? 1 : 0); + return info.xOff + (_shadow ? _offset : 0); } #endif // XFT@@ -350,7 +350,7 @@ assert(_valid);
#ifdef XFT if (_xftfont) - return _xftfont->height + (_shadow ? 1 : 0); + return _xftfont->height + (_shadow ? _offset : 0); #endif // XFT if (i18n.multibyte())
M
src/Screen.cc
→
src/Screen.cc
@@ -2757,7 +2757,8 @@ }
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