]> icculus.org git repositories - dana/openbox.git/blob - render2/font.c
DRAWS!!
[dana/openbox.git] / render2 / font.c
1 #include "render.h"
2 #include "font.h"
3 #include <stdlib.h>
4
5 struct RrFont *RrFontOpen(struct RrInstance *inst, const char *fontstring)
6 {
7     struct RrFont *font;
8
9     font = malloc(sizeof(struct RrFont));
10     font->inst = inst;
11 /*XXX    font->font = GlftFontOpen(fontstring);*/
12     return font;
13 }
14
15 void RrFontClose(struct RrFont *font)
16 {
17     if (font) {
18 /*XXX        GlftFontClose(font->font);*/
19         free(font);
20     }
21 }
22
23 int RrFontMeasureString(struct RrFont *font, const char *string)
24 {
25     return 20;
26 }
27
28 int RrFontHeight(struct RrFont *font)
29 {
30     return 8;
31 }
32
33 int RrFontMaxCharWidth(struct RrFont *font)
34 {
35     return 5;
36 }