home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / LASER / FONTLD13.ZIP / FONTLODR.SPR (.txt) < prev    next >
Encoding:
Sprint Document  |  1990-04-04  |  16.3 KB  |  402 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. END FOOTER
  5. RESERVE .5 inches
  6. FONT HELV24
  7. ESCAPE s= "@char(27)(12X"
  8. F O N T 
  9. ESCAPE s=
  10. "@char(27)(13X"
  11. L O A D E R 
  12. FONT HELV18
  13. F O N T L O A D E R
  14. FONT HELV12
  15. F O N T L O A D E R
  16. FONT HELV10
  17. F O N T L O A D E R
  18. FONT HELV10
  19. Version  1.30
  20. FONT HELV10
  21. FONT HELV12
  22. Will Temple
  23. 1199 Spanish River Rd.
  24. Boca Raton, FL 33432
  25. (407) 391-5850
  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 thick outlines,  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.  Two fine examples are at the top off this
  50. page.  Register to receive these and 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  Will Temple   All Rights Reserved
  68. LaserJet(tm) is a trademark of the Hewlett-Packard Company
  69. ESCAPE s= "@char(27)(9X"
  70. USING FONTLOADER
  71. R 65,T 5 13
  72. Format:    
  73. FONT HELV12
  74. FontLodr  FontFile  [Options]  [Device
  75. Options:
  76. L 13,R 65,I 5,T 5 13
  77. -F:#    Turn a proportional font to a fixed font of pitch
  78. "#". 
  79. -L    Rotate portrait to landscape.  Don't rotate a 
  80. landscape font.
  81. -R    Rotate font.  A landscape font will become an upside
  82. down portrait font.
  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. -C    Clear with a Reset.        -D    Delete all
  91. soft fonts.  
  92. -E    Permanent (Default).        -T    Temporary.              
  93. -P    Primary.            -S    Secondary.              
  94. R 65,T 5 13
  95. Device:    "PRN", "LPT1-3",  or file name.    Default is "PRN".
  96. ID:        Soft font ID number (0-32767).    Default is "0".
  97. FontLoader scales fonts by scaling the bit pattern.  The results
  98. when scaling down are usually good.  This font is 10 point scaled
  99. down from 24.  Scaling up, however, is something you want to
  100. avoid.  
  101. Scaling can be applied to the width or height of a character
  102. independently.  This can be used to generate a tall thin font or
  103. a short fat font.  (DOS Tip:  To use a "%" in a batch file, 
  104. specify it twice.)
  105. Rotated fonts lose nothing in the translation.  Rotate a font
  106. four times and the result is an exact duplicate of the original. 
  107. The same applies to mirror and upside down.
  108. The fixed pitch option can be issued without specifying the
  109. pitch.  Just use "-f".  It's not recommended as most proportional
  110. fonts end up with to much space between the characters.  Use this
  111. option to mix text and columnar data with matching typestyles.
  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. Fonts loaded as Temporary will be erased from the LaserJet when a
  126. "-C" reset code (Esc E) is issued.  Permanent fonts (default)
  127. survive the reset.  "-D" deletes all soft fonts.
  128. A font loaded as Primary is now in use.  A font loaded as
  129. Secondary can be selected for use by sending the LaserJet a
  130. Control N character.  The Primary font can be reselected with a
  131. Control O.
  132. Parameter passing is flexible.  The first example is recommended
  133. but the others work for compatibility.
  134. "FontFile -r-e-p-q prn 0"  =  "FontFile -r-p-q 0"         
  135. "FontFile 0 p p"  =  "FontFile -pr"
  136. ESCAPE s= "@char(27)(9X"
  137. USING RESPONSE FILES
  138. Format:    
  139. FONT HELV12
  140. FontLodr  @@ResponseFile [FontFile] 
  141. [Options]  [Device ID] 
  142. A Response file is simply an ASCII text file of command lines.
  143. Parameters passed after the response file on the command line
  144. become FontLoader's default values.  There are,  however, 
  145. exceptions:  If a font file is not passed on the command line, 
  146. the font file from the previous line in the response file is
  147. used.  Also,  a font ID number in the response file becomes the
  148. new default value.  Font ID numbers increment with every line. 
  149. If the output device is "NUL",  the font ID does not increment
  150. and the font file is not processed.
  151. Here's an example we will name RespFile:
  152.     HV24.USP nul
  153.     -s:12-m
  154.     -s:8
  155.     HV10.USP nul 100
  156.     -s:10
  157. To use this response file pass the file name to FontLoader as the
  158. first parameter with an "@@" symbol proceeding the name:  (Keep
  159. in mind:  Fonts sent to the "NUL" device are not sent.)
  160. This    "C:>FontLodr @@RespFile"        Equals    "C:>FontLodr
  161. HV24.USP -s:12-m"
  162.                             "C:>FontLodr
  163. HV24.USP -s:8 1"
  164.                             "C:>FontLodr
  165. HV10.USP -s:10 100"
  166. So why didn't I just set up this file:    Or pass the font on
  167. the command line to this:
  168.     HV24.USP -s:12-m                -s:12-m
  169.     HV24.USP -s:8                    -s:8
  170.     HV10.USP 100                    -s:10 100
  171. Well I could have done it either way but I wanted to show you a
  172. trick that increases the flexibility of the response file. 
  173. Here's the trick:  If I execute the response file with no font
  174. file,  as above,  the fonts HV24.USP and HV10.USP are used.  But, 
  175. If I pass another font file on the command line,  Then:
  176. This    "C:>FontLodr @@RespFile TR30.USP 10"    Equals    "C:>FontLodr
  177. TR30.USP -s:12-m 10"
  178.                             "C:>FontLodr
  179. TR30.USP -s:8 1 11"
  180.                             "C:>FontLodr
  181. TR30.USP -s:10 100"
  182. Here's another trick:  Placing  "-SW:100%" alone on a line in the
  183. response file will send the current font file without
  184. modification.  This works because "-SW:100" is a default.  
  185. You may pass a response file a device name without a font file
  186. name or an option as long as the device name is "PRN", "LPT1",
  187. "LPT2", "LPT3", or "NUL".  (i.e.  "C:>FontLodr @@RespFile lpt2
  188. 1200").   
  189. If you make a response file with your word processor,  make sure
  190. the file is pure ASCII text.  Most word processors will normally
  191. write files in their own file format but will provide a way to
  192. write ASCII text files.
  193. When using response files,  a list of the fonts being loaded, 
  194. their ID numbers,  options,  and total bytes will be displayed on
  195. your monitor.  The "-Q" quiet option can be used to suppress this
  196. display.  
  197. ESCAPE s= "@char(27)(9X"
  198. EXAMPLES
  199. FONT HELV8
  200. 8 point type.    FontLodr hv24.usp -s:8 prn 0
  201. FONT HELV10
  202. 10 point type.  
  203.   FontLodr hv24.usp -s:10 prn 1
  204. FONT HELV12
  205. 12 point type.     FontLodr hv24.usp -s:12 prn 2
  206. FONT HELV18
  207. 18 point type.    FontLodr hv24.usp -s:18 prn 3
  208. FONT HELV24
  209. 24 point type.   Outline! "-o"
  210. BEGIN COLUMN
  211. ESCAPE s= "@char(27)(0X"
  212. Thin Font "-sw:40%-sh:67%"
  213. END COLUMN
  214.                         
  215. ESCAPE s=
  216. "@char(27)(1X"
  217. Wide Font "-sh:67%".
  218. FONT HELV10
  219. The wide font was made by reducing height.  It's almost always
  220. better to scale fonts down.  But you can scale up like this: 
  221. "-sw:150%".  A point size of about 120 is the limit to how much a
  222. font may be scaled up.  
  223. PROPORTIONAL font doesn't line up.          
  224. ESCAPE s=
  225. "@char(27)(2X"
  226. FIXED width does. "-f-s:12".
  227. FONT HELV10
  228. Proportional font doesn't line up.          
  229. ESCAPE s=
  230. "@char(27)(2X"
  231. Fixed width does. "-s:12-f".
  232. FONT HELV10
  233. Good for transparencies:            
  234. FONT HELV12
  235. Mirror:
  236. ESCAPE s= "@char(27)(4X"
  237.     rorriM "m-".
  238. Upside Down "-u":               Upside Down & Mirrored
  239. "-m-u":
  240. BEGIN COLUMN
  241. ESCAPE s= "@char(27)(5X"
  242. Upside Down "-u"    
  243. END COLUMN
  244.                     
  245. ESCAPE s=
  246. "@char(27)(6X"
  247. "u-m-" derorriM & nwoD edispU
  248. FONT COURIER
  249. BEGIN COLUMN
  250. STYLE leftindent 12 picas
  251.                      
  252.                      
  253.                      
  254. END COLUMN
  255. STYLE leftindent 12 picas, linelength 13 picas
  256. ESCAPE s= "@char(27)(9X"
  257.                          
  258. ESCAPE s= "@char(27)(9X"
  259.    This is White on Black! "-w-aa"
  260. ESCAPE s= "@char(27)(9X"
  261.    Would you like to know
  262. ESCAPE s= "@char(27)(9X"
  263.    how it's done?
  264. FONT HELV10
  265. STYLE leftindent 0 picas, linelength 39 picas
  266. To use the white on black option,  the cell height and baseline
  267. length values in a soft fonts header record may have to be
  268. modified.  If these values are not great enough there will not be
  269. enough black space above and below the character.  Use the "-aa" 
  270. Auto Adjust option to have FontLoader adjust these values.  This
  271. has no effect on a font without the white on black option.  If
  272. there is still white space between lines then you will have to
  273. set these manually.  Set the cell height to your printer driver's
  274. Vertical Motion Index for the font.  I recommend finding a
  275. utility that can modify font header records.  But you can do it
  276. with DEBUG and the "Programming Laser Printers" book mentioned
  277. later.  
  278. Most word processors truncate spaces at the end of a line.  With
  279. white on black,  the space is a black box.  Its absence is
  280. noticed.  To print spaces on the right,  insert "hard"
  281. "non-breaking" spaces.
  282. If white on black is used for several lines with a proportional
  283. font,  the right margin will be ragged.  The easiest solution is
  284. to fix the pitch: "-w-f:12".  But if you want proportional,  as
  285. in the example,  here's one solution:  Draw an outline box with
  286. the resident courier high bit PC8 characters.  Then set up a
  287. second column to print at the same left margin.  Switch to the
  288. reversed font and write your lines of text,  ending with hard
  289. spaces to fill in the box.  
  290. Of course,  all these fonts could have been generated as
  291. landscape fonts by adding the "-L" option.
  292. ESCAPE s= "@char(27)(9X"
  293. USING FONTS
  294. To find out how to use soft fonts with your favorite software I
  295. recommend the following books:
  296. FONT HELV12
  297. Programming Laser Printers
  298. HELV12
  299. LaserJet Companion
  300.     Timothy Perrin                        Mark W.
  301. Crane and Joseph R. Pierce
  302.     MIS Press,  Portland Oregon             The Cobb
  303. Group, Inc.  Louisville Kentucky
  304. To get you up and running quickly,  here are the basics:  If you
  305. are going to use proportional fonts with your software,  your
  306. software must support them.  Support means that your software
  307. knows how to call them and has a width table.  Most programs that
  308. support the LaserJet at least have drivers for the HP font
  309. cartridges and for the HP soft font packages.  To use soft fonts
  310. that your printer doesn't know about,  the printer driver can be
  311. edited to include the font.  Or,  you can download the font with
  312. FontLoader and have your program call a font with similar
  313. characteristics(width table,  vertical size,  weight,  etc.)  and
  314. then embed an escape code to call the font by its ID number.  
  315. Every font that is set to your LaserJet has an ID number
  316. associated with it.  The number can be from 0 to 32767.  No two
  317. fonts can have the same ID.  If your program loads fonts for you, 
  318. you won't know what ID's it's using.  If you want to load a font
  319. that isn't loaded automatically,  use FontLoader to load the font
  320. with a high ID number.  
  321. To call a font by its ID number,  you will have to find out how
  322. to embed an escape character(char 27) in your text.  With many
  323. word processors you can hold down the Alt key,  then press the 2
  324. key and then the 7 key on the numeric keypad,  and then release
  325. the Alt key.  After the escape character,  the rest of the code
  326. can be typed in.  To select a primary font the code is  <esc>(#X 
  327. (example:  <esc>(200X to pick font ID #200.).  This works in Word
  328. and PCWrite.  Unfortunately,  the characters in the escape code
  329. are counted as taking up space in a line and can throw off the
  330. alignment of paragraphs.  
  331. In WordPerfect,  use the "Insert Printer Command" and type
  332. "<esc>(200X" literally.  In Sprint goto "Style Other Format" and
  333. type "ESCAPE s= "@@char(27)(200X" ".  These methods do not take
  334. up space in a line.  
  335. The ability to call a font by its ID number can be useful if you
  336. want to load fonts that have the same characteristics.  For
  337. example:  A font will look the same to the LaserJet as a font
  338. modified with the white on black option.  If your program calls
  339. one of these fonts by its description,  the LaserJet will pick
  340. the font with the lower ID (Higher ID with some clones!).  On
  341. this page,  normal 10 point Helv is called by its description. 
  342. The white on black version is loaded with a higher ID and is
  343. called by its ID.  
  344. If you want to use BitStream fonts that came with one program in
  345. another program,  note that the weights are non-standard.  Most
  346. soft fonts use a weight of 0 for normal characters and 3 for
  347. bold.  BitStream uses -2 for normal and 2 for bold.  You will
  348. also have to decode the strange names given to their fonts.  
  349. This document was produced with Sprint.  To create a printer
  350. driver for these fonts,  I started with a cartridge definition in
  351. "HP.SPL".  Then I copied fonts from other definitions to build a
  352. customized version.  With all the fonts in this file,  I have
  353. managed to find a font that matches close enough to the font I
  354. loaded.  
  355. To make a new printer driver for Sprint,  copy SP-SETUP.EXE, 
  356. MAIN.SPL,  and HP.SPL to your hard disk.  Then edit HP.SPL.  Run
  357. SP-SETUP from the hard disk and choose "Printer Installation". 
  358. (P.S.  Sprint users should check out "SPRINT A Power User's
  359. Guide" by Scott Lenz and Charles Ackerman,  John Wiley and Sons,
  360. Inc.)
  361. FONT HELV24
  362. REGISTRATION FORM
  363. Registration is required if you wish to use FontLoader 1.30
  364. beyond a 30 day trial period.  
  365. Producing programs like FontLoader takes more effort than most
  366. people realize.  If the effort is rewarded,  FontLoader will be
  367. enhanced.  Registered users will receive many font effects
  368. including weights,  shadows,  floating shadows,  and thick
  369. outlines.  Please Register!  ShareWare provides the best value in
  370. software.  But only if you support it.  
  371. Please remit payments to:
  372. FONT HELV12
  373. Will Temple
  374. 1199 Spanish River Rd.
  375. Boca Raton, FL 33432
  376. (407) 391-5850
  377. _____  FontLoader Registration 
  378.  $ 20.00 ea  $ _______
  379. _____  FontLoader Current Disk 
  380.  $ 10.00 ea  $ _______
  381.       Any Extra Generosity 
  382.   $ _______
  383. _____  5 1/4  _____  3 1/2  Disk Preference 
  384. Subtotal  $
  385. _______
  386.       Florida residents add 6% sales tax 
  387.   $ _______
  388.       ($1.20 on $20.00 and $.60 on $10.00)
  389. Total  $ _______
  390. _____  Please inform me of new versions.
  391. Name:    
  392. Company:    
  393. Street:    
  394. City, State:    
  395. Zip:     
  396. Phone:    
  397. SUGGESTIONS
  398. Please upload FontLoader to my favorite BBS.
  399. Name:    
  400. Phone:    
  401. Other Suggestions:
  402.