From 8cbadb61604667b407b53ee1258433994fa4765a Mon Sep 17 00:00:00 2001 From: coasteen Date: Thu, 9 Jul 2026 10:42:28 +0330 Subject: init --- wmenu/pango.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 wmenu/pango.h (limited to 'wmenu/pango.h') diff --git a/wmenu/pango.h b/wmenu/pango.h new file mode 100755 index 0000000..482d49a --- /dev/null +++ b/wmenu/pango.h @@ -0,0 +1,16 @@ +#ifndef WMENU_PANGO_H +#define WMENU_PANGO_H +#include +#include +#include + +int get_font_height(const char *font); +PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, + const char *text, double scale); +void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, + int *baseline, double scale, const char *text); +int text_width(cairo_t *cairo, const char *font, const char *text); +void pango_printf(cairo_t *cairo, const char *font, double scale, + const char *text); + +#endif -- cgit v1.2.3