home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / LASER / FNTLDR24.ZIP / FONTLDR.DOC < prev    next >
Encoding:
Text File  |  1989-09-14  |  18.4 KB  |  482 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.                             FontLoader(C)
  18.  
  19.                        Intelligent Systems Inc.
  20.                            701 E. Campbell
  21.                           Gilbert, Az 85234
  22.                                Voice
  23.                            (602) 892-3102
  24.                                Data
  25.                         Computer Warehouse BBS
  26.                            (602) 468-1439
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.                               Fontloader(C)
  51.                                  Preface
  52.  
  53. I wasn't too happy with the fontloaders that HP and others had written
  54. for the HP Laserjet printer, so I took it upon myself to learn to
  55. program in Turbo Pascal 5.0, as a challenge, and FontLoader is the
  56. result of this effort. I have taken many pains to make the program bug
  57. free, and work properly. Regardless of the many hours I have put in,
  58. there will inevitably be some weird things happen. So, please be
  59. patient, and send me your suggestions and advice in making this program
  60. a better product. Please participate, and help this become the program
  61. that others have failed to create.
  62.  
  63. I have used many routines picked up off of bulletin boards, so
  64. consequently I cannot take all the credit. I also will not take too much
  65. time to name them (mainly cause I am not sure of some of them), but one
  66. should be mentioned. The most significant contributor is also by far the
  67. heaviest contributor, TechnoJock Software, and their Toolbox: TTT5. In
  68. this kit is nearly every routine needed to make programming in Turbo
  69. Pascal 5.0 a snap. I highly recommend downloading it and registering it.
  70. You can get it from our bulletin board (Computer Warehouse BBS (602)
  71. 468-1439), or GEnie, CompuServe, or any other BBS which supports Turbo
  72. Pascal Programming.
  73.   
  74.                                   Page 1
  75.  
  76.                               FontLoader(C)
  77.                                  Index
  78.  
  79.  
  80.  
  81.          Chapter  1. Purpose of FontLoader ................. Page 3
  82.  
  83.          Chapter  2. Requirements of FontLoader ............ Page 4
  84.  
  85.          Chapter  3. Using the Utility Package ............. Page 6
  86.  
  87.  
  88.  
  89.                                 Page 2
  90.  
  91.                              FontLoader(C)
  92.                   Chapter 1: The Purpose of Fontloader(C)
  93.  
  94.         If you are like me, you probably think there is no easy way to
  95. download softfonts to a HP Laser Jet or compatible printer. Well in
  96. comes FontLoader(C). I was under the impression that HP or some printer
  97. manufacturer who makes compatibles would make it possible to quickly
  98. download some fonts, but I was WRONG! The problem is that all of the
  99. programs I have seen are limited to one font, or don't allow you to save
  100. font lists, and the like. I have spent the last few months seeking ways
  101. to accomplish this, and I decided that writing my own would be the
  102. answer. I am also in the process of refining it, and hope to add more
  103. features including a memory resident option, among others. This is where
  104. the user can be helpful. I am like most authors of Shareware, trying to
  105. write useful programs, and hoping for a little in return. Therefore, if
  106. you wish to have assistance, and the latest version of FontLoader(C),
  107. you will be asked to register your version. This is painless. A
  108. contribution of $10 would go a long way to encourage refinements of the
  109. type I speak of. Please consider (after evaluating the product)
  110. registering your copy of it. FontLoader(C) allows functions I have not
  111. seen in any other product including commercially written programs such
  112. as HP's own SoftFont Loader package. However nice these packages are,
  113. they don't allow you to see what is going on. FontLoader(C) does this by
  114. allowing you to see which fonts (by filename) are currently being
  115. downloaded. You can save the Font list, assign a name, and come back
  116. later, retrieve, then download 10 fonts (ID 0 to 9) in a snap. In this
  117. way you don't have to keep returning to the Select Fonts command to
  118. select the fonts you want to download time and time again. This is the
  119. power of FontLoader(C).
  120.  
  121.                                 Page 3
  122.  
  123.                             FontLoader(C)
  124.                  Chapter 2: Requirements of Fontloader
  125.  
  126.         Obviously there are a few simple but important requirements to
  127.         make FontLoader(C) work for you:
  128.  
  129.                 1. You need Soft Fonts!
  130.                    a. HP Soft Fonts are fully?* supported.
  131.                    b. BitStream Fonts are also supported.
  132.                    c. SWFTE fonts supported.
  133.                    d. Other fonts may work, but have not been tested
  134.                       with this program. However they should work, the
  135.                       only thing not possible is to address ALL the
  136.                       names of fonts available. This is too
  137.                       comprehensive for the scope of this project.
  138.  
  139.                 2. An IBM or Compatible (obviously).
  140.                    This program was developed on an 8 mhz IBM AT and
  141.                    Clone XT (i.e. 286 speedup). Also tested on a 100%
  142.                    compatible IBM PC XT.
  143.  
  144.                 3. A hard drive is necessary.
  145.                     I have NOT tried to use a floppy disk. I think it
  146.                     would be a mistake to attempt to make the program
  147.                     work on a floppy, as swapping disks would be a no-no.
  148.                     However, some files need to be itemized.
  149.  
  150.                     a. A list of the files on the disk. Depending on the
  151.                     number of fonts available, this could vary in size.
  152.                     the maximum number of fonts supported in one
  153.                     subdirectory is 200.
  154.  
  155.                     b. If you intend to save configuration files for
  156.                     quick retrieval of lists, you will need enough space
  157.                     to save these on the disk also. This file list
  158.                     contains the filename of the fonts (up to 10 fonts).
  159.                     The file name you supply with an extension of .SFN
  160.                     is added automatically. Note: You can create this
  161.                     file outside of FontLoader(C) with a text editor if
  162.                     you wish, but is easier to make inside as you will
  163.                     quickly find out.
  164.  
  165.                 4. 256k of free memory.
  166.  
  167.                 5. A HP Laser Jet or compatible printer with enough
  168.                    memory to handle a maximum of 10 downloaded fonts.
  169.                    You could obviously get by with less memory, but you
  170.                    may not be able to download all 10 fonts. This
  171.                    probably means that if you have the base Laser Jet
  172.                    with minimum memory, (not the Plus), then you will
  173.  
  174.                 * (If there are some releases since our issue of this
  175.                    set of softfonts from HP, this may not be accurate.)
  176.  
  177.                                      Page 4
  178.  
  179.                                   FontLoader(C) 
  180.                    Chapter 2: Requirements of Fontloader (cont.)
  181.  
  182.                    not be able to use all 10 fonts, especially fonts of
  183.                    a large point size. It should still work in those
  184.                    cases though, just limit the number of downloaded
  185.                    fonts to 5 of so.
  186.  
  187.                                   Page 6
  188.  
  189.                              Chapter 3  Utilities
  190.  
  191. PURPOSE
  192.  
  193. To facilitate the setup and manipulation of the Hewlett-Packard
  194. LaserJet printer.
  195.  
  196. REQUIREMENTS
  197.  
  198. The HP LaserJet, optional font cartridges, Fontldr(C).
  199.  
  200. To access fonts other than those built into the ROM of the
  201. LaserJet (that is, Courier 10 portrait (vertical) and Courier 10
  202. landscape) you must have one of the following optional Font
  203. Cartridges:
  204.  
  205. 92286A - Roman-8
  206.        Bold and Italic for Courier 10
  207.        Line Printer (16.6 cpi) landscape
  208.  
  209. 92286B - TMS Proportional USACII:
  210.        Times Roman 10 point normal, bold, italic
  211.        Times Roman 8 point (no bold or italic)
  212.        Helvetica 14.4 point (bold only);
  213.        Line Printer (landscape) 16.6 cpi
  214.  
  215. 92286D - Prestige Elite
  216.        This cartridge overrides Courier 10 as the default for the
  217.        LaserJet.  Resetting the printer invokes Prestige Elite 10
  218.        point, 12 cpi with the Roman-8 character set.
  219.        USACII is available from the Font menu.
  220.        Bold and Italic.
  221.  
  222. 92286E - Letter Gothic
  223.        Bold and Italic 12 point, 12 cpi
  224.  
  225.  
  226. USAGE
  227. All commands can be accessed by typing the letter of the
  228. command.  Alternately, you can move the highlight to the desired
  229. command and press <enter>.
  230.  
  231. The highlight is moved using the following keys:
  232. spacebar, right-arrow - highlight next command
  233. backspace, left-arrow - highlight previous command
  234. Home - goto first command
  235. End  - goto last command
  236.  
  237. LOADING:
  238.  
  239. Simply by entering Fontldr at the Dos Prompt.
  240.  
  241. OPTIONS:
  242.  
  243. The Main Menu has the following commands:
  244.  
  245. QUIT - returns to the operating system
  246.  
  247. PRIMARY - invokes the Font Menu to set the primary font
  248.  
  249. SECONDARY - invokes the Font Menu to set the secondary font
  250.           possible fonts on Font Menu:
  251.  
  252.       Prop - 92286B
  253.  
  254.       Courier - Roman-8 10cpi
  255.  
  256.       Elite - USACII Prestige Elite 92286D 10 point 12 cpi
  257.           [note: Roman-8 Prestige Elite overrides Courier as the default
  258.           font. However, if you wish to access USASCII, you must select
  259.           Elite on the menu.
  260.  
  261.       Gothic - 92286E
  262.  
  263.       Line - line printer - landscape mode
  264.                [pitch dependant on active cartridge]
  265.                          If there is no cartridge installed, the default pitch
  266.                          is Courier 10 in landscape;
  267.                You are prompted to select portrait on landscape
  268.                orientation.  The later requires that you have one
  269.                of the p/l cartridges which allow Line Printer (16.66 cpi)
  270.                in either landscape or portrait.
  271.  
  272.       Helv - Helvetica 14.4 point
  273.  
  274.       TinyPro - Times Roman 8 point
  275.  
  276.       Bold - bold of current font, if available
  277.  
  278.       Italic - Italic of current font, if available
  279.  
  280. IN      - Primary font active
  281. OUT     - Secondary font active
  282.  
  283.         [note: the LaserJet allows two Fonts to be selected at a
  284.         time.  This enables you to switch (either from
  285.         Fontldr or from your application) the active font.
  286.  
  287.         For example:
  288.         if you have the proportional space font loaded.
  289.         Set Primary to Prop.  Set Secondary to Italic.
  290.         If you are using WordStar (or some other patchable
  291.         editor), you can now specify, through WordStar's
  292.         intallation program, a printer format command that will
  293.         switch to Italic by sending ^O at the beginning of the
  294.         words to be italicized and ^N when you wish to return
  295.         to primary (normal) printing.
  296.         Or, in other editors, you can actually embed the ^O/^N
  297.         pair manually into the text.
  298.         Or, if you are printing a straight ascii file from
  299.         within Fontldr, you can select Out before List and
  300.         the entire file will be printed in the secondary font
  301.         (italics in this example). You could also set Primary
  302.         as Proportional and Secondary as Courier or Line
  303.         Printer.]
  304.  
  305. RESET - Resets to powerup defaults.  If the loaded font cartridge
  306.         does not override the ROM font, this will default to
  307.         Courier 10 portrait.  This clears all line settings and
  308.         margin settings.
  309.  
  310.  
  311. FORMAT - invokes a submenu that allows you to specify
  312.  
  313.      Offset - the number of spaces to offset the left
  314.        margin.  This is useful if printing an ascii file from
  315.        within Fontldr.
  316.  
  317.      Right Margin (that is the number of spaces to allow
  318.        for each line, at the currently specified font - with
  319.        TinyRmn you can have a larger line than Courier;  or in
  320.        Line Printer;
  321.  
  322.      Top Margin - the number of spaced to skip at the top of
  323.        each page (in addition to the default .5 inch);  uses the
  324.        current lines per inch to determine distance.
  325.  
  326.      Clear - clear all margin settings to default.  Top margin
  327.        must be reset to 5;  a full reset does this automatically.
  328.  
  329.      66 - allows the LaserJet, which usually prints only
  330.        62 lines per page, to print 66 lines per page.  This
  331.        enables you to use many page printer, WordStar and other
  332.        programs that expect to print 66 lines per page
  333.  
  334.      51 - sets the page length appropriate to landscape
  335.        printing.
  336.  
  337.      86 - sets the page length appropriate to legal sized
  338.        sheets.
  339.  
  340.      Lines - set the number of lines per inch.  Allowable
  341.        entries are: 1,2,3,4,6,8,16,24,58.  A setting of four
  342.        would print at one-and-a-half spacing.
  343.  
  344.      Size - Page Length :the total number of lines that will
  345.        print.  This is calculated by taking the number of lines
  346.        per inch multiplying by ten (the printable surface of
  347.        a regular sheet of paper) and subtracting any extra
  348.        space allocated to the Top Margin.
  349.  
  350.      Pitch - this option allows you to change the number of
  351.        characters per inch  the LaserJet will print;  This would
  352.        allow you to customize your document (much in the way
  353.        the .cw dot command does in WordStar);
  354.  
  355.        You can force the selected Font (Font must be selected FIRST) to
  356.        print in a pitch other than its normal pitch.  A 10 pitch font
  357.        (Courier) can print at 12;  or Elite (12 pitch) at 10.
  358.  
  359.        NOTE:  when using proportional space fonts, only the SPACE
  360.        character is affected by the Pitch commnad.  The result is
  361.        that the characters are no closer together (or further apart),
  362.        but the words are.
  363.  
  364.        NOTE:  Each time you select a Font, or switch from Primary to
  365.        secondary font, the PITCH is reset to the selected font's default.
  366.        So, select the font you wish to use FIRST.
  367.        This part of Fontldr uses the Horizontal Cursor Spacing
  368.        command.  See page 4-37 in the manual.
  369.  
  370.      Number - the number of copies the LaserJet should print.  This remains
  371.        in effect until changed manually or a Reset is performed.
  372.  
  373.  
  374. ENVELOPE - sets the margins and orientation for manual
  375.        feeding of a business-sized envelope.  Prompts for
  376.        addresses, allows editing, requires confirmation before
  377.        printing begins.
  378.  
  379. |      NOTE:  Version 3.0 has five lines each for return address and addresee
  380. |      NOTE:  Version 3.0 will allow you to save and load labels.
  381.        NOTE:  a complete reset is performed upon exitting the
  382.               Envelope option.
  383.  
  384.  
  385. LIST - prints an ASCII file to the LaserJet in either portrait (55 lines
  386.        per page) or landscape (47 lines per page), with page number and
  387.        optional header (consisting of filename).  At this time, Fontldr
  388.        will NOT print WordStar files.
  389.  
  390.        Note:  The Landscape option of the List commad sets the right hand
  391.        margin (line length) to 160.  This enables you to take advantage of
  392.        the Line Printer Font (16.6 cpi) on cartrige 92286B.  If, however,
  393.        you are only using the in ROM landscape Font (Courier 10 cpi), be
  394.        aware that any characters beyond 80 (minus left margin) will not be
  395.        printed.
  396.  
  397.        The left margin is left at 0 for both portrait and landscape under
  398.        the List command.  You can set it manually using the Offset command.
  399.  
  400.        There is now an option to print at either 6 lines per inche or
  401.        8 lines per inch.  In portrait mode, 6 lines per inch will print
  402.        58 textlines;  8 lines per inch will print 78 textlines.  In
  403.        landscape mode, 6 lpi will print 46 textlines;  8 lpi will print 58.
  404.  
  405.        NOTA BENE:
  406.        A complete RESET will be performed if List was activated in
  407.        Landscape mode; Otherwise Font selections will remain as selected
  408.        before entering List and lines per page will remain as selected
  409.        for printing.
  410.  
  411.  
  412. TYPE - a typewriter emulator that allows you to type and edit a page of text
  413.         (a full 66 lines) before sending it to the printer.
  414.         The bottom line of the display shows the Function Key commands
  415.         active within the TypeWriter.
  416.  
  417.         1-Undo last change in current line
  418.         2-Help Screen
  419.         3-Set Tabs
  420.         4-Enable Envelope Feed
  421.         5-Set LaserJet Margins
  422.         6-Print (line spacing 1,2,or 3)
  423. |       7-Save memo to disk
  424. |       8-Load memo from disk
  425.         9-Reset printer
  426.        10-Return to Main Menu
  427.  
  428. |NOTE: Version 3.0 allows the loading and saving of memos.  If you try
  429.        to load an ascii file larger than 66 lines LaserJet will read
  430.        the first 66 lines and then stop.  Avoid this.
  431.  
  432.  NOTE: Nothing will be sent to the LaserJet until you select Print (F6);
  433.        If you have not exited or erased the page with ESC, you can
  434.        print the page any number of times.
  435.  
  436.  
  437. OTHER ACTIVE KEYS
  438.  ESC - erases the current page and starts over
  439.  PgUp - up a screen
  440.  PgDn - down a screen
  441.  Home - moves to beginning of current line
  442.  End - moves to end of current line
  443.  Ctrl-Home - top line of current screen
  444.  Ctrl-End - bottom line of current screen
  445.  Ctrl-PgUp - goes to first line of page
  446.  Ctrl-PgDn - goes to last line of page
  447.  Ctrl-RightArrow - moves forward to next word
  448.  Ctrl-LeftArrow - moves back to previous word
  449.  Alt-F7 - erase from cursor to the end of current line
  450.  Tab - moves forward to next tab stop (see F3)
  451.  Shift-Tab - move backward to previous tab stop
  452. |Alt-D - deletes current line
  453. |Alt-N - inserts a new line at the cursor
  454. |Alt-E - erases the current line, positions cursor at column one
  455.  
  456.  FORMATTING:
  457.  Alt-I - begins and ends Italics
  458.  Alt-B - begins and ends Bold
  459.  Alt-U - begins and ends Underline
  460.  These codes must be entered a second time in order to
  461.  turned off formatting.  (e.g. <alt-u>anyword<alt-u>)
  462.  
  463.  Alt-S - makes Secondary font active for the words that follow until
  464.          Alt-P is encountered.
  465.  Alt-P - makes Primary font active again after an Alt-S
  466.  (e.g. <alt-s>This would be secondary font <alt-p>and this in primary).
  467.  
  468.  Alt-L - activates Landscape Orientation
  469.  Alt-M - activates Manual Feed
  470.  
  471.  Landscape (Alt-L or F4) orientation will be reset to portrait
  472.  upon exiting the TypeWriter.
  473.  
  474. NOTE:  With a little fiddling, you can use the TypeWriter to print labels.
  475. Test the spacing using autofeed, compare to your labels,  adjust, then
  476. print (number of copies also adjustable);
  477.  
  478. Also, if you need to print many copies of the same Envelope (or just the
  479. return address) the TypeWriter might be easier than the line by line
  480. editor under Envelope.
  481.  
  482.