From bdc1ada2776216de5eb4a954a5898298fdd6d3a0 Mon Sep 17 00:00:00 2001 From: Zacchary Dempsey-Plante Date: Fri, 11 Mar 2022 01:33:05 -0500 Subject: Added character rendering offsets for correcting different font dimensions. --- x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'x.c') diff --git a/x.c b/x.c index a077ca6..7727222 100644 --- a/x.c +++ b/x.c @@ -1430,8 +1430,8 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x if (glyphidx) { specs[numspecs].font = font->match; specs[numspecs].glyph = glyphidx; - specs[numspecs].x = (short)xp; - specs[numspecs].y = (short)yp; + specs[numspecs].x = (short)xp + cxoffset; + specs[numspecs].y = (short)yp + cyoffset; xp += runewidth; numspecs++; continue; -- cgit v1.2.3