home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / LASER / FONTLD.ZIP / FONTLODR.SPR (.txt) < prev    next >
Encoding:
Sprint Document  |  1990-06-29  |  19.1 KB  |  448 lines

  1. R 65,T 5 13
  2. TABSET 2 picas, 7 picas, 20 picas,20 picas, 20 picas, 20 picas
  3. BEGIN FOOTER
  4. FONT HELV10
  5. FontLoader Documentation
  6.  Page  
  7. PAGE, t="%d"
  8. END FOOTER
  9. RESERVE .5 inches
  10. FONT HELV24
  11. ESCAPE s= "@char(27)(12X"
  12. F O N T L O A D E R 
  13. FONT HELV18
  14. F O N T L O A D E R
  15. FONT HELV12
  16. F O N T L O A D E R
  17. FONT HELV10
  18. F O N T L O A D E R
  19. FONT HELV10
  20. Version  1.40
  21. FONT HELV12
  22. Will Temple
  23. P.O. Box 5548
  24. Incline Village, NV 89450-5548
  25. (702) 831-8418
  26. ESCAPE s= "@char(27)(9X"
  27. GENERAL OVERVIEW
  28. BEGIN COLUMN
  29. FONT HELV24
  30. ESCAPE s= "@char(27)(12X"
  31. END COLUMN
  32. L 3,R 66,T 5 13
  33. ONTLODR.EXE is a LaserJet soft font loader that can rotate, 
  34. scale,  mirror,  reverse,  and fix the pitch of fonts on the
  35. fly.  It runs under MS-DOS/PC-DOS.  This document is printed
  36. with a single soft font!  
  37. R 65,T 5 13
  38. With FontLoader's help, the font has been downloaded into your
  39. LaserJet as several different fonts.  FontLoader can create new
  40. fonts or minimize the number of fonts you need to keep on your
  41. hard disk.  
  42. FontLoader is useful,  even with programs that come with fonts
  43. and load them automatically,  due to its font effects.  The
  44. effects include white on black,  outlines,  mirror,  and upside
  45. down.  Registered users receive shadows,  floating shadows,  and
  46. over twenty weight effects including horizontal,  vertical,  and 
  47. slanted stripes.  Outlines,  shadows,  and weights can all be
  48. combined to produce some stunning effects.  An example is at the
  49. top of this page.  Register to receive this font and many more.
  50. LICENSE AGREEMENT
  51. FontLoader is ShareWare!  FontLoader may be freely copied and
  52. distributed provided that no fee beyond normal media,
  53. duplication, and shipping costs is charged.  ShareWare libraries
  54. may carry FontLoader.  The following files must be present to
  55. distribute FontLoader:  FONTLODR.EXE,  FONTLODR.DOC,  READ.ME,
  56. PRINTDOC.BAT,  FL.RSP,  and HV240RPN.USP.  Furthermore,  these
  57. files may not be modified.
  58. DISCLAIMER
  59. FontLoader is provided with no warranty of any kind, implied,
  60. including, but not limited to, the implied warranties of
  61. merchantability and fitness for a particular purpose.  In no
  62. event shall the author be liable for any loss of profit or any
  63. other commercial damage, including but not limited to special,
  64. incidental, consequential or other damages.
  65. FONT HELV8
  66. Copyright  (C)  1989, 1990  Will Temple   All Rights Reserved
  67. LaserJet(tm) is a trademark of the Hewlett-Packard Company
  68. ESCAPE s= "@char(27)(9X"
  69. USING FONTLOADER
  70. R 65,T 5 13
  71. Format:    
  72. FONT HELV12
  73. FontLodr  FontFile  [Options]  [Device
  74. Options:
  75. L 13,R 65,I 5,T 5 13
  76. -F:#    Turn a proportional font to a fixed font of pitch
  77. "#". 
  78. -L    Rotate portrait to landscape.  Don't rotate a 
  79. landscape font.
  80. -R    Rotate font.  A landscape font will become an upside
  81. down portrait font.
  82. -RBM    Rotate Bit Map only.        -N:#    Narrow / Thin.    
  83. -S:#    Scale font to "#" point size.    -O[:#]    Outline.
  84. -SW:#%    Scale width to "#" %.        -SH:#%    Scale height
  85. to "#" %.
  86. -M    Mirror font.            -U    Turn font
  87. Upside Down.  
  88. -W    Reverse to White on black.    -AA    Auto Adjust
  89. cell height for "-w".
  90. -WT    Width Table.            -AW:#    Adjust
  91. Weight of font. (-7..7)
  92. -C    Clear with a Reset.        -D    Delete all
  93. soft fonts.  
  94. -E    Permanent (Default).        -T    Temporary.              
  95. -P    Primary.            -S    Secondary.              
  96. R 65,T 5 13
  97. Device:    "PRN", "LPT1-3",  or file name.    Default is "PRN".
  98. ID:        Soft font ID number (0-32767).    Default is "0".
  99. LOADING FONTS
  100. Fonts loaded as Temporary will be erased from the LaserJet when a
  101. "-C" reset code (Esc E) is issued.  Permanent fonts (default)
  102. survive the reset.  "-D" deletes all soft fonts.  (i.e. "FontLodr
  103. NUL. -D")
  104. A font loaded as Primary is now in use.  A font loaded as
  105. Secondary can be selected for use by sending the LaserJet a
  106. Control N character.  The Primary font can be reselected with a
  107. Control O.
  108. DEVICE AND ID NOTES
  109. When specifying an output device, FontLoader checks the name for
  110. a period.  If a period is present,  FontLoader outputs a new soft
  111. font file.  If the period is missing,  FontLoader assumes that
  112. the output device is connected to the LaserJet.  It then adds the
  113. control codes required to inform the LaserJet that a font will be
  114. download.  Thus, if a new soft font file is to be created that
  115. doesn't have an extension name, make sure a period is present at
  116. the end of the file name (i.e. "FontLodr HV240RPN.USP -r
  117. NewFile.").
  118. If the output device name is "PRN", "LPT1", "LPT2", or "LPT3" the
  119. ROM BIOS printer services are used.
  120. When loading multiple soft fonts, specify a different ID number
  121. for each font.
  122. Parameter passing is flexible.  The first example is recommended
  123. but the others work for compatibility.
  124. "FontFile -r-e-p-q prn 0"  =  "FontFile -r-p-q 0"         
  125. "FontFile 0 p p"  =  "FontFile -pr"
  126. ESCAPE s= "@char(27)(9X"
  127. OPTIONS NOTES
  128. The fixed pitch option can be issued without specifying the
  129. pitch.  Just use "-f".  It's not recommended as most proportional
  130. fonts end up with to much space between the characters.  Use this
  131. option to mix text and columnar data with matching typestyles.
  132. Rotated fonts lose nothing in the translation.  Rotate a font
  133. four times and the result is an exact duplicate of the original. 
  134. The same applies to the mirror and upside down options.  To
  135. create a portrait font from a landscape font,  rotate,  mirror, 
  136. and turn the font upside down,  all at once.
  137. The Rotate Bit Map option rotates a font normally but leaves the
  138. font's orientation unchanged.  The rotated font will print in the
  139. original direction but it's characters are rotated.  To write a
  140. word with the rotated font,  write the word vertically.  The
  141. width between characters will be the current line spacing.
  142. The Narrow / Thin option removes the specified number of dots
  143. from the outside edge of the characters.  As the number of dots
  144. specified is increased,  the characters will start to break apart
  145. and then will disappear.  This option works best with large
  146. fonts.  Try removing only one dot at first.
  147. FontLoader scales fonts by scaling the bit pattern.  The results
  148. when scaling down are usually good.  This font is 10 points
  149. scaled down from 24.  Scaling up, however, is something you want
  150. to avoid.  
  151. Scaling can be applied to the width or height of a character
  152. independently.  This can be used to generate a tall thin font or
  153. a short fat font.  (DOS Tip:  To use a "%" in a batch file, 
  154. specify it twice.)
  155. To use the white on black option,  the cell height and baseline
  156. length values in a soft font's header record may have to be
  157. modified.  Enlarge these values if there is not enough black
  158. space above and below the character.  Use the "-AA"  Auto Adjust
  159. option to adjust these values.  This has no effect on a font
  160. without the white on black option.  If there is still white space
  161. between lines,  set the cell height and baseline length manually. 
  162. Set the cell height to your printer driver's Vertical Motion
  163. Index for the font.  I recommend finding a utility that can
  164. modify font header records.  But you can do it with DEBUG and the
  165. "Programming Laser Printers" book mentioned later.  
  166. Most word processors truncate spaces at the end of a line.  With
  167. white on black,  the space is a black box.  Its absence is
  168. noticed.  To print spaces on the right,  insert "hard"
  169. "non-breaking" spaces.
  170. If white on black is used for several lines with a proportional
  171. font,  the right margin will be ragged.  The easiest solution is
  172. to fix the pitch: "-w-f:12".  But if you want proportional, 
  173. here's one solution:  Switch to the reversed font and write your
  174. lines of text.  Ending each line with enough hard spaces to
  175. create a right margin that is only slightly ragged.  Then set up
  176. a second column to print just in from the right margin and write
  177. a few spaces on each line to align the margin.  
  178. Outline will default to an outline of a single row of dots. 
  179. Optionally,  the thickness in dots can be specified.  For an
  180. interesting effect on large fonts,  create an outline six dots
  181. thick.  Send the results to a temporary file.  Then outline the
  182. temporary file without specifying the number of dots.  The result
  183. is a double outline.
  184. The Width Table option writes an ASCII text file of font
  185. information while loading the font.  To write the file without
  186. loading,  load to "NUL." (ending with a period!).  A file name
  187. can be passed:  -WT:"WTFile.Ext".  The name must be in double
  188. quotes.  See WIDTHTBL.TXT for more information.
  189. The Adjust Weight option changes a font's weight.  Weights can
  190. range from -7 to 7.  Normal fonts have a weight of 0.  3 for
  191. bold.  
  192. ESCAPE s= "@char(27)(9X"
  193. USING RESPONSE FILES
  194. Format:    
  195. FONT HELV12
  196. FontLodr  @@ResponseFile [FontFile] 
  197. [Options]  [Device ID] 
  198. A Response file is simply an ASCII text file of command lines.
  199. Parameters passed after the response file on the command line
  200. become FontLoader's default values.  There are,  however, 
  201. exceptions:  If a font file is not passed on the command line, 
  202. the font file from the previous line in the response file is
  203. used.  Also,  a font ID number in the response file becomes the
  204. new default value.  Font ID numbers increment with every line. 
  205. If the output device is "NUL",  the font ID does not increment
  206. and the font file is not processed.
  207. Here's an example we will name RespFile:
  208.     HV24.USP nul
  209.     -s:12-m
  210.     -s:8
  211.     HV10.USP nul 100
  212.     -s:10
  213. To use this response file pass the file name to FontLoader as the
  214. first parameter with an "@@" symbol proceeding the name:  (Keep
  215. in mind:  Fonts sent to the "NUL" device are not sent.)
  216. This    "C:>FontLodr @@RespFile"        Equals    "C:>FontLodr
  217. HV24.USP -s:12-m"
  218.                             "C:>FontLodr
  219. HV24.USP -s:8 1"
  220.                             "C:>FontLodr
  221. HV10.USP -s:10 100"
  222. So why didn't I just set up this file:    Or pass the font on
  223. the command line to this:
  224.     HV24.USP -s:12-m                -s:12-m
  225.     HV24.USP -s:8                    -s:8
  226.     HV10.USP 100                    -s:10 100
  227. Well I could have done it either way but I wanted to show you a
  228. trick that increases the flexibility of the response file. 
  229. Here's the trick:  If I execute the response file with no font
  230. file,  as above,  the fonts HV24.USP and HV10.USP are used.  But, 
  231. If I pass another font file on the command line,  Then:
  232. This    "C:>FontLodr @@RespFile TR30.USP 10"    Equals    "C:>FontLodr
  233. TR30.USP -s:12-m 10"
  234.                             "C:>FontLodr
  235. TR30.USP -s:8 1 11"
  236.                             "C:>FontLodr
  237. TR30.USP -s:10 100"
  238. Here's another trick:  Placing  "-SW:100%" alone on a line in the
  239. response file will send the current font file without
  240. modification.  This works because "-SW:100" is a default.  
  241. You may pass a response file a device name without a font file
  242. name or an option as long as the device name is "PRN", "LPT1",
  243. "LPT2", "LPT3", or "NUL".  (i.e.  "C:>FontLodr @@RespFile lpt2
  244. 1200").   
  245. If you make a response file with your word processor,  make sure
  246. the file is pure ASCII text.  Most word processors will normally
  247. write files in their own file format but will provide a way to
  248. write ASCII text files.
  249. When using response files,  a list of the fonts being loaded, 
  250. their ID numbers,  options,  and total bytes will be displayed on
  251. your monitor.  The "-Q" quiet option can be used to suppress this
  252. display.  
  253. ESCAPE s= "@char(27)(9X"
  254. EXAMPLES
  255. FONT HELV8
  256. 8  point type.    FontLodr hv24.usp -S:8 prn 0
  257. FONT HELV10
  258. 10 point type.  
  259.    FontLodr hv24.usp -S:10 prn 1
  260. FONT HELV12
  261. 12 point type.      FontLodr hv24.usp -S:12 prn 2
  262. FONT HELV18
  263. 18 point type.     FontLodr hv24.usp -S:18 prn 3
  264. FONT HELV24
  265. 24 point type.    Outline!  "-O"
  266. BEGIN COLUMN
  267. ESCAPE s= "@char(27)(0X"
  268. Thin Font "-SW:40%-SH:67%"
  269. END COLUMN
  270.                         
  271. ESCAPE s=
  272. "@char(27)(1X"
  273. Wide Font "-SH:67%".
  274. FONT HELV10
  275. The wide font was made by reducing height.  It's almost always
  276. better to scale fonts down.  But you can scale up like this: 
  277. "-sw:150%".  A point size of about 120 is the limit to how much a
  278. font may be scaled up.  
  279. PROPORTIONAL font doesn't line up.          
  280. ESCAPE s=
  281. "@char(27)(2X"
  282. FIXED width does. "-F:12-S:10".
  283. font HELV10
  284. Proportional font doesn't line up.          
  285. ESCAPE s=
  286. "@char(27)(2X"
  287. Fixed width does. "-s:10-f:12".
  288. font HELV10
  289. Good for transparencies:            
  290. FONT HELV12
  291. Mirror:
  292. ESCAPE s= "@char(27)(4X"
  293.     rorriM "M-".
  294. Upside Down "-U":               Upside Down & Mirrored
  295. "-M-U":
  296. BEGIN COLUMN
  297. ESCAPE s= "@char(27)(5X"
  298. Upside Down "-U"    
  299. END COLUMN
  300.                     
  301. ESCAPE s=
  302. "@char(27)(6X"
  303. "U-M-" derorriM & nwoD edispU
  304. FONT COURIER
  305. BEGIN COLUMN
  306. STYLE leftindent 12 picas
  307.                      
  308. END COLUMN
  309. STYLE leftindent 12 picas, linelength 13 picas
  310. ESCAPE s= "@char(27)(9X"
  311.                          
  312. ESCAPE s= "@char(27)(9X"
  313.                          
  314. ESCAPE s= "@char(27)(9X"
  315.    This is White on Black!  "-W-AA"
  316. FONT HELV10
  317. STYLE leftindent 0 picas, linelength 39 picas
  318. In the above example,  An outline box with the resident courier
  319. high bit PC8 characters was written.  Then,  a second column was
  320. set up to print at the same left margin.  The reversed font was
  321. used to write the line of text.  The line was filled out with
  322. hard spaces to fill in the box.  
  323. FONT HELV24
  324. ESCAPE s= "@char(27)(12X"
  325. Effects for Registered
  326. Users!
  327. Registered users receive shadows and weights.  The example above
  328. is a floating shadow.  It has been combined with one of the four
  329. horizontal stripe weight effects offered.  It has also been
  330. combined with the outline option and the offset of the shadow has
  331. been specified.
  332. This sample font effect is but one example of many fine effects
  333. that can be created with FontLoader.  Registered users will not
  334. only be provided with the documentation,  but will also be given
  335. a sample printout displaying some of the best effects.
  336. Of course,  all these fonts could have been generated as
  337. landscape fonts by adding the "-L" option.
  338. ESCAPE s= "@char(27)(9X"
  339. USING FONTS
  340. To find out how to use soft fonts with your favorite software I
  341. recommend the following books:
  342. FONT HELV12
  343. Programming Laser Printers
  344. HELV12
  345. LaserJet Companion
  346.     Timothy Perrin                        Mark W.
  347. Crane and Joseph R. Pierce
  348.     MIS Press,  Portland Oregon             The Cobb
  349. Group, Inc.  Louisville Kentucky
  350. Here are the basics:  To use proportional fonts,  your software
  351. must know how to call fonts and must have width tables.  To use
  352. fonts FontLoader creates,  create a new font file and install it
  353. as you would any soft font.  Some programs come with utilities to
  354. do this.  Others use third party utilities.  If no utility is
  355. available,  the -WT option can assist (see WIDTHTBL.TXT).  The
  356. new font file can be erased if your program doesn't try to
  357. automatically load it.   Alternatively,  you can load the font
  358. with FontLoader and have your program call a font with similar
  359. characteristics(width table,  vertical size,  weight,  etc.) and
  360. embed an escape code to call the font by its ID.
  361. Every font that is sent to your LaserJet has an ID number
  362. associated with it.  The number can be from 0 to 32767.  No two
  363. fonts can have the same ID.  If your program loads fonts for you, 
  364. you won't know what ID numbers it's using.  If you want to load a
  365. font that's not loaded automatically,  use FontLoader to load it
  366. with a high ID.  
  367. To call a font by its ID number,  you will have to find out how
  368. to embed an escape character(char 27) in your text.  With many
  369. word processors you can hold down the Alt key,  then press the 2
  370. key and then the 7 key on the numeric keypad,  and then release
  371. the Alt key.  After the escape character,  the rest of the code
  372. can be typed in.  To select a primary font the code is  <esc>(#X 
  373. (example:  <esc>(200X to pick font ID #200.).  This works in Word
  374. and PCWrite.  Unfortunately,  the characters in the escape code
  375. are counted as taking up space in a line and can throw off the
  376. alignment of paragraphs.  
  377. In WordPerfect,  use the "Insert Printer Command" and type
  378. "<esc>(200X" literally.  In Sprint goto "Style Other Format" and
  379. type "ESCAPE s= "@@char(27)(200X" ".  These methods do not take
  380. up space in a line.  
  381. Calling a font by its ID number is useful when loading fonts with
  382. the same characteristics.  For example:  A font modified with the
  383. white on black option looks the same to the LaserJet as the
  384. unmodified font.  If your program calls one of these fonts by
  385. description,  the LaserJet will pick the font with the lower ID
  386. (Higher on some clones!).  On this page,  normal 10 pt Helv is
  387. called by description.  The white on black version is loaded with
  388. a higher ID and called by its ID.  Another method is to change
  389. the weight of the white on black font.  Include this font in your
  390. printer driver or embed an escape code to call it by weight.
  391. If you want to use BitStream fonts that came with one program in
  392. another program,  notice the nonstandard weights.  Most soft
  393. fonts use a weight of 0 for normal characters and 3 for bold. 
  394. BitStream uses -2 for normal and 2 for bold.  You will also have
  395. to decode the strange names given to their fonts.  
  396. This document was produced with Sprint.  To create a printer
  397. driver for these fonts,  I started with a cartridge definition in
  398. "HP.SPL".  Then I copied fonts from other definitions and used
  399. the -WT option with WT2SPL.EXE to build a customized version.
  400. To make a new printer driver for Sprint,  copy SP-SETUP.EXE, 
  401. MAIN.SPL,  and HP.SPL to your hard disk.  Then edit HP.SPL.  Run
  402. SP-SETUP from the hard disk and choose "Printer Installation". 
  403. (P.S.  Sprint users look for "SPRINT A Power User's Guide" by
  404. Scott Lenz and Charles Ackerman, John Wiley and Sons Inc.)
  405. BEGIN FOOTER
  406. END FOOTER
  407. FONT HELV10
  408. FONT HELV24
  409. REGISTRATION FORM
  410. Registration is required if you wish to use FontLoader 1.40
  411. beyond a 30 day trial period.  
  412. Producing programs like FontLoader takes more effort than most
  413. people realize.  If the effort is rewarded,  FontLoader will be
  414. enhanced.  Registered users receive weights,  shadows,  and
  415. floating shadows.  ShareWare,  if supported, can provide the best
  416. value in software.  Please Register!
  417. Please remit payments to:
  418. FONT HELV12
  419. Will Temple
  420. P.O. Box 5548
  421. Incline Village,  NV 89450-5548
  422. _____  FontLoader Registration 
  423.  $ 25.00 ea  $ _______
  424.       Any Extra Generosity 
  425.   $ _______
  426.       Subtract $5.00 
  427. - $  5.00 ea  $ _______
  428.       (Subtract if you've distributed, promoted or uploaded
  429. FontLoader in any way)
  430. Subtotal  $ _______
  431.       Nevada residents add 6% sales tax 
  432.   $ _______
  433.       ($1.50 on $25.00 and $1.20 on $20.00)
  434. Total  $ _______
  435. _____  Please inform me of new versions.
  436. Name:    
  437. Company:    
  438. Street:    
  439. City, State:    
  440. Zip:     
  441. Phone:    
  442. SUGGESTIONS
  443. I use FontLoader with the following software:
  444. Programs:    
  445. Other suggestions or tips for other users of your software:
  446. P.S.  If you want another copy of this Registration form,  an
  447. ASCII version is in REGISTER.FRM.  Use:  "COPY  REGISTER.FRM 
  448.