From e8782db9c840e42827dafa4ec1ca9849f91b9b59 Mon Sep 17 00:00:00 2001 From: adnano Date: Tue, 27 Feb 2024 11:23:12 -0500 Subject: Move menu and rendering logic into separate files --- pango.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pango.c') diff --git a/pango.c b/pango.c index 390e263..c43c7b9 100644 --- a/pango.c +++ b/pango.c @@ -5,7 +5,9 @@ #include #include -int get_font_height(char *fontstr) { +#include "pango.h" + +int get_font_height(const char *fontstr) { PangoFontMap *fontmap = pango_cairo_font_map_get_default(); PangoContext *context = pango_font_map_create_context(fontmap); PangoFontDescription *desc = pango_font_description_from_string(fontstr); -- cgit v1.2.3