home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 1 / FishNMoreVol1.bin / more / disks / better_pd / utilities_1 / docs / setfont.doc < prev    next >
Encoding:
Text File  |  1986-09-20  |  4.3 KB  |  97 lines

  1. January, 1987                                                  AMIGAZINE!
  2.  
  3.  
  4.                               SetFont 2.0
  5.  
  6.                              by Dave Haynie
  7.                       (Released into Public Domain)
  8.  
  9.  
  10. A BRIEF OVERVIEW
  11.  
  12.    SetFont 2.0's main improvement is that it allows the individual
  13. font of a CLI window to be changed without changing the font of the entire
  14. WorkBench Screen.  The old SetFont would change the default font descriptor
  15. of the WorkBench screen, which is where most new programs get their fonts.
  16. This was useful in that a font so set would be inhereted by new WorkBench
  17. applications, like new CLIs, Word Processors, Terminal Programs, and just
  18. about anything run on the WorkBench Screen (as opposed to a custom screen).
  19. What the old version doesn't do is change JUST the font of the current CLI.
  20. The new version does this.  I've thrown in the capability to also change 
  21. the default title font of the screen (based on the screen's RastPort); 
  22. this isn't incredibly useful, but it was very little extra code in addition
  23. to the two more useful functions.
  24.  
  25. WHAT IT DOES
  26.  
  27.    This function changes the default fonts of the Amiga's WorkBench
  28. screen or an Amiga CLI window.  This allows programs like CLI, etc. to use a
  29. font other than one specified by Preferences.  This change isn't perfect, but
  30. it is useful.  The program is used as:
  31.  
  32.    SetFont [fontname [points [place]]
  33.  
  34. Where the "fontname" is a normal Amiga font, "points" is the font's point
  35. size, and place is currently one of:
  36.  
  37.    SCREEN      The WorkBench Screen, ala SetFont 1.0
  38.  
  39.    TITLES      The WorkBench Screen's Titles
  40.  
  41.    WINDOW      The current CLI window
  42.  
  43. Setting the screen will essentially set the default font for newly created
  44. windows.  Setting the title font will set the text displayed for window
  45. titles and things like that.  This will look really ugly and generally not
  46. work very well if it is set to a font taller than the current screen font.
  47. Finally, setting the WINDOW font will set only the font of the calling CLI
  48. window.  This will also clear the screen, which is required to fully set
  49. the font on an open console window.  If no place is supplied, all three
  50. fonts are set.  Examples are:
  51.  
  52.    SetFont            (Displays current screen font)
  53.    SetFont ?         (Displays help text)
  54.    SetFont topaz         (Sets font "topaz 8" everywhere)
  55.    SetFont ruby 12         (Sets font "ruby 12" everywhere)
  56.    SetFont topaz 11 SCREEN      (Sets font "topaz 11" on screen)
  57.    SetFont clean 8 TITLES WINDOW   (Sets font "clean 8" on CLI and titles)
  58.  
  59.    This program has a few limitations.  First of all, some programs
  60. don't support fonts other than the 80 column, 8x8 cell "topaz 8" font,
  61. which is a default ROM font.  If you're a 60 column user, you've probably 
  62. experienced this before.  Its not a problem with the Amiga as a whole, since
  63. most of the system will adjust itself.  But it may be a problem with programs
  64. that have a fixed idea of what a font should look like.  Most 80 column fonts
  65. work with most applications, and an 80 column 8x8 font will work just about
  66. everywhere.  Some programs, like CLI for instance, have trouble with
  67. proportionally-spaced fonts.  This is a "bug" or "feature" of the Amiga
  68. text display software, which is doing large amounts of spacing when only
  69. one character in a proportional font is displayed at a time.  The best thing
  70. to do is try out the font you like.  
  71.  
  72.    To use SetFont as a means of changing most of the default fonts
  73. during a session, insert it in your "s:Startup-Sequence" file, as:
  74.  
  75.    SetFont topaz 11
  76.    LoadWB
  77.    EndCLI >nil:
  78.  
  79. or something like (SetFont topaz 11 SCREEN TITLES would work just as well).
  80.  
  81.    One final problem is that some applications ask the WorkBench screen
  82. to close when they start up.  It'll close if there's nothing else open on it,
  83. but when it re-opens, it'll restart with the Preferences-selected font, not
  84. the SetFont selected font.  Of course, Preferences't support arbitrary fonts
  85. (which is why this program is even necessary).  Oh well, maybe in 1.3?  The
  86. simplest way to prevent this is to leave some kind of window open, which will
  87. prevent any other application from closing the WorkBench screen.  Of course,
  88. if you need the memory that closing the WorkBench screen gives you, this
  89. would not be a good thing to do.
  90.  
  91. Double-click the GoToCLI icon to enter CLI and view all of the files in the
  92. OnlyCLI directory, including SetFont which only works under CLI.
  93.  
  94.  
  95.  
  96.  
  97.