home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 360b.lha / showfont_v4.1 / ShowFont.doc < prev    next >
Text File  |  1990-01-28  |  15KB  |  329 lines

  1. ShowFont 4.1 © 1989, 1990 by Arthur Johnson Jr.
  2. ===============================================
  3. Last update date - 01/17/90
  4. ---------------------------
  5.  
  6. **************************************************************
  7. * To see just the changes since revision ?.?, check out the  *
  8. * improved "Revisions n' Updates" section at the end of this *
  9. * documentation!                                             *
  10. **************************************************************
  11.  
  12. -----------------------------------------------------------------
  13. - All files in this archive are Copyright 1989, 1990 by myself. -
  14. - I lost the icon supplied by AmigoTimes, but ShowFont will     -
  15. - work from the Workbench if a suitable icon is created.  This  -
  16. - program may be freely distributed for NON-PROFIT purposes     -
  17. - ONLY.  It may NOT appear as a part of any commercial product  -
  18. - without my expressed permission - this goes for EACH new      -
  19. - version that comes out.  Sorry, but I like to keep track of   -
  20. - my program...  I guess that's enough legalese for now.        -
  21. -----------------------------------------------------------------
  22.  
  23. ShowFont
  24. --------
  25.  
  26.      This program allows you to quickly and painlessly view all
  27. 256 characters in a typical font.  I wrote it because using
  28. FontEd or (choke!) NotePad to see what a font looks like can be
  29. slow, tedious, monotonous, etc.
  30.  
  31.      To call this program from the Workbench, double-click on its
  32. icon.
  33.  
  34.      To run it from the CLI, type:
  35.  
  36.      ShowFont [font_name] [font_size] [font_style] <RETURN>
  37.  
  38.      [font_name] (Topaz, Ruby, etc.), [font_size] (8, 12, etc.),
  39. and  [font_style] (Underlined, Bold, Italics, Extended - use the
  40. first letters) are purely optional.  If you do not specify a
  41. size, ShowFont will check all your available fonts and then show
  42. you what sizes/styles of the font you wanted exist.  If you don't
  43. give a style, ShowFont will try to find the "normal" style of the
  44. font size you want.  If you omitted the font, you can select what
  45. font/size/style to see by using the font requester.
  46.  
  47. The Font Requester
  48. ------------------
  49.  
  50.      So, what's the font selector like?  Well, I've tried to make
  51. it pretty standard, including all the neat features most of the
  52. better ones have.  To select a font, size, or style, simply click
  53. on it with the left button.  When you have the desired font,
  54. size, and style selected, press the OK button.  You can also just
  55. double-click on the font, size, or style to do the same thing.
  56.      To scroll around the font, size, and style lists, click on
  57. the arrows or slider gadgets.  Since you've most likely used
  58. their like in other programs, you probably already know what they
  59. do.  Note that you can hold down the left button over these
  60. gadgets and the list will scroll rapidly in the direction of the
  61. arrow you're over.  You can also do this with the slider gadget
  62. and move up and down to scroll over the whole list.  To stop the
  63. scrolling, release the button.
  64.      If you decide you really don't want to look at a different
  65. font than what you had been checking out, press the CANCEL
  66. button.
  67.  
  68. /***************************************************************/
  69. /* Because most everyone changes their "Preferences," the      */
  70. /* colors I mention below might not be correct for your        */
  71. /* machine.  Just translate what the colors should be on your  */
  72. /* system (if you've changed them).  The original colors were  */
  73. /* blue, white, black, and orange (in order of how you can     */
  74. /* change them in Preferences).  Just look to see what your    */
  75. /* colors are where and things should be pretty easy to        */
  76. /* understand. Then again, they may not.                       */
  77. /***************************************************************/
  78.  
  79.      If the sizes of the font you've selected are printed in
  80. WHITE, the font is non-proportional (TOPAZ).  If they are printed
  81. in ORANGE, they are proportional (most everything else).  I added
  82. this so you can easily see what fonts you may have are
  83. non-proportional, since they are real nice when trying to make
  84. tables and stuff that needs to be organized in columns.  If you
  85. don't understand what I'm talking about, non-proportional fonts
  86. take up the same number of pixels per character, i.e., an 'i'
  87. takes as much space as an 'm'.  Proportional fonts space the
  88. characters according to how wide they are, i.e., an 'i' would
  89. definitely take less space to write than an 'm'.  Don't know what
  90. a pixel is?  Pixels are the small dots that can be seen if you
  91. press your face to your terminal screen.  What's a terminal
  92. screen?  Well, etc., etc.
  93.  
  94. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  95. The above explanation is a perfectly good RECURSIVE DEFINITION
  96. example.  But anyway, back to the documentation.
  97. |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
  98.  
  99.      Note that if you are in 2 color mode, the proportional and
  100. non-proportional size colors will be the same.
  101.  
  102.      Clicking CANCEL when you've just booted the program without
  103. any default font will cause the program to display TOPAZ 11 (if
  104. it exists).  I don't know why it doesn't use TOPAZ 8.  I've tried
  105. to tell it to many times and in many ways, but it ignores me.
  106. C'est la vie.  But you would never do that anyway, would you?
  107. Someday, I'll try to track down and eliminate this one-time
  108. fault.  Version 4.0 note: I will soon call this a "feature"
  109. instead of a bug...  Version 4.1: looks like a feature...
  110.  
  111. Menus
  112. -----
  113.  
  114.      For a change, I think I will try to organize this
  115. documentation a bit by listing all the menus and what each
  116. selection does. If this is too orderly for you, please call and
  117. tell me and I'll try to make it more confusing next time.
  118.  
  119. Menu    - Option              What is it?
  120. ---------------------------   -----------
  121. Project - About               Gives some useless information
  122.                               about the program.
  123. Project - Quit                Exits the program.
  124.  
  125. Fonts   - Change FONTS dir:   To redefine the current FONTS:
  126.                               directory.
  127.  
  128.  If you have the 'arp.library' (probably some Copyrights and
  129. trademarks associated with the name, I hope I don't offend anyone
  130. - I promise I'll send in the registration [someday...]),
  131. ShowFont will automagically bring up the nice ARP file requester.
  132. Just find and click on the name of the directory you want FONTS:
  133. redefined to (and click OK, or CANCEL if you change your mind).
  134. You can also select a font name, but so far (4.1), it won't show
  135. that font right off, but will instead read all the fonts.  I'll
  136. add that option in a more thoughtful release.
  137.  
  138.  If you don't have 'arp.library' (obligatory "Why not?"), you'll
  139. get my nastily spartan requester.  Just type in where ShowFont
  140. can find the new FONTS: directory.
  141.  Examples:  df1:fonts1
  142.             dh0:fonts/myfonts
  143.  After you've pressed RETURN, click OK to accept the new FONTS:
  144. directory, or Cancel to leave without altering anything.
  145.  
  146. Fonts   - Font Selection      Brings up the font selecting
  147.                               requester.
  148.  
  149. Screen  - Screen Format       To change the screen size and
  150.                               number o' colors.
  151.  
  152.      Notice that all the menu options have short key-equivalents,
  153. i.e., you can press Right Amiga-? to select that menu selection,
  154. where ? is whatever letter is displayed after the neat Amiga
  155. symbol in the menu.
  156.  
  157.      If the font is found, ShowFont will display
  158. "font_name-font_sizefont_style" in the upper left-hand corner of
  159. the screen next to the CLOSE gadget.  To see the rest of the font
  160. (if all 256 characters cannot fit on the screen at once), use the
  161. three gadgets on the right-hand side of the screen.  Again, their
  162. function closely resembles their appearance.  Fiddle around for
  163. about five seconds and you will be quite familiar and comfortable
  164. with moving around a font. Again, you can just hold down the
  165. button and scroll happily in whatever direction you like.
  166.  
  167.      The font_style symbols are 'u', 'b', 'i', 'e', for
  168. underlined, bold, italics, and extended, in that order.  "Normal"
  169. styles won't have anything after the size number.
  170.  
  171.      Note that actually all 256 characters will not be displayed
  172. if there are blank (empty) characters.  The program will skip
  173. them, since they are rather uninteresting, being blank.  The
  174. program will display that segment of the characters that the font
  175. says should be displayed.  Two-to-one someone has some neat
  176. secret graphics just outside the official display range, but
  177. we'll never know.
  178.  
  179.     I've added the ability to find out just how to get that neat
  180. graphics character you see.  Just click on the character, and the
  181. keys to press to produce it will appear in the window title area,
  182. also, its decimal and hex codes.  The alphabetic keys (A -> Z)
  183. will all be in upper-case.  That does NOT mean you have to (for
  184. example), press ALT-SHIFT-A when you see 'ALT-A'.  Just press the
  185. ALT and then the A keys.  Only press SHIFT when it explicitly
  186. tells you to.  The lowercase 's' and 'm' you might see refer to
  187. the SPACE BAR and KEYPAD MINUS (-), respectively (not sexual
  188. practices - whoops!).
  189.  
  190. * NOTE * Anything telling you to press CONTROL-[ALT-]_ is
  191. suspicious, as I did not have a table for the characters from
  192. decimal 0 -> 31, and 128 -> 159.  Take the "press..." advice with
  193. a grain o' salt for these characters.  If some kind soul will
  194. send me a complete keymap with those values noted, I will add
  195. them.  Note that CONTROL-? or CONTROL-ALT-? means that ShowFont
  196. THINKS you press CONTROL (or CONTROL-ALT) to get that character,
  197. but does not know what particular key.  Sorry.  Someday I'll get
  198. this fixed up.
  199.  
  200.      It's come to my attention that for some fonts, what ShowFont
  201. tells you to type to get a certain character is completely wrong.
  202. I think this may be because the programs using these fonts change
  203. the default keymap.  I'm not really sure about this, anyone
  204. having this sort of problem please alert me about it.
  205.  
  206. Escaping
  207. --------
  208.  
  209.      To exit the program, click on the CLOSE gadget or select the
  210. menu "Quit" option or press Right-Amiga-Q.  I like three ways to
  211. end a program!  Actually, you can also end the program by:
  212.      1) Control Amiga-Amiga
  213.      2) Turning off your computer's power
  214.      3) Striking the system with great force with a large, blunt
  215.         object
  216. That now makes a total of six ways to terminate the program.  I'm
  217. sure clever people will find even more imaginative and useful
  218. ways to end the font session.
  219.  
  220. Summary?
  221. --------
  222.  
  223.      I guess the best advice I can give you for using and
  224. understanding this program is to type 'showfont' from CLI and
  225. fiddle around for a while until you either comprehend all the
  226. features or delete the program in a fit o' passion.  In fact,
  227. most bugs are detected this way through random menu and gadget
  228. selecting.
  229.  
  230.      I'll apologize now for this rather random and odd
  231. documentation file, but I'm usually dazed and confused after my
  232. program successfully runs without any apparent bugs.  On a
  233. technical note, the Lattice 5.4 C "big" compiler and global
  234. optimizer compiled this program without comment.  I like that.
  235. The 'make' script and .lnk file are also included for the heck o'
  236. it.
  237.  
  238. Thank You's
  239. -----------
  240.  
  241.      National Type Foundry, for sending me two font packages.
  242.      AmigoTimes, for the complimentary magazine issue (& icon).
  243.      J. K. Levie, for his instructional 'defdisk.c' source.
  244.      Commodore Magazine, for giving ShowFont an Honorable Mention
  245.       in '89.
  246.      AmigaWorld for the February 1990 "Top 20" mention.  Yeah!
  247.  
  248.      ...and anyone else who deserves it, especially you users of
  249. ShowFont!
  250.  
  251. How to Locate the Author
  252. ------------------------
  253.  
  254.      Any comments/questions/suggestions/flames/improvements/etc.,
  255. can be directed to the following address:
  256.  
  257. ******************************
  258. * Arthur Johnson Jr.         *
  259. * 225 Montego Bay Court      *
  260. * Merritt Island, FL  32953  *
  261. * (407) 277-0548             *
  262. ******************************
  263. ...or any of the following electronic addresses:
  264.  
  265. Arthur Johnson Jr. -=> {uiucuxc, hoptoad,
  266. petsd}!peora!rtmvax!bilver!alj
  267. -=-=-=-=-=-=-=-=-  -=> alj@bilver.UUCP
  268.                    -=> PLink: DUNG
  269.                    -=> GEnie: A.JOHNSONJR
  270.  
  271.      I don't frequent the message bases on PLink or GEnie, so
  272. E-MAIL me on those two systems.
  273.  
  274. Revisions n' Updates
  275. --------------------
  276.  
  277. Version 4.1 : If it encounters a character it can't print,
  278.                ShowFont now simply skips it and continues instead
  279.                of aborting the whole program.
  280.               Included the ARP file/directory requester to help
  281.                simplify changing FONTS:
  282.  
  283. Version 4.0 : Added an error requester to inform you of certain
  284.                recoverable errors instead of exiting the program
  285.                disgracefully.
  286.               Told ShowFont how to handle font sizes with
  287.                multiple styles nicely.
  288.               Included the ability to change the FONTS: dir from
  289.                inside ShowFont.  Currently, when you leave the
  290.                program, FONTS: will still be pointing to wherever
  291.                you told ShowFont to look for it.
  292.               Now you can change the number of colors the screen
  293.                has, for color font support sometime in the
  294.                future.  And, two-color screens really haul when
  295.                scrolling around!
  296.               Moved the "To get that key..." information to the
  297.                title bar, and included the key codes for my own
  298.                obscure purposes.
  299.  
  300. Version 3.3 : Fixed a bug that caused ShowFont to lump
  301.                similarly-named fonts together (whoopsie!).
  302.               Added "To get that character, press..." feature.
  303.  
  304. Version 3.2 : Eliminated slider gadgets happy post-release
  305.                flickering.
  306.               Returned a satisfactory response to the system when
  307.                exiting from a RUN-ned ShowFont, exterminating
  308.                that error message.
  309.               Polished the code up quite a lot for some
  310.                noticeable speed and size improvements.
  311.               Worked on the documentation some more (this will be
  312.                assumed for all future versions) ;)
  313.               Discarded the somewhat useless and potentially
  314.                dangerous "Read FONTS:" menu option.
  315.               A few other little thingies.
  316.  
  317. Version 3.1 : Fixed a bug in the 'Read FONTS:' menu selection.
  318.               Added "double-clicking" selection method.
  319.               Cleaned up the documentation a bit.
  320.  
  321. Version 3.0 and below : These records were destroyed in the great
  322.                          fire, earthquake, plague, hurricane,
  323.                          tsunami, volcanic eruption, insect
  324.                          infestation, computer virus, meteorite
  325.                          strike, supernova, tornado, alien
  326.                          attack, flood, n' monsoon of 1988.  I
  327.                          apologize for any inconvenience this may
  328.                          cause.
  329.