Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Font selection via the keyboard in Cocoa apps System
If you desire to change font in your document (in a Cocoa application), but you don't know which font to use, open the fonts panel (Command-T), and then select a piece of text in your document. Now if you want to select your fonts with the arrow keys, you have to click in a text field like Search at the bottom of the font panel window, and then click in the font list. Now if you press the Up or Down arrow keys, you can select the font you like for the selected text (which will change on the fly with your selection).

[robg adds: This seems to be an odd quirk in the fonts panel; although you can select fonts by clicking on them in the Family column, the column itself isn't "active" when you do this. Instead, as noted, you'll have to click in Search, then click in the Family column. You can tell it's active as you'll get your standard highlight color instead of the gray "not active" highlight color. Once it's active, the arrow keys let you quickly scroll between fonts. You can use the same technique to activate the Typeface column as well.]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,784 views]  

Font selection via the keyboard in Cocoa apps | 6 comments | Create New Account
Click here to return to the 'Font selection via the keyboard in Cocoa apps' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Font selection via the keyboard in Cocoa apps
Authored by: hisbonenus on May 07, '04 10:24:46AM

Clicking on the font preview in the panel accomplishes the same thing! Thanks!



[ Reply to This | # ]
close the panel
Authored by: luhmann on May 07, '04 10:36:05AM

Is there any way to close the font panel via the keyboard?



[ Reply to This | # ]
Command-T to close it again
Authored by: MJCube on May 07, '04 11:01:50AM

Command-T toggles the window; standard in all Cocoa apps.



[ Reply to This | # ]
close the panel
Authored by: sabi on May 07, '04 11:05:44AM

Press command-T again. Same goes for the color panel; toggle it with command-shift-C.



[ Reply to This | # ]
Font selection via the keyboard in Cocoa apps
Authored by: MJCube on May 07, '04 10:55:35AM

Note that making the Font Panel active in this way deactivates your document window, so you have to click on it or hide the Font Panel to continue editing. Also, it still doesn't allow selecting fonts by letter, which you can do with an old-fashioned Font menu in Carbon apps.



[ Reply to This | # ]
Font selection via the keyboard in Cocoa apps
Authored by: timcrawf on May 08, '04 12:06:01PM

The other thing to note is that since this makes the Font panel selected, command-w now closes the font panel



[ Reply to This | # ]