pango.h (550B)
1 #ifndef WMENU_PANGO_H 2 #define WMENU_PANGO_H 3 #include <stdbool.h> 4 #include <cairo/cairo.h> 5 #include <pango/pangocairo.h> 6 7 int get_font_height(const char *font); 8 PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, 9 const char *text, double scale); 10 void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, 11 int *baseline, double scale, const char *text); 12 int text_width(cairo_t *cairo, const char *font, const char *text); 13 void pango_printf(cairo_t *cairo, const char *font, double scale, 14 const char *text); 15 16 #endif