]> icculus.org git repositories - dana/openbox.git/blob - render/font.h
this is going to break the kernel/ building.
[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     XftFont *xftfont;
10     gint elipses_length;
11 };
12
13 void font_startup(void);
14 RrFont *font_open(char *fontstring);
15 void font_close(RrFont *f);
16 int font_measure_string(RrFont *f, char *str, int shadow, int offset);
17 int font_height(RrFont *f, int shadow, int offset);
18 int font_max_char_width(RrFont *f);
19 void font_draw(XftDraw *d, RrTextureText *t, Rect *position);
20 #endif /* __font_h */