[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Change default font size in xterm

Edward C Jones said:
> I can change the font size in an xterm by a menu brought up by
> control-right-click.  Unfortunately, I have to do this each time an xterm
> is created.  How can I permanently change the default font size for all
> xterms?  How can I change the window size (80x25 etc.)?  To change the
> font size in an xterm, hit control-right-click and a VT Fonts menu will
> appear.  Choose a new font.  I prefer the Small font.  I want to change
> the default font to Small so I don't have to reset the font every time I
> open a new xterm.

If you already have a .Xdefaults and/or a ./Xresources file in your home
directory then you know what you are doing and do not need my suggestions.
I start without without either a .Xdefaults or a ./Xresources file.

Look at /etc/X11/app-defaults/XTerm. There are the following 6 lines in this

*VT100.utf8Fonts.font2: -misc-fixed-medium-r-normal--8-80-75-75-c-50-iso10646-1 *VT100.utf8Fonts.font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-is *VT100.utf8Fonts.font3: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646 *VT100.utf8Fonts.font4: -misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646 *VT100.utf8Fonts.font5: -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso106 *VT100.utf8Fonts.font6: -misc-fixed-medium-r-normal--20-200-75-75-c-100-iso1064

I suspect but I am not sure that the fonts are defined here. But they are
also in /etc/X11/app-defaults/UXTerm.

I created a ./Xdefaults file in my home directory containing:

xterm.VT100.font: -misc-fixed-medium-r-normal--14-130-75-75-c-70-iso10646-1

This is copied from the "font3" line above. Note the dots in "xterm.VT100.font". They are important. Dots override
stars in X resource definitions.

Restart X and all is well.

If I remember correctly, this was easier to do in Debian 3.1 (sarge).
Right-click on the title bar or something.

Reply to: