aboutsummaryrefslogtreecommitdiff
path: root/src/Font.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-10-19 14:01:05 (GMT)
committerfluxgen <fluxgen>2002-10-19 14:01:05 (GMT)
commit1b6e3c1750aa199719a6165276ae858c1b89096e (patch)
treee4ad2b3a1f3cf66929c6b2eb081301ef8b6a8582 /src/Font.cc
parent28b84d6fc03587ffacfcc575323e9113ae172be3 (diff)
downloadfluxbox-1b6e3c1750aa199719a6165276ae858c1b89096e.zip
fluxbox-1b6e3c1750aa199719a6165276ae858c1b89096e.tar.bz2
ascent and descent
Diffstat (limited to 'src/Font.cc')
-rw-r--r--src/Font.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Font.cc b/src/Font.cc
index 7023c88..c86bb84 100644
--- a/src/Font.cc
+++ b/src/Font.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: Font.cc,v 1.15 2002/10/16 23:22:45 fluxgen Exp $ 22//$Id: Font.cc,v 1.16 2002/10/19 14:01:05 fluxgen Exp $
23 23
24 24
25#include "Font.hh" 25#include "Font.hh"
@@ -152,6 +152,13 @@ unsigned int Font::height() const {
152 return m_fontimp->height(); 152 return m_fontimp->height();
153} 153}
154 154
155int Font::ascent() const {
156 return m_fontimp->ascent();
157}
158
159int Font::descent() const {
160 return m_fontimp->descent();
161}
155void Font::drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const { 162void Font::drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const {
156 if (text == 0 || len == 0) 163 if (text == 0 || len == 0)
157 return; 164 return;