]> Sergey Matveev's repositories - st.git/commitdiff
Pange seems to use ascent + descent instead of height.
authorChristoph Lohmann <20h@r-36.net>
Sun, 10 Mar 2013 20:16:51 +0000 (21:16 +0100)
committerChristoph Lohmann <20h@r-36.net>
Sun, 10 Mar 2013 20:16:51 +0000 (21:16 +0100)
Thanks Bobby Powers <bobbypowers@gmail.com> for noticing this!

st.c

diff --git a/st.c b/st.c
index fc9ed70d435c03434e5a1fb64898a667d5b4caeb..0923cec886d30e4e6de4c3826a94f799a01e7e42 100644 (file)
--- a/st.c
+++ b/st.c
@@ -2493,7 +2493,7 @@ xloadfont(Font *f, FcPattern *pattern) {
        f->lbearing = 0;
        f->rbearing = f->match->max_advance_width;
 
-       f->height = f->match->height;
+       f->height = f->ascent + f->descent;
        f->width = f->lbearing + f->rbearing;
 
        return 0;