[hackers] [st] Pange seems to use ascent + descent instead of height. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sun, 10 Mar 2013 21:19:47 +0100

commit 55adf0aad1d5acf0b9a00e2a9f834cef8b61b3b3
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sun Mar 10 21:16:51 2013 +0100

    Pange seems to use ascent + descent instead of height.
    
    Thanks Bobby Powers <bobbypowers_AT_gmail.com> for noticing this!

diff --git a/st.c b/st.c
index fc9ed70..0923cec 100644
--- a/st.c
+++ b/st.c
_AT_@ -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;
Received on Sun Mar 10 2013 - 21:19:47 CET

This archive was generated by hypermail 2.3.0 : Sun Mar 10 2013 - 21:24:13 CET