summary refs log tree commit diff
path: root/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'font.c')
-rw-r--r--font.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/font.c b/font.c
index 8e1476e..90ffe24 100644
--- a/font.c
+++ b/font.c
@@ -18,6 +18,24 @@
 
 #include "calmwm.h"
 
+int
+font_ascent(struct screen_ctx *sc)
+{
+	return (sc->font->ascent);
+}
+
+int
+font_descent(struct screen_ctx *sc)
+{
+	return (sc->font->descent);
+}
+
+u_int
+font_height(struct screen_ctx *sc)
+{
+	return (sc->fontheight);
+}
+
 void
 font_init(struct screen_ctx *sc)
 {