diff options
author | Dan Elkouby | 2016-01-29 23:38:32 +0200 |
---|---|---|
committer | Dan Elkouby | 2016-01-29 23:38:32 +0200 |
commit | 9cbd75df2fbcb6c91f71dbb66d4a9e142b2ed28d (patch) | |
tree | 2bcf5859739dcb7f229366ed84c8ebf23d402f7a /line-spacing-fix.patch | |
parent | 3c1cc28b7030f363f17500979cf71d14d0a4ec52 (diff) | |
download | aur-9cbd75df2fbcb6c91f71dbb66d4a9e142b2ed28d.tar.gz |
Add font fixes
Diffstat (limited to 'line-spacing-fix.patch')
-rw-r--r-- | line-spacing-fix.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/line-spacing-fix.patch b/line-spacing-fix.patch new file mode 100644 index 000000000000..548cdcf7bfbc --- /dev/null +++ b/line-spacing-fix.patch @@ -0,0 +1,26 @@ +--- src/rxvtfont.C.orig 2011-07-20 22:19:29.878012201 -0300 ++++ src/rxvtfont.C 2011-07-20 22:19:33.634671723 -0300 +@@ -1237,11 +1237,22 @@ + + FT_Face face = XftLockFace (f); + ++/* ++ * use ascent, descent and height from XftFont *f instead of FT_Face face. ++ * this somehow reproduces the behaviour of the line height as seen on xterm. ++ + ascent = (face->size->metrics.ascender + 63) >> 6; + descent = (-face->size->metrics.descender + 63) >> 6; + height = max (ascent + descent, (face->size->metrics.height + 63) >> 6); + width = 0; + ++ */ ++ ++ ascent = f->ascent; ++ descent = f->descent; ++ height = max (ascent + descent, f->height); ++ width = 0; ++ + bool scalable = face->face_flags & FT_FACE_FLAG_SCALABLE; + + XftUnlockFace (f); + |