Subject: Re: XTerm default font
To: Frederick Bruckman <fredb@immanent.net>
From: Claude Marinier <claude.marinier@dreo.dnd.ca>
List: netbsd-help
Date: 11/22/2001 12:58:32
Thank you Frederick.

The .xinitrc file I am using starts with

	#!/bin/sh
	# $XConsortium: xinitrc.cpp,v 1.4 91/08/22 11:41:34 rws Exp $
	userresources=$HOME/.Xresources

and goes on to use 'xrdb' to merge the .Xresources file. So, I will just
edit the .Xresources file.

I previously attempted to set other things (are they called resources?)
without success. From the example you provided, I would guess that the
name of the thing (resource) must be preceeded by the program's name. Thus
this might work.

	XTerm.VT100.font: 9x15
	XTerm.scrollBar: true
	XTerm.rightScrollBar: false
	XTerm.decTerminalID: 200

By the way, can I use tabs instead of a single space?

I will restart X now and try it.

Thanks.

On Thu, 22 Nov 2001, Frederick Bruckman wrote:
> On Thu, 22 Nov 2001, Claude Marinier wrote:
> > My PC is running NetBSD 1.5.2 with X and I am somewhat new to X11R6.
> > I have been looking for a way to convince xterm to start with the large
> > font (middle age vision). I have been crusing the man pages and the BBI
> > (Big Bad Internet) and I have found all sorts of hints but no clear
> > solution.
> >
> > I was about to modify the file /usr/X11R6/lib/X11/app-defaults/XTerm but
> > thought that I would check with you all first.
> >
> > What is the best way to do this?
>
> What you can do, is create a file ".Xresources" in your home
> directory, and also set "XENVIRONMENT=${HOME}/.Xresources" in your
> initialization scripts -- "~/.xsession" if you use "xdm", "~/.xinitrc"
> for "startx" -- but just set it and export it the environment for now.
> Then you can put any X resource setting you like in "~/.Xresources",
> and it takes effect the very next time the program in question is run.
> (The chief advantage to doing it this way, rather than modifying
> ".../app-defaults/XTerm", is that your change won't go away when X or
> your system is upgraded.)
>
> Now to make the large font the default, just put
>
> XTerm.VT100.font:	9x15
>
> in "~/.Xresources". By the way, the default font, "fixed", is short
> for "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1".
> That translation is specified in
> "/usr/X11R6/lib/X11/fonts/misc/fonts.alias". The alias of "9x15" is
> defined there, too. You can browse all the fonts available to the
> Xserver with "xfontsel", pick something that looks good, and test it
> on the command line before putting it into "~/.Xresources": .e.g.:
>
> xterm -fn '-bitstream-courier-medium-r-normal-*-15-*-*-*-*-*-*-*'
>
> Frederick

-- 
Claude Marinier, Information Technology Group    claude.marinier@dreo.dnd.ca
Defence Research Establishment Ottawa (DREO)    (613) 998-4901  FAX 998-2675
3701 Carling Avenue, Ottawa, Ontario  K1A 0Z4         http://www.dreo.dnd.ca