Initial commit

This commit is contained in:
adnano 2022-01-16 08:32:58 -05:00
commit 2f1c189d53
13 changed files with 1825 additions and 0 deletions

18
pango.h Normal file
View file

@ -0,0 +1,18 @@
#ifndef DMENU_PANGO_H
#define DMENU_PANGO_H
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <cairo/cairo.h>
#include <pango/pangocairo.h>
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