From 2f1c189d535c2d8dce74ec44c670305f00e4a30c Mon Sep 17 00:00:00 2001 From: adnano Date: Sun, 16 Jan 2022 08:32:58 -0500 Subject: Initial commit --- pango.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pango.h (limited to 'pango.h') diff --git a/pango.h b/pango.h new file mode 100644 index 0000000..c0f58bd --- /dev/null +++ b/pango.h @@ -0,0 +1,18 @@ +#ifndef DMENU_PANGO_H +#define DMENU_PANGO_H +#include +#include +#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 *fmt, ...); +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 *fmt, ...); + +#endif -- cgit v1.2.3