charoffsets patch
This commit is contained in:
parent
50410f631c
commit
3d626debe5
|
@ -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
4
x.c
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue