From 3e5ed749db51b20fa00c04add5fcc35230af530f Mon Sep 17 00:00:00 2001 From: speediegq Date: Thu, 18 Aug 2022 18:12:03 +0200 Subject: [PATCH] Update --- docs/patchlist | 21 +++++++++++++++++++++ options.h | 2 ++ x.c | 4 ++-- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/docs/patchlist b/docs/patchlist index 1f40960..c5ba597 100644 --- a/docs/patchlist +++ b/docs/patchlist @@ -1 +1,22 @@ patchlist, not complete yet + +st-title-parsing-fix +st-boxdraw +st-scrollback +st-scrollback-mouse +st-boldisnotbright +st-ligatures +st-xresources +st-w3m +st-clipboard +st-columns +st-blinkingcursor +st-alpha +st-desktopentry +st-dynamiccursorcolor +st-font2 +st-netwmicon +st-clickurls +st-vertcenter +st-xclearwin +st-charoffsets diff --git a/options.h b/options.h index 17583a3..30fe492 100644 --- a/options.h +++ b/options.h @@ -91,6 +91,8 @@ static unsigned int defaultattr = 11; /* Text rendering options */ static float cwscale = 1.0; static float chscale = 1.0; +static short cxoffset = 0; /* Horizontal character rendering offsets in pixels */ +static short cyoffset = 0; /* Vertical character rendering offsets in pixels */ static double minlatency = 8; /* Minimum draw latency in milliseconds */ static double maxlatency = 33; /* Max draw latency in milliseconds */ static uint su_timeout = 200; /* Synchronized timeout in milliseconds */ diff --git a/x.c b/x.c index 13b06eb..f9199b5 100644 --- a/x.c +++ b/x.c @@ -1500,8 +1500,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;