summaryrefslogtreecommitdiff
path: root/x.c
diff options
context:
space:
mode:
authorZacchary Dempsey-Plante <zacc@ztdp.ca>2022-03-11 01:33:05 -0500
committerMarcelo Lira <setanta@gmail.com>2025-03-03 16:12:29 -0300
commitbdc1ada2776216de5eb4a954a5898298fdd6d3a0 (patch)
treec886085339a603014559b9da2aeb2a25326c6e64 /x.c
parent050e0bef8e571a571684a12c4c86364c637c12d7 (diff)
Added character rendering offsets for correcting different font dimensions.
Diffstat (limited to 'x.c')
-rw-r--r--x.c4
1 files changed, 2 insertions, 2 deletions
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;