add some more font metrics api
authorDana Jansens <danakj@orodu.net>
Tue, 3 Jun 2003 17:19:49 +0000 (17:19 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 3 Jun 2003 17:19:49 +0000 (17:19 +0000)
glft/font.c
glft/glft.h

index 60a93b062e95b7aebe5f1f8af585d2bbd313201b..ba7bbd25ecb6b1582f60603825d10d1b1c29e366 100644 (file)
@@ -331,3 +331,8 @@ int GlftFontHeight(struct GlftFont *font)
 {
     return font->height;
 }
+
+int GlftFontMaxCharWidth(struct GlftFont *font)
+{
+    return font->max_advance_width;
+}
index f44150422505ccaeee44c5348d92d22447d5ece3..c6c2f00b65d2231bff19faa9d9e75dab5ef0f345 100644 (file)
@@ -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