diff options
author | rathnor <rathnor> | 2004-08-29 08:33:13 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-08-29 08:33:13 (GMT) |
commit | 97ef84da598aed61a6cb57a62796f302043181e8 (patch) | |
tree | fd68f9ef6703322537eca3743c3217b281d6ce7c /src/FbTk/XftFontImp.cc | |
parent | 8a59b9b4541490badaf3e1a0503b4ca5f0105c8f (diff) | |
download | fluxbox-97ef84da598aed61a6cb57a62796f302043181e8.zip fluxbox-97ef84da598aed61a6cb57a62796f302043181e8.tar.bz2 |
a few random fixes
Diffstat (limited to 'src/FbTk/XftFontImp.cc')
-rw-r--r-- | src/FbTk/XftFontImp.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/FbTk/XftFontImp.cc b/src/FbTk/XftFontImp.cc index c698238..c2f1dc8 100644 --- a/src/FbTk/XftFontImp.cc +++ b/src/FbTk/XftFontImp.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | //$Id: XftFontImp.cc,v 1.3 2004/08/10 11:57:35 fluxgen Exp $ | 22 | //$Id: XftFontImp.cc,v 1.4 2004/08/29 08:33:13 rathnor Exp $ |
23 | 23 | ||
24 | #include "XftFontImp.hh" | 24 | #include "XftFontImp.hh" |
25 | #include "App.hh" | 25 | #include "App.hh" |
@@ -157,7 +157,10 @@ unsigned int XftFontImp::textWidth(const char * const text, unsigned int len) co | |||
157 | unsigned int XftFontImp::height() const { | 157 | unsigned int XftFontImp::height() const { |
158 | if (m_xftfont == 0) | 158 | if (m_xftfont == 0) |
159 | return 0; | 159 | return 0; |
160 | return m_xftfont->height; | 160 | return m_xftfont->height; |
161 | //m_xftfont->ascent + m_xftfont->descent; | ||
162 | // curiously, fonts seem to have a smaller height, but the "height" | ||
163 | // is specified within the actual font, so it must be right, right? | ||
161 | } | 164 | } |
162 | 165 | ||
163 | }; // end namespace FbTk | 166 | }; // end namespace FbTk |