I've been playing around with xterm with Xft fonts, and with all of the fonts I've tried the lines spacing seems too large. For 8-12pt sizes there are typically 2 pixels of seemingly unused space. I'm looking for as many rows as I can get in a given xterm size with a readable font, so I'd like to get rid of that unused white space. I tried a few things, and found that setting the font height to ascent + descent instead of what Xft reports as the height solves this. Is there a reason why this is a bad thing to do for something like xterm?
Index: fontutils.c =================================================================== RCS file: /home/x-cvs/xc/programs/xterm/fontutils.c,v retrieving revision 1.36 diff -u -r1.36 fontutils.c --- fontutils.c 2002/12/08 22:31:48 1.36 +++ fontutils.c 2003/03/07 04:15:02 @@ -897,6 +897,7 @@ win->f_height = screen->renderFont->height; win->f_ascent = screen->renderFont->ascent; win->f_descent = screen->renderFont->descent; + win->f_height = win->f_ascent + win->f_descent; } else #endif { David -- David Dawes Release Engineer/Architect The XFree86 Project www.XFree86.org/~dawes _______________________________________________ Devel mailing list [EMAIL PROTECTED] http://XFree86.Org/mailman/listinfo/devel