File: pango.h

package info (click to toggle)
wmenu 0.1.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, trixie
  • size: 176 kB
  • sloc: ansic: 1,596; xml: 240; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 550 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef WMENU_PANGO_H
#define WMENU_PANGO_H
#include <stdbool.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 *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