Use character scaling in XCopyArea - st - simple terminal (HTM) git clone https://git.parazyd.org/st (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 95591001306dc5c6b57f46155bd3e2b919114ea6 (DIR) parent c0a56ef4be2a0f84360f41b2d45964e7ef297746 (HTM) Author: Eric Pruitt <eric.pruitt@gmail.com> Date: Sun, 19 Jan 2014 10:48:35 -0600 Use character scaling in XCopyArea Diffstat: M st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/st.c b/st.c @@ -3302,7 +3302,7 @@ xdraws(char *s, Glyph base, int x, int y, int charlen, int bytelen) { width, 1); } XCopyArea(xw.dpy, xw.buf, xw.win, dc.gc, winx, winy, width, - font->ascent + font->descent, winx, winy); + CEIL((font->ascent + font->descent) * chscale), winx, winy); /* Reset clip to none. */ XftDrawSetClip(xw.draw, 0);