]> icculus.org git repositories - dana/openbox.git/blob - render/font.h
filled out font texture
[dana/openbox.git] / render / font.h
1 #ifndef __font_h
2 #define __font_h
3 #include <X11/Xft/Xft.h>
4
5 typedef struct {
6     XftFont *xftfont;
7 } ObFont;
8
9 void font_startup(void);
10 ObFont *font_open(char *fontstring);
11 void font_close(ObFont *f);
12 int font_measure_string(ObFont *f, const char *str, int shadow, int offset);
13 int font_height(ObFont *f, int shadow, int offset);
14 int font_max_char_width(ObFont *f);
15 #endif /* __font_h */