aboutsummaryrefslogtreecommitdiff
path: root/libgui
diff options
context:
space:
mode:
authorMarvin Borner2020-09-20 21:25:24 +0200
committerMarvin Borner2020-09-20 21:25:24 +0200
commite3b45a6c47868b3002dacbfdedef957b800f308e (patch)
tree7abca0b71d4a6e432ac4ace282e88bfe8a8ffbd5 /libgui
parentb6c8b7df4344d45ced50bea24cbb4de3ef229330 (diff)
Some Terminus thingies
Diffstat (limited to 'libgui')
-rw-r--r--libgui/gui.c10
-rw-r--r--libgui/inc/gui.h3
2 files changed, 13 insertions, 0 deletions
diff --git a/libgui/gui.c b/libgui/gui.c
index 1ff202d..3bbf3d2 100644
--- a/libgui/gui.c
+++ b/libgui/gui.c
@@ -167,6 +167,16 @@ void gui_border(struct window *win, u32 c, u32 width)
gui_redraw();
}
+int gui_font_height()
+{
+ return font->height;
+}
+
+int gui_font_width()
+{
+ return font->width;
+}
+
void gui_init(char *font_path)
{
font = psf_parse(read(font_path));
diff --git a/libgui/inc/gui.h b/libgui/inc/gui.h
index da548fc..4186d43 100644
--- a/libgui/inc/gui.h
+++ b/libgui/inc/gui.h
@@ -76,6 +76,9 @@ void gui_fill(struct window *win, u32 c);
void gui_border(struct window *win, u32 c, u32 width);
void gui_init(char *font_path);
+int gui_font_height();
+int gui_font_width();
+
/**
* Wrappers
*/