pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82494f2
)
Pange seems to use ascent + descent instead of height.
author
Christoph Lohmann
<20h@r-36.net>
Sun, 10 Mar 2013 20:16:51 +0000
(21:16 +0100)
committer
Christoph 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
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
fc9ed70
..
0923cec
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->heigh
t;
+ f->height = f->
ascent + f->descen
t;
f->width = f->lbearing + f->rbearing;
return 0;