3 #define _XFT_NO_COMPAT_ /* no Xft 1 API */
4 #include <X11/Xft/Xft.h>
6 #include "kernel/geom.h"
9 const RrInstance *inst;
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);