aboutsummaryrefslogtreecommitdiff
path: root/pango.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango.c')
-rw-r--r--pango.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pango.c b/pango.c
index 390e263..c43c7b9 100644
--- a/pango.c
+++ b/pango.c
@@ -5,7 +5,9 @@
#include <stdlib.h>
#include <string.h>
-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);