소스 검색

Pange seems to use ascent + descent instead of height.

Thanks Bobby Powers <bobbypowers@gmail.com> for noticing this!
Christoph Lohmann 12 년 전
부모
커밋
55adf0aad1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      st.c

+ 1 - 1
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;