Get font name and size chosen
Get font name and size chosen
- Subject: Get font name and size chosen
- From: Lorenzo <email@hidden>
- Date: Wed, 23 Jan 2008 15:29:24 +0100
I am subclassing
- (void)changeFont:(id)sender
Any time the users makes a change on the font panel, this method gets called
properly. Then I detect the font name chosen by the user with:
NSFont *panelFont = [sender convertFont:[sender selectedFont]];
NSString *fontName = [panelFont fontName];
I get a font name which is different than the font name shown on the Font
Panel. Also I don't know how to get the font size. So please how to get the
"same" name and style and size I can see on the FontPanel?
Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden