projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
679c4b9
)
add some more font metrics api
author
Dana Jansens
<danakj@orodu.net>
Tue, 3 Jun 2003 17:19:49 +0000
(17:19 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Tue, 3 Jun 2003 17:19:49 +0000
(17:19 +0000)
glft/font.c
patch
|
blob
|
history
glft/glft.h
patch
|
blob
|
history
diff --git
a/glft/font.c
b/glft/font.c
index 60a93b062e95b7aebe5f1f8af585d2bbd313201b..ba7bbd25ecb6b1582f60603825d10d1b1c29e366 100644
(file)
--- 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 f44150422505ccaeee44c5348d92d22447d5ece3..c6c2f00b65d2231bff19faa9d9e75dab5ef0f345 100644
(file)
--- 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