[hackers] [st] Fix vertical character alignment in some cases || Ton van den Heuvel
commit 0e48a1995eee1c2babc58523ef0be296e4b1c3e8
Author: Ton van den Heuvel <tonvandenheuvel_AT_gmail.com>
AuthorDate: Mon Mar 7 22:18:12 2016 +0100
Commit: Christoph Lohmann <20h_AT_r-36.net>
CommitDate: Tue Mar 8 15:43:52 2016 +0100
Fix vertical character alignment in some cases
The y-position of a character found by asking fontconfig for a matching
font does not take the border pixels into account, resulting in a
slightly misaligned vertical position.
Signed-off-by: Ton van den Heuvel <tonvandenheuvel_AT_gmail.com>
Signed-off-by: Christoph Lohmann <20h_AT_r-36.net>
diff --git a/st.c b/st.c
index ca126d7..f2b3095 100644
--- a/st.c
+++ b/st.c
_AT_@ -3671,7 +3671,7 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
specs[numspecs].font = frc[f].font;
specs[numspecs].glyph = glyphidx;
specs[numspecs].x = (short)xp;
- specs[numspecs].y = (short)(winy + frc[f].font->ascent);
+ specs[numspecs].y = (short)yp;
xp += runewidth;
numspecs++;
}
Received on Tue Mar 08 2016 - 15:44:19 CET
This archive was generated by hypermail 2.3.0
: Tue Mar 08 2016 - 15:48:19 CET