home *** CD-ROM | disk | FTP | other *** search
Sprint Document | 1990-04-04 | 16.3 KB | 402 lines |
- R 65,T 5 13
- TABSET 2 picas, 7 picas, 20 picas,20 picas, 20 picas, 20 picas
- BEGIN FOOTER
- END FOOTER
- RESERVE .5 inches
- FONT HELV24
- ESCAPE s= "@char(27)(12X"
- F O N T
- ESCAPE s=
- "@char(27)(13X"
- 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.30
- FONT HELV10
- FONT HELV12
- Will Temple
- 1199 Spanish River Rd.
- Boca Raton, FL 33432
- (407) 391-5850
- 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
- fonts 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, outlines, mirror, and upside
- down. Registered users receive thick outlines, 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. Two fine examples are at the top off this
- page. Register to receive these and 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 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
- -F:# Turn a proportional font to a fixed font of pitch
- "#".
- -L Rotate portrait to landscape. Don't rotate a
- landscape font.
- -R Rotate font. A landscape font will become an upside
- down portrait font.
- -S:# Scale font to "#" point size. -O Outline.
- -SW:#% Scale width to "#" %. -SH:#% Scale height
- to "#" %.
- -M Mirror font. -U Turn font
- Upside Down.
- -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".
- FontLoader scales fonts by scaling the bit pattern. The results
- when scaling down are usually good. This font is 10 point 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.)
- 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 mirror and upside down.
- 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.
- 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.
- 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.
- 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.
- 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"
- 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.
- 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. Outline! "-o"
- 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-s:12".
- FONT HELV10
- Proportional font doesn't line up.
- ESCAPE s=
- "@char(27)(2X"
- Fixed width does. "-s:12-f".
- 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"
- This is White on Black! "-w-aa"
- ESCAPE s= "@char(27)(9X"
- Would you like to know
- ESCAPE s= "@char(27)(9X"
- how it's done?
- FONT HELV10
- STYLE leftindent 0 picas, linelength 39 picas
- To use the white on black option, the cell height and baseline
- length values in a soft fonts header record may have to be
- modified. If these values are not great enough there will not be
- enough black space above and below the character. Use the "-aa"
- Auto Adjust option to have FontLoader adjust these values. This
- has no effect on a font without the white on black option. If
- there is still white space between lines then you will have to
- set these 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, as
- in the example, here's one solution: Draw an outline box with
- the resident courier high bit PC8 characters. Then set up a
- second column to print at the same left margin. Switch to the
- reversed font and write your lines of text, ending with hard
- spaces to fill in the box.
- 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
- To get you up and running quickly, here are the basics: If you
- are going to use proportional fonts with your software, your
- software must support them. Support means that your software
- knows how to call them and has a width table. Most programs that
- support the LaserJet at least have drivers for the HP font
- cartridges and for the HP soft font packages. To use soft fonts
- that your printer doesn't know about, the printer driver can be
- edited to include the font. Or, you can download the font with
- FontLoader and have your program call a font with similar
- characteristics(width table, vertical size, weight, etc.) and
- then embed an escape code to call the font by its ID number.
- Every font that is set 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's it's using. If you want to load a font
- that isn't loaded automatically, use FontLoader to load the font
- with a high ID number.
- 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.
- The ability to call a font by its ID number can be useful if you
- want to load fonts that have the same characteristics. For
- example: A font will look the same to the LaserJet as a font
- modified with the white on black option. If your program calls
- one of these fonts by its description, the LaserJet will pick
- the font with the lower ID (Higher ID with some clones!). On
- this page, normal 10 point Helv is called by its description.
- The white on black version is loaded with a higher ID and is
- called by its ID.
- If you want to use BitStream fonts that came with one program in
- another program, note that the weights are non-standard. 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 to build a
- customized version. With all the fonts in this file, I have
- managed to find a font that matches close enough to the font I
- loaded.
- 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 should check out "SPRINT A Power User's
- Guide" by Scott Lenz and Charles Ackerman, John Wiley and Sons,
- Inc.)
- FONT HELV24
- REGISTRATION FORM
- Registration is required if you wish to use FontLoader 1.30
- 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 will receive many font effects
- including weights, shadows, floating shadows, and thick
- outlines. Please Register! ShareWare provides the best value in
- software. But only if you support it.
- Please remit payments to:
- FONT HELV12
- Will Temple
- 1199 Spanish River Rd.
- Boca Raton, FL 33432
- (407) 391-5850
- _____ FontLoader Registration
- $ 20.00 ea $ _______
- _____ FontLoader Current Disk
- $ 10.00 ea $ _______
- Any Extra Generosity
- $ _______
- _____ 5 1/4 _____ 3 1/2 Disk Preference
- Subtotal $
- _______
- Florida residents add 6% sales tax
- $ _______
- ($1.20 on $20.00 and $.60 on $10.00)
- Total $ _______
- _____ Please inform me of new versions.
- Name:
- Company:
- Street:
- City, State:
- Zip:
- Phone:
- SUGGESTIONS
- Please upload FontLoader to my favorite BBS.
- Name:
- Phone:
- Other Suggestions:
-