[net.micro.mac] Changing Fonts from the keyboard

fry_b@husc4.harvard.edu (david fry) (10/29/86)

	Someone may have posted a solution to this problem before, but
I've never seen it, so here goes...

	The mouse is great, but changing fonts with it all the time can be
a pain, especially if you're doing mathematics or other technical typing.
But how can you add command-key equivalents to the font menu in, say,
Macwrite?  If you realize that MacWrite changes fonts by looking at
the name of the menuitem you select from the Font menu, then it's
obvious.  
	With ResEdit, open the 'MENU' resource of MacWrite that has Font
as its title,
number 6 I think.  There is nothing there now.  Add however menuitems
you need and make the menuitem EXACTLY the name of the font as it
appears in the Font menu normally.  And add a command-key equivalent.
Also, it's good to give it some attribute, like "bold", to distinquish
it from the other font names.  Then close MacWrite and save the changes.
	When you return to MacWrite the Font menu will have your
boldfaced font names at the top with their equivalents, and then the
normal font menu afterwards.  And it works fine.  You can still select
fonts with the mouse.
	Note that if you are using an old ROM machine with system software
before 3.X, you don't have scrolling menus so adding these font names
may cause some other fonts to "drop off the bottom", so to speak.  Mac
Plus users have nothing to fear, though.
	This technique also works with MacDraw and should work with
almost any application that has a Font menu.  AND, it should work with
desk accessories, depending on the logic used by the application to
load the accessory.  For instance, it does not work for MacWrite, but
it does work with an application I wrote (that is the extent of my testing
because command-key equivalents for desk accessories don't excite me).


David Fry				fry@huma1.harvard.EDU
Department of Mathematics		fry@harvma1.bitnet
Harvard University			fry%huma1@harvsc4.bitnet
Cambridge, MA  02138			...!harvard!huma1!fry