7 struct RrFont *RrFontOpen(struct RrInstance *inst, const char *fontstring)
11 font = malloc(sizeof(struct RrFont));
13 font->font = GlftFontOpen(RrDisplay(inst), RrScreen(inst), fontstring);
17 void RrFontClose(struct RrFont *font)
20 GlftFontClose(font->font);
25 int RrFontMeasureString(struct RrFont *font, const char *string)
28 GlftMeasureString(font->font, string, strlen(string), &w, &h);
32 int RrFontHeight(struct RrFont *font)
34 return GlftFontHeight(font->font);
37 int RrFontMaxCharWidth(struct RrFont *font)
39 return GlftFontMaxCharWidth(font->font);