SetFont 1.0 by Dave Haynie (Hazy) CIS: 76703,2047 Usenet: {allegra,caip,ihnp4}!cbmvax!daveh Drink: Guiness WHAT IT DOES This function changes the default font of the Amiga's WorkBench screen. This allows programs like CLI, etc. to use a font other than one specified by Preferences. This change isn't perfect, but it is useful. The program is used as: SetFont [fontname [points [NOCHECK]]] Where the "fontname" is a normal Amiga font, "points" is the font's point size, and "NOCHECK" turns off any check to see if the font really exists on the system. Examples are: SetFont (Displays current font) SetFont ? (Displays help text) SetFont topaz (Sets font "topaz 8") SetFont ruby 12 (Sets font "ruby 12") This program has a few limitations. First of all, some programs don't support fonts other than the 80 column, 8x8 cell "topaz 8" font, which is a default ROM font. If you're a 60 column user, you've probably experienced this before. Its not a problem with the Amiga as a whole, since most of the system will adjust itself. But it may be a problem with programs that have a fixed idea of what a font should look like. Most 80 column fonts work with most applications, and an 80 column 8x8 font will work just about everywhere. Some programs, like CLI for instance, have trouble with proportionally-spaced fonts. The best thing to to is try out the font you like. Another slight problem is exactly when the font gets used. Right after runing SetFont, the newly selected font is the default font of the WorkBench screen. Because of this, any NEW windows opened on the WorkBench will use this font as THEIR default fonts. But the old windows won't. So if you want a different font in your CLIs, you'll have to set up something like this as a Startup-Sequence: SetFont topaz 11 LoadWB EndCLI >nil: This removes the old CLI. Any CLI opened from the WorkBench after this is going to use the newly assigned font. Of course, if you want different fonts in each CLI you open, just issue the SetFont command for the next CLI, then open that CLI. Even once the font is properly installed, though, that's no reason to believe it'll work everywhere. Because of the fact that several structures each have their own ideas about which font to use (they don't use the default, like a console window, which inherets its font from the Screen, and stores this default font as part of its ConUnit). One final problem is that some applications ask the WorkBench screen to close when they start up. It'll close if there's nothing else open on it, but when it re-opens, it'll restart with the Preferences-selected font, not the SetFont selected font. Of course, Preferences don't support arbitrary fonts (which is why this program is even necessary). Oh well, maybe in 1.3? BUSINESS (MUNDANE, BUT IMPORTANT): This program is written by me, Dave Haynie, as mentioned above. I have, however, placed it in the PUBLIC DOMAIN. That, of course, means that you can do (almost) absolutely anything with it. You may hack it to bits, include it with YOUR product, sell it, GIVE IT AWAY, or anything else you like. Of course, since anyone else can also give it away, it would be foolish to stick your name on it and try to sell it. I really would like everyone to give it away, nicely, without being mean about it. If you want to use it with your product, do that too, new products for the Amiga are generally a good thing for the entire Amiga community. You can take bit and pieces and use them in your own programs, or the whole thing for that matter. And if you really want to have fun, you can even IMPROVE this program, as its far from perfect, and give YOUR version away too, if you're so inclined. That's about it for the (mundane) business section, let's get on to the (interesting) notes section.