home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Elysian Archive
/
AmigaElysianArchive.iso
/
printer
/
pfont.lha
/
PFont.doc
< prev
next >
Wrap
Text File
|
1990-09-15
|
6KB
|
161 lines
PFont © 1990 by Doug McLean
~~~~~~~~~~~~~~~~~~~~~~~~~~~
PFont will take 8 point non-proportional fonts and download them to
your printer. "Wait", you say, "my word processor lets me use whatever
font I want!".
But PFont is different. Usually when you print Amiga fonts on your printer,
they are printed as graphics, not text. PFont changes your printers default
font, so that any text you print, whether from the CLI or wherever, is in
the new font. Of course, the change is temporary, it only lasts until
the printer is reset. There are several restrictions on the fonts that
may be used, see below.
There is no fancy intuition interface because I wanted to keep the
program small, and I wanted to be able to put it in my startup-sequence.
We Interrupt This File For A Brief Word From The Sponsor
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PFont is copyright 1990 by Doug McLean. You may freely distribute PFont only
- on public BBSs and information services
- on a disk that contains only freely distributable software
- at user group and similar meetings
No fee may be charged for distribution of PFont, with the exception of
the normal user fees that BBSs and information services charge.
PFont may only be distributed in it's original archived form, complete with
all included files. If distributed on disk, it may be uncompressed it's in
it's own directory and complete (it's easier for the user that way).
Feel free to add your own printer config files.
If you keep and use PFont, please send two or three disks of
PD/Freeware/Shareware/Whateverware, or maybe a game you are tired of or
have beaten, to the author:
Doug McLean
Apt #203
242 Regent St.
Fredericton, NB
Canada
You Need
~~~~~~~~
- An Amiga with Kiskstart 1.2 or 1.3.
- A printer that accepts downloadable fonts. The printer must
accept 11 bytes of data per character to be defined. Sorry, NLQ
fonts ae not supported.
- PFont compatible fonts (see below, several are included).
Using PFont
~~~~~~~~~~~
[1] Copy the compatible fonts to wherever you want them to reside
(I suggest fonts:).
[2] Make your config file. Put is in the s: directory (it will also
work if the config file is in the current directory when you run
PFont)
[3] Run the program.
[1] Fonts
~~~~~~~~~
Compatible fonts are subject to the following restrictions:
[a] They ust be 8 point
[b] They may not be proportional
[c] They may not have any undefined characters in the range you wish
to send to the printer
FastFonts has similar restrictions, so if a font works with FF, it
should work with PFont. FF has extra restrictions, so if a font doesn't
work with FF, it still might work with PFont.
Many fonts are available that alost eet the restrictions above, but not
quite, for example they are 9 points. You can easily change these with
the font editor on the Workbenck 1.3 extras disk- just change the x size
from 9 to 8. Other minor problems can be corrected too, like undefined
characters. Or you can create your own font from scratch, for example
you may wish to create a special character set for some special
purpose (spell symbols for a game?).
[2] The Config File
~~~~~~~~~~~~~~~~~~~
The config file must be named pfont-config, and must be in either the
current directory or s: directory. Values are entered in hex, each
value must be 2 characters (for example 0f). Sorry about allowing hex only,
but I like hex, and it was easier this way. Your printer book will have
the correct hex values to use. Values must be seperated by spaces, and the
last value on each line must be the last thing on the line before a return,
no extra spaces or anything. Rather than send the entire font at once (as
many printers allow), character definitions are sent one at a time (this is
to make PFont compatible with as many printers as possible). Use a * to
represent the value of the character you are downloading. If your printer
wants to see a range of characters, use a * for the begining of the range
and for the end (thus defining a range of 1 character). The StarNX1000
config file shows an example of this.
There are two sample config files included, please read them, they contain
comments (comments are allowed in a config file after the last line of data)
and may assist you in creating your own config.
Each line in the config file must:
- begin in the first column.
- end with a return immediately after the last entry, with no extra
spaces or other characters.
Line 1 - Selects device, either SER: or PAR:.
Line 2 - Hex escape sequence to reset the printer.
Line 3 - Optional hex initalization sequence 1.
Line 4 - Optional hex initalization sequence 2.
Line 5 - Hex sequence to copy ROM printer font to RAM.
Line 6 - Hex sequence to download a single character. Use * to represent the
number of the character being defined.
Line 7 - Hex sequence to acticate the RAM font just downloaded.
Line 8 - Optional hex post download sequence.
Line 9 - Hex value for lowest character to download.
Line 10- Hex value for highest character to download.
[3] Running It
~~~~~~~~~~~~~~
Run PFont as follows:
pfont pathname/fontname [d]
The d is optional, if incleded it will display config and font info to the
screen as it sets your printer up.
When run, PFont looks first in the current directory, then in the s:
directory for the config file. Then it looks for the font definition file
(pathname/fontname/8). So if you have an acceptable font called byte in
your fonts: directory, you would type:
pfont fonts:byte or pfont fonts:byte d
You should have byte.font and a subdirectory called byte (with a file called
8 in it) in your fonts: directory. Note that the font specified doesn't
have to be in fonts:, that is just the most logical place to put them.
Help
~~~~
If you have trouble setting up PFont, or using it, call The Mad Scientist's
BBS, and I will try to help you. Just leave feedback describing the problem.
The Mad Scientist's BBS
(506) 455-2808
12/24 8/N/1
Hours: whenever I don't need the computer for other stuff.
I don't know if I will bother upgrading PFont, but I would like to add
the ability to download 6 to 11 point fonts (others are outside most
printers capabilities). If you have the C source for a simple font editor,
I would appreciate a copy.