tFix vertical character alignment in some cases - st - [fork] customized build … | |
git clone git://src.adamsgaard.dk/st | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 0e48a1995eee1c2babc58523ef0be296e4b1c3e8 | |
parent 6d8f85232ec741ae2357728d6e96cb8a44e842b4 | |
Author: Ton van den Heuvel <[email protected]> | |
Date: Mon, 7 Mar 2016 22:18:12 +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 <[email protected]> | |
Signed-off-by: Christoph Lohmann <[email protected]> | |
Diffstat: | |
M st.c | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/st.c b/st.c | |
t@@ -3671,7 +3671,7 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph… | |
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++; | |
} |