aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2013-03-10 21:16:51 +0100
committerChristoph Lohmann <20h@r-36.net>2013-03-10 21:16:51 +0100
commit55adf0aad1d5acf0b9a00e2a9f834cef8b61b3b3 (patch)
tree8c4e1edf75a22a3d3cc715631fafe959e1f5481d
parent82494f248d778e1195a9eabfac916ce08c52b6da (diff)
downloadst-patched-55adf0aad1d5acf0b9a00e2a9f834cef8b61b3b3.tar.bz2
st-patched-55adf0aad1d5acf0b9a00e2a9f834cef8b61b3b3.tar.xz
st-patched-55adf0aad1d5acf0b9a00e2a9f834cef8b61b3b3.zip
Pange seems to use ascent + descent instead of height.
Thanks Bobby Powers <bobbypowers@gmail.com> for noticing this!
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
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) {
2493 f->lbearing = 0; 2493 f->lbearing = 0;
2494 f->rbearing = f->match->max_advance_width; 2494 f->rbearing = f->match->max_advance_width;
2495 2495
2496 f->height = f->match->height; 2496 f->height = f->ascent + f->descent;
2497 f->width = f->lbearing + f->rbearing; 2497 f->width = f->lbearing + f->rbearing;
2498 2498
2499 return 0; 2499 return 0;