]> icculus.org git repositories - dana/openbox.git/blob - render/font.h
put the render theme into a struct
[dana/openbox.git] / render / font.h
1 #ifndef __font_h
2 #define __font_h
3 #define _XFT_NO_COMPAT_ /* no Xft 1 API */
4 #include <X11/Xft/Xft.h>
5 #include "render.h"
6 #include "kernel/geom.h"
7
8 struct _RrFont {
9     const RrInstance *inst;
10     XftFont *xftfont;
11     gint elipses_length;
12 };
13
14 void font_startup(void);
15 RrFont *font_open(const RrInstance *inst, char *fontstring);
16 void font_close(RrFont *f);
17 int font_measure_string(RrFont *f, char *str, int shadow, int offset);
18 int font_height(RrFont *f, int shadow, int offset);
19 int font_max_char_width(RrFont *f);
20 void font_draw(XftDraw *d, RrTextureText *t, Rect *position);
21 #endif /* __font_h */