home *** CD-ROM | disk | FTP | other *** search
Sprint Document | 1991-01-21 | 21.2 KB | 494 lines |
- R 65,T 5 13
- TABSET 2 picas, 7 picas, 20 picas,20 picas, 20 picas, 20 picas
- BEGIN FOOTER
- FONT HELV10
- FontLoader Documentation
- Page
- PAGE, t="%d"
- END FOOTER
- RESERVE .5 inches
- FONT HELV24
- ESCAPE s= "@char(27)(12X"
- F O N T L O A D E R
- FONT HELV18
- F O N T L O A D E R
- FONT HELV12
- F O N T L O A D E R
- FONT HELV10
- F O N T L O A D E R
- FONT HELV10
- Version 1.50
- FONT HELV12
- Will Temple
- P.O. Box 5548
- Incline Village, NV 89450-5548
- (702) 831-8418
- ESCAPE s= "@char(27)(9X"
- GENERAL OVERVIEW
- BEGIN COLUMN
- FONT HELV24
- ESCAPE s= "@char(27)(12X"
- END COLUMN
- L 3,R 66,T 5 13
- ONTLODR.EXE is a LaserJet soft font loader that can rotate,
- scale, mirror, reverse, and fix the pitch of fonts on the
- fly. It runs under MS-DOS/PC-DOS. This document is printed
- with a single soft font!
- R 65,T 5 13
- With FontLoader's help, the font has been downloaded into your
- LaserJet as several different fonts. FontLoader can create new
- font files or minimize the number of fonts you need to keep on
- your hard disk.
- FontLoader is useful, even with programs that come with fonts
- and load them automatically, due to its font effects. The
- effects include white on black, angle, outline, narrow,
- mirror, and upside down. Registered users receive shadows,
- floating shadows, and over twenty weight effects including
- horizontal, vertical, and slanted stripes. Outlines,
- shadows, and weights can all be combined to produce some
- stunning effects. An example is at the top of this page.
- Register to receive this font and many more.
- LICENSE AGREEMENT
- FontLoader is ShareWare! FontLoader may be freely copied and
- distributed provided that no fee beyond normal media,
- duplication, and shipping costs is charged. ShareWare libraries
- may carry FontLoader. The following files must be present to
- distribute FontLoader: FONTLODR.EXE, FONTLODR.DOC, READ.ME,
- PRINTDOC.BAT, FL.RSP, and HV240RPN.USP. Furthermore, these
- files may not be modified.
- DISCLAIMER
- FontLoader is provided with no warranty of any kind, implied,
- including, but not limited to, the implied warranties of
- merchantability and fitness for a particular purpose. In no
- event shall the author be liable for any loss of profit or any
- other commercial damage, including but not limited to special,
- incidental, consequential or other damages.
- FONT HELV8
- Copyright (C) 1989, 1990, 1991 Will Temple All Rights
- Reserved
- LaserJet(tm) is a trademark of the Hewlett-Packard Company
- ESCAPE s= "@char(27)(9X"
- USING FONTLOADER
- R 65,T 5 13
- Format:
- FONT HELV12
- FontLodr FontFile [Options] [Device
- Options:
- L 13,R 65,I 5,T 5 13
- -[ ] Character filter.
- -AW:# Adjust
- Weight of font. (-7..7)
- -A:# Angle font "#" degrees. -DOS:"" Execute DOS
- command.
- -F:# Fix pitch to "#". -I/-UP Label font
- italic / upright.
- -M Mirror font. -U Turn font
- Upside Down.
- -N:# Narrow / Thin. -O[:#] Outline.
- -R Rotate font. -RBM Rotate Bit
- Map only.
- -S:# Scale font to "#" point size. -SH:#% Scale height
- to "#" %.
- -SW:#% Scale width to "#" %. -WT Width Table.
- -W Reverse to White on black. -AA Auto Adjust
- cell height for "-w".
- -C Clear with a Reset. -D Delete all
- soft fonts.
- -E Permanent (Default). -T Temporary.
- -P Primary. -S Secondary.
- R 65,T 5 13
- Device: "PRN", "LPT1-3", or File Name. Default is "PRN".
- ID: Soft font ID number (0-32767). Default is "0".
- LOADING FONTS
- Fonts loaded as Temporary will be erased from the LaserJet when a
- "-C" reset code (Esc E) is issued. Permanent fonts (default)
- survive the reset. "-D" deletes all soft fonts. (i.e. "FontLodr
- NUL. -D")
- A font loaded as Primary is now in use. A font loaded as
- Secondary can be selected for use by sending the LaserJet a
- Control N character. The Primary font can be reselected with a
- Control O.
- DEVICE AND ID NOTES
- When specifying an output device, FontLoader checks the name for
- a period. If a period is present, FontLoader outputs a new soft
- font file. If the period is missing, FontLoader assumes that
- the output device is connected to the LaserJet. It then adds the
- control codes required to inform the LaserJet that a font will be
- download. Thus, if a new soft font file is to be created that
- doesn't have an extension name, make sure a period is present at
- the end of the file name (i.e. "FontLodr HV240RPN.USP -r
- NewFile.").
- If the output device name is "PRN", "LPT1", "LPT2", or "LPT3" the
- ROM BIOS printer services are used.
- When loading multiple soft fonts, specify a different ID number
- for each font.
- Parameter passing is flexible. The first example is recommended
- but the others work for compatibility.
- "FontFile -r-e-p-q prn 0" = "FontFile -r-p-q 0"
- "FontFile 0 p p" = "FontFile -pr"
- ESCAPE s= "@char(27)(9X"
- OPTION NOTES
- -[ ] CHAR FILTER
- Characters can be specified to be included or excluded from the
- font. Place characters to be loaded or written to a new file in
- between the brackets. The characters should be listed one after
- the other with no spaces or other delimiters between the
- characters. For example: "-[ae^]" causes the output to contain
- only the characters "a", "e", and "^". To exclude certain
- characters while loading all others, place a "^" caret character
- first in the list. "[^ae]" causes the output to contain all
- characters but "a" and "e".
- Ranges of characters may also be specified. A range is created
- by placing a "-" dash between two characters. For example:
- "-[A-Z]" includes just the characters "A" to "Z". The range is
- defined as all characters between the two. Thus, "-[A-Z]" is
- equal to "-[Z-A]".
- A backslash character causes the next character to be taken
- literally. Thus "-[\-\\]" causes the output to contain only the
- characters "-" and "\". The Character Filter syntax is from
- UNIX's Regular Expressions.
- -AW ADJUST WEIGHT
- The Adjust Weight option changes a font's weight. Weights range
- from -7 to 7. Normal fonts usually have a weight of 0. Bold is
- usually 3.
- -A:# ANGLE / OBLIQUE
- Fonts may be angled from 1 to 75 degrees. Fonts start to become
- unreadable at about 60 degrees. 10 to 30 degrees usually looks
- good. Only portrait fonts can be angled.
- -DOS:" " EXECUTE DOS
- Place a DOS command line between the double quotes. The command
- will be executed before the font is opened for loading. Thus, a
- font could be extracted from a compressed file prior to loading.
- Here's an example: " FontLodr tr30.usp -DOS:"unzip tr tr30.usp"
- -F FIX PITCH
- The fixed pitch option can be issued without specifying the
- pitch. Just use "-F". It's not recommended as most proportional
- fonts end up with to much space between the characters. Use this
- option to mix text and columnar data with matching typestyles.
- -I / -UP ITALIC / UPRIGHT
- The "-I" option changes a value in the fonts header record to
- mark the font as italic. The "-UP" option changes the value to
- upright. "-I" is useful with angled fonts.
- -N NARROW / THIN
- The Narrow / Thin option removes the specified number of dots
- from the outside edge of the characters. As the number of dots
- specified is increased, the characters will start to break apart
- and then will disappear. This option works best with large
- fonts. Try removing only one dot at first.
- ESCAPE s= "@char(27)(9X"
- OPTION NOTES
- -O[:#] OUTLINE
- Outline defaults to a single row of dots: "-O". Optionally,
- the thickness in dots can be specified: "-O:2". For an
- interesting effect on large fonts, create an outline six dots
- thick. Send the results to a temporary file. Then outline the
- temporary file without specifying the number of dots. The result
- is a double outline.
- -R -RBM ROTATE
- Rotated fonts lose nothing in the translation. Rotate a font
- four times and the result is an exact duplicate of the original.
- The same applies to the mirror and upside down options. To
- create a portrait font from a landscape font, rotate, mirror,
- and turn the font upside down, all at once.
- The Rotate Bit Map option rotates a font normally but leaves the
- font's orientation unchanged. The rotated font will print in the
- original direction but it's characters are rotated. To write a
- word with the rotated font, write the word vertically. The
- width between characters will be the current line spacing.
- -S -SH:#% -SW:#% SCALING
- FontLoader scales fonts by scaling the bit pattern. The results
- when scaling down are usually good. This font is 10 points
- scaled down from 24. Scaling up, however, is something you want
- to avoid.
- Scaling can be applied to the width or height of a character
- independently. This can be used to generate a tall thin font or
- a short fat font. (DOS Tip: To use a "%" in a batch file,
- specify it twice.)
- -W -AA WHITE ON BLACK
- To use the white on black option, the cell height and baseline
- length values in a soft font's header record may have to be
- modified. Enlarge these values if there is not enough black
- space above and below the character. Use the "-AA" Auto Adjust
- option to adjust these values. This has no effect on a font
- without the white on black option. If there is still white space
- between lines, set the cell height and baseline length manually.
- Set the cell height to your printer driver's Vertical Motion
- Index for the font. I recommend finding a utility that can
- modify font header records. But you can do it with DEBUG and the
- "Programming Laser Printers" book mentioned later.
- Most word processors truncate spaces at the end of a line. With
- white on black, the space is a black box. Its absence is
- noticed. To print spaces on the right, insert "hard"
- "non-breaking" spaces.
- If white on black is used for several lines with a proportional
- font, the right margin will be ragged. The easiest solution is
- to fix the pitch: "-w-f:12". But if you want proportional,
- here's one solution: Switch to the reversed font and write your
- lines of text. Ending each line with enough hard spaces to
- create a right margin that is only slightly ragged. Then set up
- a second column to print just in from the right margin and write
- a few spaces on each line to align the margin.
- -WT WIDTH TABLE
- The Width Table option writes an ASCII text file of font
- information while loading the font. To write the file without
- loading, load to "NUL." (ending with a period!). A file name
- can be passed: -WT:"WTFile.Ext". The name must be in double
- quotes. See WIDTHTBL.TXT for more information.
- ESCAPE s= "@char(27)(9X"
- USING RESPONSE FILES
- Format:
- FONT HELV12
- FontLodr @@ResponseFile [FontFile]
- [Options] [Device ID]
- A Response file is simply an ASCII text file of command lines.
- Parameters passed after the response file on the command line
- become FontLoader's default values. There are, however,
- exceptions: If a font file is not passed on the command line,
- the font file from the previous line in the response file is
- used. Also, a font ID number in the response file becomes the
- new default value. Font ID numbers increment with every line.
- If the output device is "NUL", the font ID does not increment
- and the font file is not processed. The Execute DOS option will
- execute with a "NUL" output device.
- Here's an example we will name RespFile:
- HV24.USP nul
- -s:12-m
- -s:8
- HV10.USP nul 100
- -s:10
- To use this response file pass the file name to FontLoader as the
- first parameter with an "@@" symbol proceeding the name: (Keep
- in mind: Fonts sent to the "NUL" device are not sent.)
- This "C:>FontLodr @@RespFile" Equals "C:>FontLodr
- HV24.USP -s:12-m"
- "C:>FontLodr
- HV24.USP -s:8 1"
- "C:>FontLodr
- HV10.USP -s:10 100"
- So why didn't I just set up this file: Or pass the font on
- the command line to this:
- HV24.USP -s:12-m -s:12-m
- HV24.USP -s:8 -s:8
- HV10.USP 100 -s:10 100
- Well I could have done it either way but I wanted to show you a
- trick that increases the flexibility of the response file.
- Here's the trick: If I execute the response file with no font
- file, as above, the fonts HV24.USP and HV10.USP are used. But,
- If I pass another font file on the command line, Then:
- This "C:>FontLodr @@RespFile TR30.USP 10" Equals "C:>FontLodr
- TR30.USP -s:12-m 10"
- "C:>FontLodr
- TR30.USP -s:8 1 11"
- "C:>FontLodr
- TR30.USP -s:10 100"
- Here's another trick: Placing "-SW:100%" alone on a line in the
- response file will send the current font file without
- modification. This works because "-SW:100" is a default.
- You may pass a response file a device name without a font file
- name or an option as long as the device name is "PRN", "LPT1",
- "LPT2", "LPT3", or "NUL". (i.e. "C:>FontLodr @@RespFile lpt2
- 1200").
- If you make a response file with your word processor, make sure
- the file is pure ASCII text. Most word processors will normally
- write files in their own file format but will provide a way to
- write ASCII text files.
- When using response files, a list of the fonts being loaded,
- their ID numbers, options, and total bytes will be displayed on
- your monitor. The "-Q" quiet option can be used to suppress this
- display.
- ESCAPE s= "@char(27)(9X"
- EXAMPLES
- FONT HELV8
- 8 point type. FontLodr hv24.usp -S:8 prn 0
- FONT HELV10
- 10 point type.
- FontLodr hv24.usp -S:10 prn 1
- FONT HELV12
- 12 point type. FontLodr hv24.usp -S:12 prn 2
- FONT HELV18
- 18 point type. FontLodr hv24.usp -S:18 prn 3
- FONT HELV24
- 24 point type. Angled Outline! "A:20-O:2"
- BEGIN COLUMN
- ESCAPE s= "@char(27)(0X"
- Thin Font "-SW:40%-SH:67%"
- END COLUMN
-
- ESCAPE s=
- "@char(27)(1X"
- Wide Font "-SH:67%".
- FONT HELV10
- The wide font was made by reducing height. It's almost always
- better to scale fonts down. But you can scale up like this:
- "-sw:150%". A point size of about 120 is the limit to how much a
- font may be scaled up.
- PROPORTIONAL font doesn't line up.
- ESCAPE s=
- "@char(27)(2X"
- FIXED width does. "-F:12-S:10".
- font HELV10
- Proportional font doesn't line up.
- ESCAPE s=
- "@char(27)(2X"
- Fixed width does. "-s:10-f:12".
- font HELV10
- Good for transparencies:
- FONT HELV12
- Mirror:
- ESCAPE s= "@char(27)(4X"
- rorriM "M-".
- Upside Down "-U": Upside Down & Mirrored
- "-M-U":
- BEGIN COLUMN
- ESCAPE s= "@char(27)(5X"
- Upside Down "-U"
- END COLUMN
-
- ESCAPE s=
- "@char(27)(6X"
- "U-M-" derorriM & nwoD edispU
- FONT COURIER
- BEGIN COLUMN
- STYLE leftindent 12 picas
-
- END COLUMN
- STYLE leftindent 12 picas, linelength 13 picas
- ESCAPE s= "@char(27)(9X"
-
- ESCAPE s= "@char(27)(9X"
-
- ESCAPE s= "@char(27)(9X"
- This is White on Black! "-W-AA"
- FONT HELV10
- STYLE leftindent 0 picas, linelength 39 picas
- In the above example, An outline box with the resident courier
- high bit PC8 characters was written. Then, a second column was
- set up to print at the same left margin. The reversed font was
- used to write the line of text. The line was filled out with
- hard spaces to fill in the box.
- FONT HELV24
- ESCAPE s= "@char(27)(12X"
- Effects for Registered
- Users!
- Registered users receive shadows and weights. The example above
- is a floating shadow. It has been combined with one of the four
- horizontal stripe weight effects offered. It has also been
- combined with the outline option and the offset of the shadow has
- been specified.
- This sample font effect is but one example of many fine effects
- that can be created with FontLoader. Registered users will not
- only be provided with the documentation, but will also be given
- a sample printout displaying some of the best effects.
- Of course, all these fonts could have been generated as
- landscape fonts by adding the "-L" option.
- ESCAPE s= "@char(27)(9X"
- USING FONTS
- To find out how to use soft fonts with your favorite software I
- recommend the following books:
- FONT HELV12
- Programming Laser Printers
- HELV12
- LaserJet Companion
- Timothy Perrin Mark W.
- Crane and Joseph R. Pierce
- MIS Press, Portland Oregon The Cobb
- Group, Inc. Louisville Kentucky
- Here are the basics: To use proportional fonts, your software
- must know how to call fonts and must have width tables. To use
- fonts FontLoader creates, create a new font file and install it
- as you would any soft font. Some programs come with utilities to
- do this. Others use third party utilities. If no utility is
- available, the -WT option can assist (see WIDTHTBL.TXT). The
- new font file can be erased if your program doesn't try to
- automatically load it. Alternatively, you can load the font
- with FontLoader and have your program call a font with similar
- characteristics(width table, vertical size, weight, etc.) and
- embed an escape code to call the font by its ID.
- Every font that is sent to your LaserJet has an ID number
- associated with it. The number can be from 0 to 32767. No two
- fonts can have the same ID. If your program loads fonts for you,
- you won't know what ID numbers it's using. If you want to load a
- font that's not loaded automatically, use FontLoader to load it
- with a high ID.
- To call a font by its ID number, you will have to find out how
- to embed an escape character(char 27) in your text. With many
- word processors you can hold down the Alt key, then press the 2
- key and then the 7 key on the numeric keypad, and then release
- the Alt key. After the escape character, the rest of the code
- can be typed in. To select a primary font the code is <esc>(#X
- (example: <esc>(200X to pick font ID #200.). This works in Word
- and PCWrite. Unfortunately, the characters in the escape code
- are counted as taking up space in a line and can throw off the
- alignment of paragraphs.
- In WordPerfect, use the "Insert Printer Command" and type
- "<esc>(200X" literally. In Sprint goto "Style Other Format" and
- type "ESCAPE s= "@@char(27)(200X" ". These methods do not take
- up space in a line.
- Calling a font by its ID number is useful when loading fonts with
- the same characteristics. For example: A font modified with the
- white on black option looks the same to the LaserJet as the
- unmodified font. If your program calls one of these fonts by
- description, the LaserJet will pick the font with the lower ID
- (Higher on some clones!). On this page, normal 10 pt Helv is
- called by description. The white on black version is loaded with
- a higher ID and called by its ID. Another method is to change
- the weight of the white on black font. Include this font in your
- printer driver or embed an escape code to call it by weight.
- If you want to use BitStream fonts that came with one program in
- another program, notice the nonstandard weights. Most soft
- fonts use a weight of 0 for normal characters and 3 for bold.
- BitStream uses -2 for normal and 2 for bold. You will also have
- to decode the strange names given to their fonts.
- This document was produced with Sprint. To create a printer
- driver for these fonts, I started with a cartridge definition in
- "HP.SPL". Then I copied fonts from other definitions and used
- the -WT option with WT2SPL.EXE to build a customized version.
- To make a new printer driver for Sprint, copy SP-SETUP.EXE,
- MAIN.SPL, and HP.SPL to your hard disk. Then edit HP.SPL. Run
- SP-SETUP from the hard disk and choose "Printer Installation".
- (P.S. Sprint users look for "SPRINT A Power User's Guide" by
- Scott Lenz and Charles Ackerman, John Wiley and Sons Inc.)
- BEGIN FOOTER
- END FOOTER
- FONT HELV10
- FONT HELV24
- R E G I S T R A T I O N F O R M
- Registration is required if you wish to use FontLoader 1.50
- beyond a 30 day trial period.
- Producing programs like FontLoader takes more effort than most
- people realize. If the effort is rewarded, FontLoader will be
- enhanced. Registered users receive weights, shadows, and
- floating shadows. ShareWare, if supported, can provide the best
- value in software. Please Register!
- Please remit payments to:
- FONT HELV12
- Will Temple
- P.O. Box 5548
- Incline Village, NV 89450-5548
- _____ FontLoader Registration
- $ 25.00 ea $ _______
- Any Extra Generosity
- $ _______
- Subtract $5.00
- - $ 5.00 ea $ _______
- (Subtract if you've distributed, promoted or uploaded
- FontLoader in any way)
- Subtotal $ _______
- Nevada residents add 6% sales tax
- $ _______
- ($1.50 on $25.00 and $1.20 on $20.00)
- Total $ _______
- _____ Please inform me of new versions.
- Name:
- Company:
- Street:
- City, State:
- Zip:
- Phone:
- SUGGESTIONS
- I use FontLoader with the following software:
- Programs:
- Other suggestions or tips for other users of your software:
- P.S. If you want another copy of this Registration form, an
- ASCII version is in REGISTER.FRM. Use: "COPY REGISTER.FRM
-