From: Christoph Lohmann <20h@r-36.net> Date: Sun, 10 Mar 2013 20:16:51 +0000 (+0100) Subject: Pange seems to use ascent + descent instead of height. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=55adf0aad1d5acf0b9a00e2a9f834cef8b61b3b3;p=st.git Pange seems to use ascent + descent instead of height. Thanks Bobby Powers for noticing this! --- diff --git a/st.c b/st.c index fc9ed70..0923cec 100644 --- 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;