diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-23 22:03:32 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-23 22:03:32 +0000 |
| commit | 8fff73fa7a85c5744955befaf28c754673924afe (patch) | |
| tree | 97552b02da478faf30773bb3d49a773965d25f3d | |
| parent | f2add3a5b0197388cab9ac6787995eb8312c96c6 (diff) | |
seems to be better text placement than ever
| -rw-r--r-- | render/font.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/render/font.c b/render/font.c index c2e97861..4436cf84 100644 --- a/render/font.c +++ b/render/font.c @@ -96,7 +96,8 @@ void font_draw(XftDraw *d, TextureText *t, int x, int y, int w, int h) XftColor c; /* accomidate for areas bigger/smaller than Xft thinks the font is tall */ - y += (t->font->xftfont->height + 1 - (t->font->height + h)) / 2; + y -= (2 * (t->font->xftfont->ascent + t->font->xftfont->descent) - + (t->font->height + h)) / 2; x += 3; /* XXX figure out X with justification */ |
