===================  Posting information for Setfont 1.1 ================

Path: mcdsun!noao!hao!hplabs!tektronix!uw-beaver!cornell!rochester!mcinerny
From: mcinerny@rochester.ARPA (Michael McInerny)
Newsgroups: net.micro.amiga
Subject: SetFont 1.1 (last version??)
Message-ID: <22092@rochester.ARPA>
Date: 3 Nov 86 21:29:19 GMT
Reply-To: mcinerny@rochester.UUCP (Michael McInerny)
Followup-To: net.micro.amiga
Distribution: net
Organization: U of Rochester, CS Dept, Rochester, NY
Lines: 245
Keywords: font cli workbench
Summary: this (hopefully last) version sets screen fonts too

[I hope I won't have to do this again]

Okay, okay.  Not to be outdone, I decided to add the ability to set the
font of the screen.  It turns out that there are two screen parameters to
change.  Not wanting to make anyone do anything, I decided to make them 
both independent options.

The syntax of the new SetFont command is:
	[fontname=topaz [fontsize=8] [-s] [-r]]

If you type "setfont ?" you will get a brief summary of the options,
the version, and copyright.

If you type "setfont" all by its lonesome, everything should be set to
topaz 8.  This is the way to undo the mess you may make.

The "-s" option sets the default TextAttr structure of the screen of
the window of the console (read:  probably the workbench screen).  This
will cause all future programs which open a window without specifying
a font to use the font handed to setfont.  E.g.:  new CLIs, terminal
programs, say, etc.  It will also set the menu font.

The -r option sets the font of the RastPort of the screen ....  This
affects title bars, mainly.

Setfont is now "too powerful" for some programs.  That is, some programs
make assumptions about what the default font is (e.g.:  Dave's VT100 2.2).
This can cause some ugly or incorrect results.  Now, don't say I didn't
warn you!

-Michael

P.S.  Again, this is HackerWare:  distribute source with binary!  If there's
a big demand for it, I'll post a uuencoded version of the program.

===================  Posting information for Setfont 1.0 ================

Article 5240 of net.micro.amiga:
Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site well.UUCP
Path: well!ptsfa!hoptoad!lll-crg!seismo!rochester!mcinerny
From: mcinerny@rochester.ARPA (Michael McInerny)
Newsgroups: net.micro.amiga
Subject: setfont.c -- set your CLI's font
Message-ID: <21961@rochester.ARPA>
Date: 28 Oct 86 04:37:46 GMT
Date-Received: 28 Oct 86 09:52:00 GMT
References: <1982@well.UUCP> <425@uwmacc.UUCP>
Reply-To: mcinerny@rochtest.UUCP (Michael McInerny)
Followup-To: net.micro.amiga
Distribution: net
Organization: U of Rochester, CS Dept, Rochester, NY
Lines: 210
Keywords: cli font console
Summary: okay, but need more fixedwidth fonts


Okay, here's my hacking contribution to the net.

Time after time I've been wanting to change the font of my console.  However,
there's no easy way to do it.  What I needed was a SetFont....

So, here it is.  It's a bit of a hack, taken mostly from C/A demo code.
Should work under 1.1, but haven't tried it.  Compiles with some warnings
that I don't feel like tracking down.  Not exactly user-friendly either.
"setfont ?" should give a simple usage line.  Unfortunately, must link
with Lettuce, which makes it much too big.  Oh well.

I wish it didn't have to clear the screen, but c'est la vie.

Also, porportional fonts (i.e.: most fonts) look horrible.  The console
device just doesn't like them.  I have a 5x7/5x8 font (in a 6x7/8/10
cell) that I call terminal, which gives (easily) 80+ cols and 25 rows
on a standard window (hence its name).  It's lacking a little readability,
but if there's demand (e-mail me, please), I'll try to post it.  I also
whipped up a "dotty" font (<sp> = 1 clear pixel, all else = 1 set pixel),
which has the interesting feature of approximating a "zoom" function:
you can use it to get an overview of a file, etc.  Heck:  in interlace mode,
use can "read" about 400 lines of text at once (at about 600 chars/line).
Really wierd....

Sorry, no uuencoded version.  Get a 'C' compiler!!

Please distribute source with executable, this is HackerWare, after all!
(HackerWare is software for the People--source included.)

-Michael
