commit 0e48a1995eee1c2babc58523ef0be296e4b1c3e8 from: Ton van den Heuvel via: Christoph Lohmann <20h@r-36.net> date: Tue Mar 8 14:43:52 2016 UTC 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 Signed-off-by: Christoph Lohmann <20h@r-36.net> commit - 6d8f85232ec741ae2357728d6e96cb8a44e842b4 commit + 0e48a1995eee1c2babc58523ef0be296e4b1c3e8 blob - ca126d7448962d2a4bd175715aa6a184c0522341 blob + f2b309562c3111455e024c03ff89de8e8d333616 --- st.c +++ st.c @@ -3671,7 +3671,7 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Gly 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++; }