diff options
author | adnano <me@adnano.co> | 2024-02-27 11:23:12 -0500 |
---|---|---|
committer | adnano <me@adnano.co> | 2024-02-27 11:23:12 -0500 |
commit | e8782db9c840e42827dafa4ec1ca9849f91b9b59 (patch) | |
tree | 0a911c8c81ee7459508633e000beb352e6df2d5a /pango.c | |
parent | 1104e8e51b366e7804b94365f8d6a84752693538 (diff) | |
download | wmenu-e8782db9c840e42827dafa4ec1ca9849f91b9b59.tar.gz |
Move menu and rendering logic into separate files
Diffstat (limited to 'pango.c')
-rw-r--r-- | pango.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |