]> Dogcows Code - chaz/openbox/blobdiff - src/Font.cc
use drop shadow height in the font height.
[chaz/openbox] / src / Font.cc
index e2649f10ae3e056ac7609e233cff365ef6e37b07..ea70933acffbb1630841784d799b552de7788b02 100644 (file)
@@ -331,7 +331,7 @@ unsigned int BFont::measureString(const string &string) const {
                     _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 @@ unsigned int BFont::height(void) const {
 
 #ifdef    XFT
   if (_xftfont)
-    return _xftfont->height + (_shadow ? 1 : 0);
+    return _xftfont->height + (_shadow ? _offset : 0);
 #endif // XFT
 
   if (i18n.multibyte())
This page took 0.025681 seconds and 4 git commands to generate.