From: Dana Jansens Date: Tue, 3 Jun 2003 17:19:49 +0000 (+0000) Subject: add some more font metrics api X-Git-Tag: gl-oldtheme~69 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=80a05fa26ba702e85b8d9dd1405fcaede2ba9294;p=dana%2Fopenbox.git add some more font metrics api --- diff --git a/glft/font.c b/glft/font.c index 60a93b06..ba7bbd25 100644 --- a/glft/font.c +++ b/glft/font.c @@ -331,3 +331,8 @@ int GlftFontHeight(struct GlftFont *font) { return font->height; } + +int GlftFontMaxCharWidth(struct GlftFont *font) +{ + return font->max_advance_width; +} diff --git a/glft/glft.h b/glft/glft.h index f4415042..c6c2f00b 100644 --- a/glft/glft.h +++ b/glft/glft.h @@ -16,8 +16,6 @@ struct GlftFont *GlftFontOpen(Display *d, int screen, const char *name); void GlftFontClose(struct GlftFont *font); -int GlftFontHeight(struct GlftFont *font); - /* rendering */ struct GlftColor { @@ -44,4 +42,7 @@ void GlftMeasureString(struct GlftFont *font, int *w, int *h); +int GlftFontHeight(struct GlftFont *font); +int GlftFontMaxCharWidth(struct GlftFont *font); + #endif