tPange seems to use ascent + descent instead of height. - st - [fork] customize… | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 55adf0aad1d5acf0b9a00e2a9f834cef8b61b3b3 | |
parent 82494f248d778e1195a9eabfac916ce08c52b6da | |
Author: Christoph Lohmann <[email protected]> | |
Date: Sun, 10 Mar 2013 21:16:51 +0100 | |
Pange seems to use ascent + descent instead of height. | |
Thanks Bobby Powers <[email protected]> for noticing this! | |
Diffstat: | |
M st.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -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; |