charoffsets patch

This commit is contained in:
Moririn 2023-03-30 14:41:18 +01:00
parent 50410f631c
commit 3d626debe5
2 changed files with 5 additions and 2 deletions

View File

@ -48,6 +48,9 @@ char *vtiden = "\033[?6c";
/* Kerning / character bounding-box multipliers */
static float cwscale = 1.0;
static float chscale = 1.0;
/* Character rendering offsets in pixels */
static short cxoffset = 0;
static short cyoffset = 0;
/*
* word delimiter string

4
x.c
View File

@ -1633,8 +1633,8 @@ xmakeglyphfontspecs(XftGlyphFontSpec *specs, const Glyph *glyphs, int len, int x
specs[numspecs].font = frc[f].font;
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++;
}