summaryrefslogtreecommitdiffstats
path: root/src/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/font.c')
-rw-r--r--src/font.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/font.c b/src/font.c
index f110a23..c198943 100644
--- a/src/font.c
+++ b/src/font.c
@@ -54,3 +54,15 @@ font_find(const char *name)
}
return (struct font *) fonts[0];
}
+
+int
+font_get_width(struct font *font)
+{
+ return font->desc.width;
+}
+
+int
+font_get_height(struct font *font)
+{
+ return font->desc.height;
+}