[comp.sys.apollo] Fonts on vi editor, rn, vnews

talent@spanky.sps.mot.com (Steve Talent) (04/08/90)

In article <1990Apr6.044529.3839@caen.engin.umich.edu> contaxes@caen.engin.umich.edu (Nicholas A Contaxes) writes:
>The packages in the subject title all open a vt100 window to execute and all
>use the vt100l font.  That font is a strain to read for any length of time.
>It would be good to have the option of changing it, but that seems hard to do.
>
>A person primarily maintaining Usenet and vi here looked into the matter.  He
>determined that the font selection was set in the command opening the vt100
>window, and this was done through GPR routines.  If there is a way around it,
>it has to be in the Apollo environment.  Does anyone have any ideas?

I discovered some time ago that it was possible to change the fonts used
by vt100 by creating links in my home directory pointing to alternate fonts.
This only seems to work when I create the first vt100 window during a
login from my home directory.  If the links don't exist in the current
directory when I first execute vt100, I get the default font.  If I
change a link, I have to logout and then login again to see the change.

I'm not sure why it works but it does work.  I have listed below the links
I set up, I don't know if all of them are necessary.

crl vt100l  "/sys/dm/fonts/f7x13.b"
crl vt100l.b  "/sys/dm/fonts/f7x13.b"
crl vt100l.dhb  "/sys/dm/fonts/f7x13.b"
crl vt100l.dht  "/sys/dm/fonts/f7x13.b"
crl vt100l.dw  "/sys/dm/fonts/f7x13.b"
crl vt100s  "/sys/dm/fonts/f7x13.b"
crl vt100s.b  "/sys/dm/fonts/f7x13.i"
crl vt100s.dhb  "/sys/dm/fonts/f7x13.b"
crl vt100s.dht  "/sys/dm/fonts/f7x13.b"
crl vt100s.dw  "/sys/dm/fonts/f7x13.b"


Steve Talent, Motorola Semiconductor Products Sector CAD
Mesa, AZ  602-994-6801,  ...!{oakhill, sun!sunburn, uunet}!dover!talent

ananth@METROPOLIS.MIT.EDU (Ananth Annapragada) (04/09/90)

Steve Talent writes:

I discovered some time ago that it was possible to change the fonts used
by vt100 by creating links in my home directory pointing to alternate fonts.
This only seems to work when I create the first vt100 window during a
login from my home directory.  If the links don't exist in the current
directory when I first exectte vt100, I get the default font.  If I
change a link, I have to logout and then login again to see the change.

I'm not sure why it works but it does work.

*************************

The answer to this is very simple. Read the help file for fl, the dm font_load
command. fl loads a font for use in all subsequently opened pads. fl also
searches the current directory for the named font, and if it is not found,
searches /sys/dm/fonts. The font loaded by fl remains in effect until the
next fl command. I suspect the code you are running (rn, vi, etc.) are using
a gpr call which works the same way, or maybe even a system(xdmc fl font_name)
type call.

As far as changing a link goes, do you change the link before you execute the
vt100 command or after? 

Ananth.