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